/* RNS Management Group website. Brand colors come from the RNS logo. */
:root {
  --navy: #00243c;
  --navy-2: #0b3756;
  --cyan: #2cccfc;
  --cyan-soft: #e8f8fe;
  --ground-alt: #f3f7f9;
  --text: #23384a;
  --muted: #536676;
  --line: #d6e1e8;
  --link: #076a96;
  --amber: #ffc24b;
  --radius: 14px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-alt { background: var(--ground-alt); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 640px; }
.eyebrow { font-family: var(--head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--cyan-soft); color: var(--navy); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: #7fdffd; color: var(--navy); }
.btn-ghost-light { color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); padding: 6px 0; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }
.brand-tag { font-size: 0.78rem; color: var(--muted); }
.menu-button { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: 600 0.95rem var(--body); cursor: pointer; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; padding: 12px 10px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--cyan-soft); }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.nav-cta { margin-left: 8px; min-height: 44px; padding: 10px 18px; }

@media (max-width: 880px) {
  .js .menu-button { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 16px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav-cta { margin: 12px 0 0; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--cyan-soft), #fff); }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-art { display: none; justify-self: center; width: 300px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-art { display: block; }
}
.page-hero { background: var(--cyan-soft); padding: 52px 0; }
.page-hero.dark { background: var(--navy); }
.page-hero.dark h1, .page-hero.dark .lead { color: #fff; }
.page-hero.dark .eyebrow { color: var(--cyan); }

/* Cards and grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--cyan); box-shadow: 0 6px 22px rgba(0,36,60,0.08); color: var(--text); }
.card .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--link); }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--cyan-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.icon svg { width: 26px; height: 26px; }
.point h3 { margin-bottom: 6px; }

.band { background: var(--navy); color: #e4eef4; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--cyan); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step); width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.1rem var(--head); display: flex; align-items: center; justify-content: center; }

.action { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); border: 2px solid var(--navy); color: var(--navy); text-decoration: none; background: #fff; }
.action.primary { background: var(--navy); color: #fff; }
.action.primary .icon { background: var(--navy-2); color: var(--cyan); }
.action:hover { box-shadow: 0 6px 22px rgba(0,36,60,0.12); }
.action strong { display: block; font: 700 1.2rem var(--head); }
.action small { display: block; font-size: 0.95rem; opacity: 0.85; }

.alert { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--amber); color: var(--navy); }
.alert .icon { background: var(--navy); color: var(--amber); border-radius: 50%; }
.alert strong { font: 800 1.3rem var(--head); display: block; }
.alert a { color: var(--navy); font-weight: 700; }
.alert-body { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; color: var(--navy); padding: 14px 4px; list-style-position: outside; }
.faq details p { padding: 0 4px 16px; color: var(--text); }

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.team li { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.initial { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: var(--cyan); font: 700 1.25rem var(--head); display: flex; align-items: center; justify-content: center; flex: none; }
.team strong { display: block; font: 700 1.1rem var(--head); color: var(--navy); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Forms */
.form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; font: 400 1rem var(--body); color: var(--text); background: #fff; border: 1px solid #7a8a96; border-radius: 9px; }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status.error { color: #a1260d; }
.form-done { padding: 22px; border-radius: 12px; background: var(--cyan-soft); color: var(--navy); }
.form-done strong { font: 700 1.2rem var(--head); display: block; margin-bottom: 4px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #cfdbe3; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; gap: 32px; padding: 52px 22px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 58px; flex: none; }
.footer-name { font: 700 1.1rem var(--head); color: #fff; margin-bottom: 6px; }
.footer-head { font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 20px 22px 32px; border-top: 1px solid #1d4561; font-size: 0.85rem; color: #b7c7d2; }
.footer-legal .eho { color: #fff; flex: none; }
.footer-legal p:nth-of-type(1) { flex: 1 1 300px; }

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand img { width: 32px; }
  .brand-name { font-size: 0.95rem; }
  .brand-tag { font-size: 0.72rem; }
  .menu-button { padding: 8px 12px; }
  .section { padding: 48px 0; }
  .panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
