/* ===== Brand tokens ===== */
:root {
  --navy: #0f2340;
  --navy-2: #172f52;
  --navy-3: #22406b;
  --gold: #c9a96e;
  --gold-light: #e3cfa4;
  --gold-dark: #a8874d;
  --ivory: #faf7f1;
  --cream: #f3ede2;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e6dfd2;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(15, 35, 64, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.gold { color: var(--gold); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 10px 24px -8px rgba(201,169,110,.6); }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-sm { padding: 10px 20px; font-size: .88rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 35, 64, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,169,110,.18);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo-mark { width: 46px; height: 46px; flex: none; color: var(--white); }
.logo-text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.logo-text small { font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin: 0 0 5px 1px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { white-space: nowrap; color: rgba(255,255,255,.82); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(201,169,110,.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0b1a30 100%);
  color: var(--white);
  padding: 110px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.25rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9rem; color: rgba(255,255,255,.7); }
.hero-trust li::before { content: "✦"; color: var(--gold); margin-right: 8px; font-size: .75rem; }

.hero-card {
  border: 1px solid rgba(201,169,110,.35);
  border-radius: 24px;
  padding: 10px;
  background: rgba(255,255,255,.03);
}
.hero-card-inner {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  padding: 44px 36px 36px;
  text-align: center;
}
.hero-emblem { width: 110px; margin: 0 auto 22px; color: var(--gold); }
.hero-card-title { font-family: var(--serif); font-size: 1.7rem; color: var(--white); margin-bottom: .4rem; }
.hero-card-sub { color: rgba(255,255,255,.65); font-size: .95rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid rgba(201,169,110,.25); padding-top: 22px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.hero-stats span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-ivory { background: var(--ivory); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-card ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); }
.service-card li { font-size: .9rem; padding: 5px 0 5px 20px; position: relative; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 1.5px; background: var(--gold); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { border-top: 1px solid rgba(201,169,110,.4); padding-top: 26px; }
.step-num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { font-size: 1.4rem; }
.steps p { font-size: .95rem; color: rgba(255,255,255,.7); }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li { display: flex; flex-direction: column; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); position: relative; }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 21px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream); color: var(--gold-dark);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.why-list strong { color: var(--navy); font-weight: 600; }
.why-list span { color: var(--muted); font-size: .93rem; }

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.areas li { padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .93rem; color: var(--navy); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list span { width: 64px; flex-shrink: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
  color: var(--ink);
}
.contact-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.contact-form input, .contact-form select {
  display: block; width: 100%; margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--ivory);
  font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.25); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-success { margin: 16px 0 0; padding: 12px 16px; background: var(--cream); border-radius: 10px; color: var(--navy); font-size: .92rem; }

/* Footer */
.site-footer { background: #0a1830; color: rgba(255,255,255,.6); padding: 72px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-tag { margin-top: 16px; }
.site-footer h4 { color: var(--gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid a:not(.logo), .footer-grid > div > span { display: block; color: rgba(255,255,255,.65); text-decoration: none; padding: 4px 0; }
.footer-grid a:not(.logo):hover { color: var(--gold); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .8rem; }
.footer-bottom p { margin: 0; }

.mobile-call { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-card { max-width: 480px; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(201,169,110,.2);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 72px 0 84px; }
  .services-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 28px 20px; }
  .logo-text { font-size: 1.35rem; }
  .logo-mark { width: 40px; height: 40px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  body { padding-bottom: 64px; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: 60px; background: var(--gold); color: var(--navy);
    font-weight: 700; text-decoration: none;
    box-shadow: 0 -8px 24px rgba(0,0,0,.15);
  }
}

/* Service area groups */
.areas-title { text-align: center; font-size: 1.6rem; margin: 0 0 20px; }
.areas + .areas-title { margin-top: 56px; }

/* Contact form: hidden spam trap and error message */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 16px 0 0; padding: 12px 16px; background: #fbeaea; border-radius: 10px; color: #8a2a2a; font-size: .92rem; }
.contact-form button:disabled { opacity: .7; cursor: wait; transform: none; }

/* ===== Landing pages (service & area pages) ===== */
.page-hero { padding: 72px 0 80px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 820px; }
.page-hero .lead { max-width: 680px; }
.page-hero .hero-ctas { margin-bottom: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.prose { max-width: 720px; font-size: 1.05rem; }
.prose > p, .prose li { color: #3a4253; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul:not(.areas) { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul:not(.areas) li { position: relative; padding: 6px 0 6px 22px; }
.prose ul:not(.areas) li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1.5px; background: var(--gold); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-dark); }
.areas.areas-left { justify-content: flex-start; margin-bottom: 8px; }
.areas.areas-left li { padding: 8px 18px; font-size: .9rem; }

.page-aside {
  position: sticky; top: 104px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.glance-list { list-style: none; padding: 0; margin: 0 0 24px; }
.glance-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink); }
.glance-list li:first-child { border-top: 1px solid var(--line); }
.glance-list span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 2px; }
.aside-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.related-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.related-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.related-more, .service-more { font-size: .85rem; font-weight: 600; color: var(--gold-dark); }
.related-more::after, .service-more::after { content: " →"; }

.cta-band { text-align: center; }
.cta-band p:not(.eyebrow) { max-width: 560px; margin: 0 auto 2rem; }

/* Links added to home page service cards and area headings */
.service-card h3 a, .areas-title a { text-decoration: none; }
.service-card h3 a:hover, .areas-title a:hover { color: var(--gold-dark); }
.service-more { display: inline-block; margin-top: 18px; text-decoration: none; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; }

@media (max-width: 1024px) {
  .page-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-aside { position: static; max-width: 520px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 64px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Patient Record Portal */
.portal-wrap { max-width: 900px; text-align: center; }
.portal-wrap .section-head { margin-bottom: 36px; }
.portal-image {
  display: block; max-width: 426px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 12px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.portal-image:hover { transform: translateY(-4px); border-color: var(--gold-light); box-shadow: 0 28px 60px -22px rgba(15,35,64,.35); }
.portal-image img { width: 100%; height: auto; border-radius: 10px; }
.portal-powered { margin: 14px 0 28px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.portal-btn { min-width: 240px; }
.portal-info { max-width: 680px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.portal-info p { color: var(--muted); }
.portal-info a { color: var(--gold-dark); font-weight: 500; }
.portal-info .portal-note { font-size: .82rem; margin: 0; }
@media (max-width: 640px) {
  .portal-image { padding: 12px; border-radius: 14px; }
  .portal-btn { width: 100%; }
}

/* Facility Assistance */
.resource-groups { display: flex; flex-direction: column; gap: 14px; }
.resource-group { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.resource-group[open] { border-color: var(--gold-light); box-shadow: var(--shadow); }
.resource-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy);
}
.resource-group summary::-webkit-details-marker { display: none; }
.resource-group summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--gold-dark); transition: transform .2s; }
.resource-group[open] summary::after { transform: rotate(45deg); }
.resource-count { margin-left: auto; font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--gold-dark); background: var(--cream); border-radius: 999px; padding: 3px 10px; }
.resource-blurb { margin: -6px 24px 10px; color: var(--muted); font-size: .92rem; }
.resource-list { list-style: none; margin: 0; padding: 0 12px 14px; }
.resource-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.resource-list a:hover { background: var(--ivory); color: var(--navy); }
.resource-type { flex-shrink: 0; font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--gold-dark); border: 1px solid var(--gold-light); border-radius: 6px; padding: 2px 7px; }
.resource-credit { margin: 28px 0 8px; font-size: .8rem; color: var(--muted); }
.resource-credit a, .resource-help a { color: var(--gold-dark); }
.resource-help { font-size: .95rem; color: var(--navy); }
@media (max-width: 640px) {
  .resource-group summary { padding: 16px 18px; font-size: 1.15rem; }
  .resource-blurb { margin: -4px 18px 8px; }
  .resource-list { padding: 0 6px 10px; }
}
