/* -------------------------------------------
   Averyn Care – Main Site Styles
   Calm, premium, spacious; Inter; navy + gold accent.
-------------------------------------------- */

:root {
  --color-midnight: #0F172A;
  --color-gold: #D9B247;

  --color-paper: #FFFFFF;
  --color-cloud: #F8FAFC;
  --color-drift: #E5E7EB;
  --color-ink-soft: #64748B;

  --font-primary: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  --text-h1: clamp(2.15rem, 4.2vw, 3.25rem);
  --text-h2: clamp(1.55rem, 2.4vw, 2.15rem);
  --text-h3: 1.25rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.75rem;
  --space-6: 3.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.10);

  --ring: 0 0 0 3px rgba(217, 178, 71, 0.25);

  --header-offset: 72px; /* used for the mobile nav sheet */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.65;
  color: var(--color-midnight);
  background: var(--color-cloud);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 0.9rem; color: rgba(15, 23, 42, 0.92); }

h1, h2, h3 {
  margin: 0 0 0.8rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-midnight);
}

h1 { font-size: var(--text-h1); line-height: 1.08; }
h2 { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--text-h3); line-height: 1.25; }

.small { font-size: 0.875rem; color: var(--color-ink-soft); }
.muted { color: var(--color-ink-soft); }
.measure { max-width: 62ch; }
.lede { font-size: 1.075rem; color: rgba(15, 23, 42, 0.90); }

/* Layout */

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* Homepage hero can breathe a bit more (keeps other pages unchanged) */
.shell--wide {
  max-width: 1320px;
}

.page-main { padding-block: var(--space-1) var(--space-6); }
.section { padding-block: var(--space-4); }
/* ===== Hero section: remove extra top padding ===== */
.section-hero {
  padding-top: 0 !important;
}

/* -------------------------------------------
   Service areas – long-page helpers
-------------------------------------------- */

/* Ensure anchor jumps don't hide under the sticky header */
.anchor {
  scroll-margin-top: calc(var(--header-offset) + 18px);
}

/* Sticky "On this page" jump links (mobile-friendly) */
.toc-bar {
  position: sticky;
  top: var(--header-offset);
  z-index: 25;
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-2);
}

/* Mobile: dropdown menu (details/summary) */
.toc-mobile {
  display: block;
}

.toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-midnight);
}

.toc-summary::-webkit-details-marker {
  display: none;
}

.toc-chevron {
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  transition: transform 200ms ease;
}

.toc-mobile[open] .toc-chevron {
  transform: rotate(180deg);
}

.toc-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.toc-menu .toc-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-midnight);
  text-decoration: none;
}

.toc-menu .toc-link:hover {
  background: var(--color-cloud);
  text-decoration: none;
}

/* Desktop: horizontal wrapped layout */
.toc-desktop {
  display: none;
}

@media (min-width: 768px) {
  .toc-mobile {
    display: none;
  }

  .toc-desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-drift);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
  }

  .toc-label {
    font-size: 0.85rem;
    color: var(--color-ink-soft);
    white-space: nowrap;
    font-weight: var(--font-weight-medium);
  }

  .toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
  }

  .toc-link {
    font-size: 0.9rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--color-midnight);
    text-decoration: none;
    white-space: nowrap;
  }

  .toc-link:hover {
    text-decoration: none;
    background: #fff;
    border-color: var(--color-drift);
  }
}

/* Show-more blocks (no-JS collapse) */
details.show-more {
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  background: rgba(248, 250, 252, 0.8);
}

details.show-more summary {
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  color: rgba(15, 23, 42, 0.92);
}

details.show-more[open] summary {
  margin-bottom: 0.65rem;
}

/* Optional: slightly tighter bottom spacing on mobile */
@media (max-width: 640px) {
  .section-hero {
    padding-bottom: var(--space-3);
  }
}

/* Optional: slightly tighter bottom spacing on mobile */
@media (max-width: 640px) {
  .section-hero {
    padding-bottom: var(--space-3);
  }
}


.surface {
  background: var(--color-paper);
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .surface { padding: calc(var(--space-4) + 0.25rem); }
}

.grid-two { display: grid; gap: var(--space-3); }
.grid-three { display: grid; gap: var(--space-3); }

@media (min-width: 840px) {
  .grid-two { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Header & nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-drift);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.85rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand-mark { height: 32px; width: auto; }
.brand-text { font-weight: var(--font-weight-semibold); font-size: 1.05rem; letter-spacing: -0.01em; }

.nav-toggle { display: none; }

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-drift);
  cursor: pointer;
  background: #fff;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-midnight);
  position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-label span::before { top: -5px; }
.nav-toggle-label span::after { top: 5px; }

.nav-primary {
  display: none;
  /* Mobile: full-screen sheet (header remains anchored) */
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: calc(var(--header-offset) + var(--space-3)) var(--space-3) var(--space-4);
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  flex-direction: column;
  align-items: flex-start;
  gap: 1.05rem;
}

.nav-primary .nav-cta { margin-top: 0.35rem; }

.nav-toggle:checked ~ .nav-primary { display: flex; }

body.nav-open { overflow: hidden; }

/* Hamburger → X */
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  transition: transform 160ms ease, top 160ms ease, opacity 160ms ease, background 160ms ease;
}

.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
.nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }


.nav-link {
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  opacity: 0.86;
}
.nav-link:hover { opacity: 1; text-decoration: none; }

.nav-link.is-active { opacity: 1; position: relative; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-gold);
}

.nav-link--login { font-size: 0.92rem; }
.nav-cta { margin-top: 0.25rem; }

.nav-link--mobile-only { display: none; }
#nav-toggle:checked ~ .nav-primary .nav-link--mobile-only { display: inline-flex; }


@media (min-width: 980px) {
  .nav-toggle-label { display: none; }
  .nav-primary {
    display: flex !important;
    position: static;
    inset: auto;
    z-index: auto;
    background: transparent;
    backdrop-filter: none;
    overflow: visible;

    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .nav-cta { margin-top: 0; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary { background: var(--color-midnight); color: #ffffff; }
.btn-primary:hover { background: #111827; text-decoration: none; transform: translateY(-1px); }

.btn-ghost { background: #ffffff; color: var(--color-midnight); border-color: var(--color-drift); }
.btn-ghost:hover { background: #F3F4F6; text-decoration: none; transform: translateY(-1px); }

/* CTA band: invert primary button so it never blends into the dark panel */
.cta-band .btn.btn-primary,
.cta-band .btn.btn-primary:visited {
  background: #FFFFFF;
  color: var(--color-midnight);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

.cta-band .btn.btn-primary:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.85);
}

/* CTA band: ghost button should look intentional on dark */
.cta-band .btn.btn-ghost,
.cta-band .btn.btn-ghost:visited {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.35);
}

.cta-band .btn.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}


.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-drift);
  font-size: 0.74rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-ink-soft);
  background: rgba(255,255,255,0.65);
}

/* Split + hero image */

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* Homepage: make the hero image feel closer to full width */
@media (min-width: 960px) {
  .split--hero-home { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
}

.split--hero { align-items: stretch; }

.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-drift);
  box-shadow: var(--shadow-card);
  background: #0b1220;
  position: relative;
}

.split-media--hero {
  min-height: clamp(380px, 58vh, 640px);
}

.split-media-accent {
  height: 6px;
  background: var(--color-gold);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* default crop */
}

/* Homepage hero: keep the subject centered (avoid over-cropping on taller viewports) */
.hero-image--home {
  object-position: center 28%;
}

/* Homepage hero (overlay variant): use the original image and preserve the top of the scene (laptop) */
.hero-home {
  padding: 0;           /* override .surface padding */
  overflow: hidden;
  position: relative;
}

.hero-home-image {
  width: 100%;
  height: clamp(420px, 56vh, 680px);
  object-fit: cover;
  object-position: center top; /* keep the laptop in-frame */
  display: block;
}

.hero-support-image{
  max-height: 500px;
}

.hero-home-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none; /* allow clicks to pass through except inside panel */
}

.hero-home-panel {
  pointer-events: auto;
  margin: var(--space-4);
  max-width: 640px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: calc(var(--space-3) + 0.15rem);
}

.hero-home-note { margin-top: 0.85rem; margin-bottom: 0; }

/* Homepage hero (title-only overlay): show the image (almost) fully; keep copy/CTA off the photo */
.hero-home--title-only {
  padding: 0;
  overflow: hidden;
}

.hero-home-media {
  position: relative;
  border-bottom: 1px solid var(--color-drift);
}

.hero-home-image--full {
  height: auto;
  object-fit: unset;
}

.hero-title-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: var(--space-4);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.94) 0%,
    rgba(248, 250, 252, 0.60) 34%,
    rgba(248, 250, 252, 0.00) 70%
  );
}

.hero-title {
  margin: 0;
  max-width: 24ch;
}

.hero-home-below {
  padding: var(--space-4);
}

.hero-home-cred { margin-top: 0.85rem; margin-bottom: 0; }

@media (max-width: 560px) {
  .hero-title-overlay {
    padding: var(--space-3);
    background: linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.985) 0%,
      rgba(248, 250, 252, 0.92) 62%,
      rgba(248, 250, 252, 0.50) 90%,
      rgba(248, 250, 252, 0.00) 100%
    );
  }

  .hero-title { max-width: 30ch; }
}

@media (min-width: 900px) {
  .hero-title-overlay { padding: var(--space-5); }
  .hero-home-below { padding: var(--space-5); }
}

@media (min-width: 900px) {
  .hero-home-overlay { align-items: center; }
  .hero-home-panel { margin: var(--space-5); }
}

@media (max-width: 520px) {
  .hero-home-panel { margin: var(--space-3); }
}

/* --- Hero variants --- */
.split--compact .split-media--hero {
  min-height: clamp(220px, 32vh, 340px);
}

.split--compact .hero-image {
  object-position: center;
}

.hero--none .split-media {
  display: none;
}

.hero--none .surface {
  padding-top: var(--space-4);
}

/* Subtle overlay for text contrast is handled by the split layout; add only if needed:
.split-media::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.0) 55%, rgba(255,255,255,0.0) 100%);
}
*/

.hero-copy { padding-left: 0; }
@media (min-width: 960px) {
  .hero-copy { padding-left: 0.25rem; }
}

/* ===== Hero: stacked (image first, text below) ===== */
.hero-home--stacked {
  padding: 0;
  overflow: hidden;
}

.hero-home--stacked .hero-home-media {
  border-bottom: 1px solid var(--color-drift);
}

.hero-home--stacked .hero-home-image--full {
  width: 100%;
  height: auto;           /* show most of the image */
  object-fit: cover;
  object-position: center top;
}

/* Make sure the content has breathing room */
.hero-home--stacked .hero-home-below {
  padding: var(--space-4);
}

@media (min-width: 900px) {
  .hero-home--stacked .hero-home-below {
    padding: var(--space-5);
  }
}


/* ===== Home hero: mobile stacked, desktop split (image dominant) ===== */

.hero-split {
  display: grid;
  gap: var(--space-3);
}

/* Mobile: keep the image prominent but not full-viewport */
.hero-split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-drift);
  background: #fff;
}

.hero-split__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Desktop: split; keep image dominant; remove “panel” look */
@media (min-width: 980px) {
  .hero-split {

    grid-template-columns: minmax(0, 0.60fr) minmax(340px, 0.40fr);
    align-items: center;
    gap: var(--space-5);
  }

  /* Copy area feels like editorial whitespace, not a card */
  .hero-split__copy {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* Media becomes dominant; allow it to feel expansive */
  .hero-split__media {
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-drift);
  }

  /* Slightly larger image presence above the fold */
  .hero-split__img {
    height: clamp(420px, 52vh, 560px);
    width: 100%;
    object-fit: cover;
  }
}

/* Link-style CTA used next to the primary button */
.btn-link {
  background: transparent;
  border: none;
  padding: 0.62rem 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-midnight);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { text-decoration-thickness: 2px; }



/* Cards & lists */

.card {
  background: #ffffff;
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}

/* Reduce the "stacked UI" feel when cards sit inside a surface */
.surface .card {
  box-shadow: none;
}

.card-header { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; }
.card-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-ink-soft);
}
.card-title { font-size: 1.1rem; }
.card-body { font-size: 0.95rem; color: var(--color-ink-soft); }

.list-check {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.list-check li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  color: rgba(15, 23, 42, 0.88);
}
.list-check li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.28rem;
  border-radius: 999px;
  border: 2px solid var(--color-gold);
}

/* Compare columns */

.compare { display: grid; gap: var(--space-3); }
@media (min-width: 840px) {
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Contact page phone layout */
.contact-phones {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.phone-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
}

.phone-row .dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent, #c8a84a);
  border-radius: 999px;
  margin-top: 8px;
}

.phone-meta { min-width: 0; }

.phone-label {
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.2;
}

.phone-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;       /* prevents 1- / 844- / AVERYN1 wrapping */
  word-break: keep-all;
  overflow-wrap: normal;
  text-decoration: none;
}

.phone-link:hover { text-decoration: underline; }

/* CTA band */

.cta-band {
  background: var(--color-midnight);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-card);
}

.cta-band h2, .cta-band p { color: #ffffff; }
.cta-band .pill {
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-drift);
  padding-block: var(--space-4);
  background: #ffffff;
  font-size: 0.875rem;
}

.footer-inner { display: grid; gap: var(--space-2); }
.footer-top { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links,
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.footer-links a,
.footer-legal a { opacity: 0.85; }
.footer-links a:hover,
.footer-legal a:hover { opacity: 1; text-decoration: underline; }

.footer-disclaimer { color: var(--color-ink-soft); }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr); align-items: flex-start; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  opacity: 0.85;
  border: 1px solid transparent;
}

.footer-social .icon-link:hover {
  opacity: 1;
  text-decoration: none;
  border-color: var(--color-drift);
}

.footer-social .icon {
  width: 18px;
  height: 18px;
  display: block;
}



/* --- Tiers, pricing, and add-ons --- */
.tier-grid .card-header{
  display:flex;
  flex-direction:column;
  gap:0.4rem;
}

.tier-price{
  margin-top:0.1rem;
  display:flex;
  align-items:baseline;
  gap:0.25rem;
}

.tier-price-amount{
  font-weight:800;
  font-size:1.65rem;
  letter-spacing:-0.02em;
  color:var(--navy-900);
}

.tier-price-term{
  font-size:0.95rem;
  color:var(--text-500);
}

.pill--gold{
  background: rgba(184, 139, 22, 0.10);
  border-color: rgba(184, 139, 22, 0.28);
  color: var(--navy-800);
}

.tier--featured{
  border-color: var(--navy-200);
  box-shadow: 0 16px 40px rgba(7, 18, 52, 0.10);
}

.card--highlight{
  background: rgba(13, 31, 84, 0.03);
  border-color: var(--navy-200);
}

.card-footer{
  margin-top: var(--space-2);
}

.addons{
  display:grid;
  gap:0.75rem;
  margin-top: var(--space-2);
}

.addon-row{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:0.9rem;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}

.addon-main{
  flex:1;
  min-width:0;
}

.addon-name{
  font-weight:800;
  color:var(--navy-900);
}

.addon-desc{
  margin-top:0.15rem;
  font-size:0.95rem;
  color:var(--text-500);
}

.addon-meta{
  text-align:right;
  white-space:nowrap;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0.15rem;
}

.addon-price{
  font-weight:800;
  color:var(--navy-900);
}

.addon-note{
  font-size:0.85rem;
  color:var(--text-500);
}

@media (max-width: 900px){
  .addon-row{ flex-direction:column; }
  .addon-meta{ align-items:flex-start; text-align:left; }
}

/* -------------------------------------------
   Proof + FAQ
-------------------------------------------- */

.surface--tight { padding: var(--space-3); }

.embed-pdf {
  width: 100%;
  height: 78vh;
  border: 0;
  border-radius: var(--radius-lg);
}

@media (max-width: 680px) {
  .embed-pdf { height: 70vh; }
}

/* Examples preview layout */
.examples-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.examples-preview-left {
  display: flex;
  flex-direction: column;
}

.examples-preview-right {
  display: flex;
  flex-direction: column;
}

.phone-frame-actions {
  display: flex;
  justify-content: flex-start;
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.875rem;
}

/* Smartphone frame for displaying mobile content */
.phone-frame-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: var(--space-4);
  background: var(--color-cloud);
  border-radius: var(--radius-xl);
}

.phone-frame {
  position: relative;
  width: 375px;
  max-width: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 2px 8px rgba(255, 255, 255, 0.5) inset;
}

.phone-frame-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 24px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 0 0 16px 16px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) inset;
}

.phone-frame-screen {
  position: relative;
  width: 100%;
  height: 667px;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2) inset, 0 4px 12px rgba(0, 0, 0, 0.3);
}

.phone-frame-content {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pdf-preview {
  background: var(--color-paper);
}

@media (max-width: 900px) {
  .examples-preview {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .examples-preview-left {
    order: 1;
  }
  
  .examples-preview-right {
    order: 2;
  }
  
  .phone-frame-container {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .phone-frame-container {
    padding: var(--space-2);
  }
  
  .phone-frame {
    width: 100%;
    max-width: 375px;
    padding: 8px;
    border-radius: 24px;
  }
  
  .phone-frame-screen {
    height: 600px;
    border-radius: 18px;
  }
  
  .phone-frame-notch {
    width: 120px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }
}


/* Hospital briefing interactive demo */
.hospital-demo{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.hospital-demo-nav .surface{
  position: sticky;
  top: calc(var(--space-4) + 72px);
}

.hospital-stepper{
  display:flex;
  flex-direction:column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.hospital-step{
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  color: rgba(15, 23, 42, 0.92);
}

.hospital-step:hover{ opacity: 0.92; }

.hospital-step-meta{
  display:block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  font-weight: var(--font-weight-regular);
}

.hospital-step.is-active{
  border-color: rgba(217, 178, 71, 0.55);
  box-shadow: var(--ring);
  background: linear-gradient(180deg, rgba(217, 178, 71, 0.08), var(--color-paper));
}

.hospital-stepper-actions{
  display:flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hospital-stepper-actions .btn[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
}

.hospital-related .btn.is-active{
  border-color: rgba(217, 178, 71, 0.55);
  box-shadow: var(--ring);
}

@media (max-width: 980px){
  .hospital-demo{
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .hospital-demo-nav .surface{
    position: static;
  }
}


/* FAQ (details/summary) */
.faq {
  margin-top: var(--space-2);
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.faq details { border-top: 1px solid var(--color-drift); }
.faq details:first-child { border-top: 0; }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: var(--font-weight-semibold);
}

.faq summary::-webkit-details-marker { display:none; }

.faq summary .faq-q { flex: 1; }
.faq summary .faq-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--color-drift);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.70);
}

.faq details[open] summary .faq-icon { background: rgba(217, 178, 71, 0.12); border-color: rgba(217, 178, 71, 0.35); }

.faq .faq-a {
  padding: 0 1.1rem 1.05rem;
  color: rgba(15, 23, 42, 0.86);
}

/* Tabs (CSS-only) */
.tabs {
  margin-top: var(--space-3);
}

.tabs input { position: absolute; opacity: 0; pointer-events: none; }

.tabs-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tabs-labels label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-drift);
  background: #fff;
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  opacity: 0.92;
  cursor: pointer;
}

#tab-1:checked ~ .tabs-labels label[for="tab-1"],
#tab-2:checked ~ .tabs-labels label[for="tab-2"],
#tab-3:checked ~ .tabs-labels label[for="tab-3"] {
  opacity: 1;
  border-color: rgba(217, 178, 71, 0.55);
  box-shadow: var(--ring);
}

.tabs-panels { margin-top: var(--space-3); }
.tab-panel { display: none; }

#tab-1:checked ~ .tabs-panels #panel-1,
#tab-2:checked ~ .tabs-panels #panel-2,
#tab-3:checked ~ .tabs-panels #panel-3 { display: block; }

/* Timeline */
.timeline {
  margin-top: var(--space-3);
  border-left: 1px solid var(--color-drift);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding: 0.85rem 0 0.85rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.43rem;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(217, 178, 71, 0.16);
}

.timeline-day {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
}

.timeline-bullets {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  color: rgba(15, 23, 42, 0.86);
}

.timeline-bullets li { margin: 0.25rem 0; }

/* Timeline nested bullets */
.timeline-bullets ul {
  margin: 0.35rem 0 0.15rem;
  padding-left: 1.15rem;
  list-style: circle;
}

.timeline-bullets ul li { margin: 0.2rem 0; }




.text-link{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  color:rgba(15,23,42,0.92);
  font-weight:var(--font-weight-medium);
  text-decoration:underline;
  text-underline-offset:0.22rem;
}
.text-link:hover{ opacity:0.85; }


/* ===== Mobile menu: full-screen sheet (fixes short dropdown + internal scroll) ===== */
@media (max-width: 980px) {
  /* When menu is open, make the nav a fixed full-screen sheet */
  .nav-toggle:checked ~ .nav-primary {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;          /* full screen */
    height: 100vh !important;
    max-height: none !important;  /* kill any previous max-height */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: rgba(255,255,255,0.98);
    padding: 88px 20px 28px;      /* leave room for header row */
    z-index: 9998 !important;
    overscroll-behavior: contain;
  }

  /* Keep header + hamburger anchored above the sheet */
  .site-header { z-index: 9999 !important; }
  .nav-inner { position: relative; z-index: 10000; }
  .nav-toggle-label { position: relative; z-index: 10001; }

  /* Make links easy to tap */
  .nav-primary .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
  }

  /* Keep the CTA visible */
  .nav-primary .nav-cta {
    position: sticky;
    bottom: 16px;
    align-self: flex-start;
    margin-top: 16px;
  }
}
/* Service area page improvements */
.local-snapshot {
  line-height: 1.7;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Remove any max-width constraints that might cause premature wrapping */
.local-snapshot p {
  max-width: 100%;
}

.local-snapshot strong {
  color: var(--color-midnight);
  font-weight: var(--font-weight-semibold);
}

.subheader {
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-ink-soft);
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.service-info {
  word-break: normal;
  overflow-wrap: break-word;
}

.service-info .nowrap,
.service-item .nowrap {
  white-space: nowrap;
}

/* Ensure phone numbers never wrap */
a.phone-link,
.service-info a[href^="tel:"],
.service-item a[href^="tel:"],
.service-info-list a[href^="tel:"] {
  white-space: nowrap;
  display: inline-block;
}

.service-info-list {
  word-break: normal;
  overflow-wrap: break-word;
}

.service-item {
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.6;
  /* Override grid layout from .list-check li for service items */
  grid-template-columns: 1fr !important;
  display: block !important;
  margin-bottom: 0.5rem;
}

.service-item::before {
  display: none !important;
}

/* Ensure service-item lists don't use grid layout */
.service-info-list .service-item,
.list-check .service-item {
  display: block !important;
  grid-template-columns: none !important;
}

.service-item strong {
  display: inline;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Address links styling */
.address-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.address-link:hover {
  text-decoration-thickness: 2px;
}

.service-item .small {
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.5;
}

/* Prevent excessive wrapping in service area cards */
.grid-three .card .card-body,
.grid-three .card .service-info,
.grid-two .card .card-body,
.grid-two .card .service-info {
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.grid-three .card .card-title,
.grid-two .card .card-title {
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  max-width: 100%;
}

/* Ensure cards in grids use full width */
.grid-two .card,
.grid-three .card {
  min-width: 0; /* Allow grid items to shrink below content size */
  width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Ensure list items in grid cards can wrap properly */
.grid-three .card .list-check,
.grid-two .card .list-check {
  min-width: 0;
}

.grid-three .card .list-check li,
.grid-two .card .list-check li {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Fix list-check items in card contexts - use simple block layout */
.card .list-check li {
  display: block;
  padding-left: 1.5rem;
  position: relative;
}

.card .list-check li::before {
  position: absolute;
  left: 0;
  top: 0.32rem;
}

/* Improve Averyn can help card layout */
.grid-two .card {
  align-self: start;
}

/* Prevent wrapping in service area content */
.surface .card-body,
.surface .service-info {
  word-break: normal;
  overflow-wrap: break-word;
}

/* Fix meals and in-home help sections */
.grid-two .surface .service-item {
  margin-bottom: 0.75rem;
}

.grid-two .surface .service-item strong {
  font-weight: var(--font-weight-semibold);
  margin-right: 0.25rem;
}

.phone-wrap {
  white-space: nowrap;
}

.service-notes {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 680px) {
  .service-item .nowrap {
    white-space: normal;
  }
  
  .service-info .nowrap {
    white-space: normal;
  }
  
  .service-info a[href^="tel:"],
  .service-item a[href^="tel:"] {
    white-space: normal;
  }
}

/* Tabbed Interface */
.tab-container {
  width: 100%;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-drift);
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.tab-button:hover {
  color: var(--color-midnight);
}

.tab-button.active {
  color: var(--color-midnight);
  border-bottom-color: var(--color-gold);
}

.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none;
}

/* Improved spacing between sections */
.section {
  padding-block: var(--space-5);
}

.section + .section {
  padding-top: var(--space-4);
}

.section .container {
  margin-bottom: 0;
}

.section .card {
  margin-bottom: 0;
}

/* Better spacing in grid layouts */
.grid.grid-2,
.grid.grid-3 {
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid.grid-2,
  .grid.grid-3 {
    gap: var(--space-5);
  }
}

/* Metro Grid Cards */
.metro-grid {
  margin-top: 1.5rem;
}

.metro-card {
  display: flex;
  flex-direction: column;
}

.metro-card h3 {
  margin-bottom: 0.75rem;
}

.metro-card h3 a {
  text-decoration: none;
  color: var(--color-midnight);
}

.metro-card h3 a:hover {
  text-decoration: underline;
}

.metro-uniqueness {
  margin-top: 0.5rem;
}

.metro-uniqueness-preview,
.metro-uniqueness-full {
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.metro-uniqueness-full.hidden {
  display: none;
}

.metro-read-more {
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--color-gold);
  cursor: pointer;
  text-decoration: underline;
  transition: color 200ms ease;
}

.metro-read-more:hover {
  color: var(--color-midnight);
}

.metro-read-more[aria-expanded="true"]::after {
  content: " (less)";
}

/* State/Metro Browse Section */
.state-browse-wrapper {
  margin-top: 1rem;
}

.state-metro-search {
  width: 100%;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  color: var(--color-midnight);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.state-metro-search:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: var(--ring);
}

.state-metro-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.state-entry {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-drift);
}

.state-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.state-header {
  margin-bottom: 0.5rem;
}

.state-header a {
  display: block;
  margin-bottom: 0.25rem;
}

.state-header .muted {
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

/* Remove abbreviation from state list on index page */
.state-browse-wrapper .state-header .muted {
  display: none;
}

.metro-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--color-drift);
}

.metro-entry {
  margin-bottom: 0.5rem;
}

.metro-entry:last-child {
  margin-bottom: 0;
}

.metro-entry a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  transition: background-color 150ms ease, color 150ms ease;
}

.metro-entry a:hover {
  background: var(--color-cloud);
  color: var(--color-midnight);
  text-decoration: none;
}

.metro-entry-header {
  margin-bottom: 0.5rem;
}

.metro-entry-header a {
  font-weight: var(--font-weight-medium);
  color: var(--color-midnight);
}

.metro-uniqueness-inline {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.metro-uniqueness-preview-inline,
.metro-uniqueness-full-inline {
  margin-bottom: 0.5rem;
}

.metro-uniqueness-full-inline.hidden {
  display: none;
}

.metro-read-more-inline {
  margin-top: 0.25rem;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--color-gold);
  cursor: pointer;
  text-decoration: underline;
  transition: color 200ms ease;
}

.metro-read-more-inline:hover {
  color: var(--color-midnight);
}

/* Hidden state for filtered items */
.state-entry.hidden,
.metro-entry.hidden {
  display: none;
}

/* When all metros in a state are hidden, hide the state border */
.state-entry.no-visible-metros .metro-list {
  border-left: none;
  padding-left: 0;
}


/* -------------------------------------------
   Utilities
-------------------------------------------- */

.is-hidden {
  display: none !important;
}

/* Card links (used for download tiles, etc.) */
.card--link {
  display: block;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.card--link:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 178, 71, 0.55);
  box-shadow: var(--shadow-soft);
}

.card--link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
