/* =========================================================
   Morningstar Integrated Health — Design System
   Palette pulled from the practice logo:
     terracotta #a46f3f · sage #7f8e7d · sunrise gold #d59f5d · cream #fbf6f0
   ========================================================= */
/* =========================================================
   Self-hosted fonts

   Previously loaded from fonts.googleapis.com, which put a render-blocking
   stylesheet on a third origin in front of first paint (and sent every visitor's
   IP to Google — worth avoiding on a healthcare site). Both families ship as
   variable fonts, so one file each covers every weight we use.
   unicode-range is intentionally omitted: there is only one subset, so there is
   nothing to select between, and leaving it off lets the browser fall back
   per-glyph rather than skipping the font for an undeclared codepoint.
   ========================================================= */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --clay: #a46f3f;          /* primary — "Morningstar" script */
  --clay-dark: #82542c;     /* deep terracotta for headings/hover */
  /* Accessible variants. --clay hits only 4.26:1 on white, just under the 4.5:1
     WCAG AA floor for normal text, so link text and solid buttons use these. */
  --clay-link: #8a5a2b;     /* link text — 5.87:1 on white */
  --clay-btn: #9a6636;      /* solid button fill under #fff — 4.85:1 */
  --clay-soft: #f1e3d6;     /* tinted clay wash */
  --sage: #7f8e7d;          /* accent — hills + wordmark subtitle */
  --sage-dark: #5f6e5d;
  --sage-soft: #e7ece4;     /* tinted sage wash */
  --gold: #d59f5d;          /* sunrise amber */
  --gold-dark: #b9823f;     /* icons + borders only — too light for small text */
  --gold-text: #8f5f18;     /* small gold text (eyebrows) — 4.6:1+ on every page bg */
  --gold-soft: #f6e9d4;
  --cream: #fbf6f0;         /* logo background */
  --cream-deep: #f3eadd;
  --bg: #fdfaf5;
  --ink: #3a2f26;           /* warm near-black */
  --ink-soft: #6f6357;
  --ink-mute: #9c9085;
  --border: #ece2d6;
  --border-strong: #ddcfbe;
  --shadow-sm: 0 1px 2px rgba(130, 84, 44, 0.06);
  --shadow-md: 0 6px 22px rgba(130, 84, 44, 0.10);
  --shadow-lg: 0 18px 48px rgba(130, 84, 44, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --container: 1140px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Never let a stray-wide element create a horizontal scrollbar that shifts
     the whole page sideways. `clip` is safe with the sticky header. */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--clay-link); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--clay-dark); }
/* Inline links inside body copy also carry an underline — colour alone is not a
   sufficient cue, and link vs. body-text contrast can't reach 3:1 within the
   brand palette (WCAG 1.4.1). Nav, buttons and link lists are exempt: they read
   as links from position, not colour. */
main p a:not(.btn):not(.feature-link) {
  text-decoration: underline;
  text-underline-offset: .18em;
}
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--clay-dark);
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  line-height: 1.12;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 4.2vw + 1rem, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 2vw + 1rem, 2.5rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 700; font-family: var(--font-sans); color: var(--ink); letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: 1.18rem; color: var(--ink); line-height: 1.6; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--sage { background: var(--sage-soft); }
.section--cream { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .75rem;
}
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  border: 0; border-radius: 2px;
  margin: 0 0 1.25rem;
}
.section-head .divider { margin: 0 auto 1.25rem; }

/* Sunrise rays — small decorative motif echoing the logo */
.rays {
  width: 40px; height: 40px; margin: 0 auto .8rem;
  color: var(--gold);
}
.section-head .rays { display: block; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--clay-btn); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-dark); color: #fff; box-shadow: var(--shadow-md); }
/* Ghost = the shared "light-orange -> light-green gradient" template */
.btn--ghost {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--sage-soft) 100%);
  color: var(--clay-dark);
  border-color: #e6d6bd;
}
.btn--ghost:hover {
  background: linear-gradient(135deg, #f2ddb9 0%, #dbe6d2 100%);
  border-color: var(--gold-dark);
  color: var(--clay-dark);
}
.btn--gold { background: var(--gold); color: var(--clay-dark); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.btn--sage { background: var(--sage); color: #fff; }
.btn--sage:hover { background: var(--sage-dark); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,246,240,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--clay-dark);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.1;
}
.brand:hover { color: var(--clay-dark); }
.brand-logo {
  display: block;
  height: 110px;
  width: auto;
}
@media (max-width: 1040px) {
  .brand-logo { height: 90px; }
}
@media (max-width: 600px) {
  .brand-logo { height: 72px; }
}
/* Nav "Schedule an Appointment" collapses to just "Schedule" in the mobile bar. */
.nav-schedule-short { display: none; }
/* Footer wordmark fallback (text brand) */
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: .25rem 0;
  position: relative;
  white-space: nowrap;
}

/* Thin vertical separators between nav items (desktop only) */
@media (min-width: 1041px) {
  .nav-links { gap: 0; }
  .nav-links > li:not(:first-child) {
    border-left: 1px solid var(--border-strong);
    margin-left: 1.05rem;
    padding-left: 1.05rem;
  }
}
.nav-links a:hover { color: var(--clay); }
.nav-links a[aria-current="page"] { color: var(--clay-dark); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-membership { gap: .35rem; }
/* nav Call button uses the shared .btn--ghost gradient template */

/* ---- Services nav dropdown ---- */
.dropdown { list-style: none; margin: 0; padding: 0; }
.caret { width: 13px; height: 13px; }

@media (min-width: 1041px) {
  .has-dropdown { position: relative; }
  .has-dropdown > a { display: inline-flex; align-items: center; gap: .3rem; }
  .caret { transition: transform .2s var(--ease); }
  .has-dropdown:hover .caret,
  .has-dropdown:focus-within .caret { transform: rotate(180deg); }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 234px;
    margin-top: .55rem;
    padding: .5rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    z-index: 60;
  }
  /* invisible bridge so the small gap doesn't drop the hover */
  .has-dropdown::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: .7rem;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown a {
    display: block;
    padding: .58rem .7rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink);
  }
  .dropdown a:hover { background: var(--sage-soft); color: var(--clay-dark); }
  .dropdown a[aria-current="page"] { color: var(--clay-dark); }
  .dropdown a[aria-current="page"]::after { display: none; }
}

@media (max-width: 1040px) {
  /* In the open hamburger, show the dropdown as an indented sublist */
  .nav.is-open .nav-links .dropdown a { padding-left: 1.5rem; font-size: .98rem; }
  .caret { display: none; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--clay);
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.nav-toggle:hover { background: var(--clay-soft); border-color: var(--clay); }
.nav-toggle svg { width: 24px; height: 24px; }

.nav-cta-mobile { display: none; }
.nav-cta-mobile .btn { width: 100%; justify-content: center; }

@media (max-width: 1040px) {
  /* Links live in the hamburger; the CTA buttons stay in the bar */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: relative; gap: .6rem; }
  .nav-cta { gap: .5rem; }

  /* Phone CTA collapses to an icon-only button */
  .nav-cta .btn--ghost {
    font-size: 0;
    gap: 0;
    padding: .68rem;
    border-radius: 12px;
  }
  .nav-cta .btn--ghost svg { width: 20px; height: 20px; }

  /* Schedule CTA: shortened to just "Schedule" so the button stays small */
  .nav-schedule {
    padding: .55rem .9rem;
    font-size: .82rem;
    border-radius: 12px;
  }
  .nav-schedule .nav-schedule-full { display: none; }
  .nav-schedule .nav-schedule-short { display: inline; }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: -1.25rem;
    right: -1.25rem;
    top: 100%;
    /* Gradient divider sits at the very top of the menu, flush under the
       header — so it fills the gap consistently at any scroll position. */
    background:
      linear-gradient(90deg, var(--sage), var(--gold), var(--clay)) top left / 100% 5px no-repeat,
      var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .9rem 1.25rem 1.25rem;
    z-index: 49;
  }
  .nav.is-open .nav-links > li { width: 100%; }
  .nav.is-open .nav-links a {
    display: block;
    width: 100%;
    padding: .95rem .25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav.is-open .nav-links a[aria-current="page"]::after { display: none; }
  .nav.is-open .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-top: 1rem;
    margin-top: .5rem;
    border-top: 1px solid var(--border);
  }
}

/* =========================================================
   Hero — sunrise treatment
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
  background:
    linear-gradient(180deg, rgba(251,246,240,.34) 0%, rgba(251,246,240,.55) 42%, rgba(251,246,240,.55) 70%, rgba(251,246,240,.40) 100%),
    url("assets/morningstar-hero.webp") center 42% / cover no-repeat,
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--clay));
  opacity: .85;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-top: .5rem; }
.hero .lead { max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.75rem;
  justify-content: center;
}
/* Hero Call + "Questions About Concierge Membership?" use the shared .btn--ghost gradient */
/* The long concierge-question pill may wrap to two lines instead of overflowing
   the hero width on narrow screens. */
.hero-actions .btn--wrap {
  white-space: normal;
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
}
.hero-meta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: center;
  color: var(--ink-soft);
  font-size: .92rem;
}
.hero-meta strong { color: var(--ink); font-weight: 700; }
.hero-meta-item { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); }
.hero-meta-item svg { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; }

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(213,159,93,.55), transparent 42%);
  z-index: -1;
}
.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
  overflow: hidden;
  position: relative;
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-portrait .portrait-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.75);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: 1.5rem;
}
.hero-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem .5rem .25rem;
}
.hero-card-meta-name {
  font-family: var(--font-serif);
  color: var(--clay-dark);
  font-weight: 600;
  font-size: 1.1rem;
}
.hero-card-meta-title { color: var(--ink-soft); font-size: .85rem; }
.hero-card-badge {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 800;
  background: var(--sage-soft);
  padding: .35rem .7rem;
  border-radius: 999px;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { max-width: 420px; margin: 0 auto; }
  /* Vertical cream overlay keeps the stacked text readable on mobile */
  .hero {
    background:
      linear-gradient(180deg, rgba(251,246,240,.93) 0%, rgba(251,246,240,.78) 50%, rgba(251,246,240,.55) 100%),
      url("assets/morningstar-hero.webp") center / cover no-repeat,
      linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  }
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  position: relative;
  /* Same sunrise hero background + overlay as the homepage, on every interior page */
  background:
    linear-gradient(180deg, rgba(251,246,240,.34) 0%, rgba(251,246,240,.55) 42%, rgba(251,246,240,.55) 70%, rgba(251,246,240,.40) 100%),
    url("assets/morningstar-hero.webp") center 42% / cover no-repeat,
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
.page-header::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--clay));
}
.page-header h1 { max-width: 800px; }
.page-header .lead { max-width: 680px; }

@media (max-width: 880px) {
  .page-header {
    background:
      linear-gradient(180deg, rgba(251,246,240,.93) 0%, rgba(251,246,240,.78) 50%, rgba(251,246,240,.55) 100%),
      url("assets/morningstar-hero.webp") center / cover no-repeat,
      linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  }
}

/* =========================================================
   Feature cards
   ========================================================= */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* Fixed 3-up grid (e.g. concierge benefits) — even rows, roomier cards */
.feature-grid--three { grid-template-columns: repeat(3, 1fr); }
.feature-grid--three .feature { padding: 2.1rem; }
@media (max-width: 880px) { .feature-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid--three { grid-template-columns: 1fr; } }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .35rem; text-align: center; }
.feature p { margin: 0; font-size: .96rem; }
.feature--accent .feature-icon { background: var(--sage-soft); color: var(--sage-dark); }

/* Wide "Business" plan banner that stretches under the plan cards */
.plan-business {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem 2rem;
  background: var(--sage-soft);
  border-color: #cfdcc6;
}
.plan-business { text-align: left; }
.plan-business > div { flex: 1 1 380px; }
.plan-business h3 { margin-bottom: .35rem; text-align: left; }
.plan-business .feature-icon { margin-left: 0; }
.plan-business p { margin: 0; }
.plan-business .btn { flex-shrink: 0; }
.feature--gold .feature-icon { background: var(--gold-soft); color: var(--gold-dark); }

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: .95rem;
  align-self: flex-start;
  font-weight: 700;
  font-size: .92rem;
  color: var(--clay-link);
}
.feature-link svg { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.feature-link:hover svg { transform: translateX(3px); }

/* =========================================================
   Split (image + text) panel
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split-media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--sage-soft) 0%, #d8e0d2 100%);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--ink-mute);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.split-media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 25% 20%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(closest-side at 80% 85%, rgba(213,159,93,.22), transparent 65%);
}
.split-media span { position: relative; z-index: 1; text-align: center; padding: 1.5rem; }
.split-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.split-media:has(img)::before { display: none; }
.split-media--portrait { aspect-ratio: 4 / 5; }
/* Square panel that shows the full (uncropped) image */
.split-media--fit { aspect-ratio: 1 / 1; background: var(--sage-soft); }
.split-media--fit img { object-fit: contain; }
.split h2 { margin-top: .25rem; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 480px; }
}

/* =========================================================
   Checklist
   ========================================================= */
.checklist {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .9rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .85rem;
  align-items: flex-start;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b9823f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 10.5 9 14.5 15 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  margin-top: 2px;
}

/* =========================================================
   CTA strip
   ========================================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(213,159,93,.38), transparent 70%);
  right: -90px; top: -140px;
}
.cta-strip h2 { color: #fff; margin: 0 0 .35rem; }
.cta-strip p { color: rgba(255,255,255,.82); margin: 0; max-width: 520px; }
.cta-strip-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }

/* CTA-strip buttons: three separate rounded pills with normal spacing. Each
   keeps the colors from its spot along the old left-to-right sweep — Schedule
   clay->tan, Call tan->soft sage, Learn soft sage->mint — so together they
   still progress warm to cool without ever touching near-white. */
.cta-strip-actions .btn {
  border: none;
  background-clip: padding-box;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.cta-strip-actions .btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 5px 16px rgba(0,0,0,.26);
}
.cta-strip-actions .btn--primary {           /* Schedule: clay -> warm tan */
  background: linear-gradient(90deg, var(--clay) 0%, #d3bd97 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.cta-strip-actions .btn--ghost {             /* Call: warm tan -> soft sage */
  background: linear-gradient(90deg, #d3bd97 0%, #cdc2a1 50%, #bfc4a6 100%);
  color: var(--clay-dark);
}
.cta-strip-actions .btn--gold {              /* Learn About Membership: soft sage -> mint */
  background: linear-gradient(90deg, #bfc4a6 0%, #75856c 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

/* Phones: buttons stack, so run the same color sweep top-to-bottom (180deg)
   down the column instead of left-to-right — clay at the top of Schedule to
   mint at the bottom of Learn. */
@media (max-width: 600px) {
  .cta-strip-actions { flex-direction: column; align-items: center; }
  .cta-strip-actions .btn--primary {
    background: linear-gradient(180deg, var(--clay) 0%, #d3bd97 100%);
  }
  .cta-strip-actions .btn--ghost {
    background: linear-gradient(180deg, #d3bd97 0%, #cdc2a1 50%, #bfc4a6 100%);
  }
  .cta-strip-actions .btn--gold {
    background: linear-gradient(180deg, #bfc4a6 0%, #75856c 100%);
  }
}

/* =========================================================
   Credentials
   ========================================================= */
.credentials {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.credentials h3 {
  font-family: var(--font-serif);
  color: var(--clay-dark);
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}
.credentials ul { list-style: none; padding: 0; margin: 0; }
.credentials li { padding: .35rem 0; color: var(--ink); font-size: .95rem; }
.credentials li span { display: block; color: var(--ink-mute); font-size: .85rem; }

.pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--clay-dark);
  border-left: 3px solid var(--gold);
  padding: .25rem 0 .25rem 1.5rem;
  margin: 2rem 0;
  max-width: 760px;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: grid;
  gap: 1.25rem;
  min-width: 0;              /* let the card shrink instead of overflowing its column */
}
.contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}
/* Long links (e.g. the email address) wrap instead of forcing the card wider. */
.contact-item p, .contact-item a { overflow-wrap: anywhere; }
.contact-item-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay);
  display: grid; place-items: center;
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item h3 {
  margin: 0 0 .15rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}
.contact-item p { margin: 0; color: var(--ink); }
.contact-item a { font-weight: 700; }

.form-slot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  min-height: 460px;
  min-width: 0;              /* let the form column shrink instead of overflowing */
  display: flex;
  flex-direction: column;
}
.form-slot h2 { font-family: var(--font-sans); font-size: 1.3rem; color: var(--ink); margin-bottom: .25rem; font-weight: 800; text-align: center; }
.form-slot > p { margin-bottom: 1.25rem; text-align: center; }

/* "Prefer to book right away?" row under the contact form — opens the Charm modal. */
.form-slot__book {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-slot__book span { color: var(--ink-soft); font-size: .95rem; }

/* Charm "Thu/Fri call" notice, prepended inside the schedule modal. */
.charm-notice {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  background: var(--clay-soft);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--ink);
}
.charm-notice a { white-space: nowrap; font-weight: 700; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr:last-child td { border-bottom: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--sage-soft) 0%, #75856c 100%);
  color: #2f3a2b;
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
}
.footer-top {
  display: grid;
  gap: 2rem clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: 1.6fr 1fr 1.05fr 1.35fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(40,50,35,.2);
}
.footer-mark { height: 40px; width: auto; flex-shrink: 0; }
.footer-brand { color: var(--clay-dark); }
.footer-brand .brand { color: var(--clay-dark); align-items: center; }
.footer-brand p { margin: 1rem 0 0; color: #3f4a39; max-width: 340px; }
/* Clear visual separation between the Practice / Hours / Contact sections */
.footer-col {
  border-left: 1px solid rgba(40,50,35,.18);
  padding-left: clamp(1.25rem, 2vw, 2rem);
}
.footer-hours { list-style: none; margin: 0; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; margin-bottom: .42rem; }
.footer-hours li span:first-child { font-weight: 700; color: #313d2d; }
.footer-hours-note { margin: .65rem 0 0; font-size: .8rem; color: #6a7562; font-style: italic; }
.footer-col h4 {
  color: #313d2d;
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-weight: 800;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; font-size: .95rem; }
.footer-col a { color: #36422f; }
.footer-col a:hover { color: var(--clay-dark); }
/* Make email + phone read as tappable links */
.footer-col a[href^="mailto:"],
.footer-col a[href^="tel:"] { color: var(--clay-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-col a[href^="mailto:"] { white-space: nowrap; font-size: .82rem; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #2a3326;
}
.footer-bottom a { color: #222a1f; }
.powered-by { color: #2a3326; }
.powered-by a { color: #5a2ea6; font-weight: 700; }
.powered-by a:hover { color: #7a4fc9; }

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { border-left: 0; padding-left: 0; }

  /* Center everything in the footer on mobile */
  .site-footer { text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-hours li { justify-content: center; gap: .55rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   House-call coverage map
   ========================================================= */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) { .coverage { grid-template-columns: 1fr; } }
.coverage-map {
  background: radial-gradient(120% 120% at 30% 12%, #ffffff 0%, var(--cream) 55%, var(--sage-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: .85rem;
  box-shadow: var(--shadow-md);
}
.coverage-map svg { width: 100%; height: auto; display: block; }
.coverage-note { margin: .65rem 0 .15rem; text-align: center; font-size: .8rem; color: var(--ink-mute); }
.county { fill: var(--sage); fill-opacity: .16; stroke: var(--sage-dark); stroke-opacity: .5; stroke-width: .8; }
.county--PA { fill: var(--sage); fill-opacity: .45; stroke: var(--sage-dark); stroke-opacity: .7; }
.county--OH { fill: var(--clay); fill-opacity: .34; stroke: var(--clay-dark); stroke-opacity: .62; }
.county--WV { fill: #9a8f7e; fill-opacity: .42; stroke: #6f6357; stroke-opacity: .58; }
.county-label { fill: var(--ink-soft); font-size: 13px; font-family: var(--font-sans); }
.coverage-radius { fill: var(--gold); fill-opacity: .24; stroke: none; }
.coverage-ring { fill: none; stroke: var(--clay); stroke-width: 3; vector-effect: non-scaling-stroke; }
.coverage-center { fill: var(--clay); }
.coverage-center-ring { fill: none; stroke: var(--clay); stroke-opacity: .4; }
.home-dot { fill: var(--clay); }
.home-dot-halo { fill: none; stroke: var(--clay); stroke-opacity: .4; }
.home-label { fill: #82542c; font-size: 13px; font-weight: 700; font-family: var(--font-sans); }

/* Interactive state highlighters */
.county { transition: fill-opacity .22s var(--ease), stroke-opacity .22s var(--ease); }
.state-toggles-hint { margin: 1.4rem 0 .6rem; font-size: .9rem; color: var(--ink-soft); }
.state-toggles { display: flex; flex-wrap: wrap; gap: .6rem; }
.state-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.state-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.state-toggle .legend-swatch { width: 14px; height: 14px; border-radius: 4px; }
.state-toggle--PA:hover, .state-toggle--PA[aria-pressed="true"] { border-color: var(--sage); background: var(--sage-soft); }
.state-toggle--OH:hover, .state-toggle--OH[aria-pressed="true"] { border-color: var(--clay); background: var(--clay-soft); }
.state-toggle--WV:hover, .state-toggle--WV[aria-pressed="true"] { border-color: #9a8f7e; background: #efeae2; }

/* When a state is active, dim every county then re-light the active state */
.coverage.highlight-PA .county,
.coverage.highlight-OH .county,
.coverage.highlight-WV .county { fill-opacity: .07; stroke-opacity: .22; }
.coverage.highlight-PA .county--PA { fill-opacity: .62; stroke-opacity: .9; }
.coverage.highlight-OH .county--OH { fill-opacity: .58; stroke-opacity: .85; }
.coverage.highlight-WV .county--WV { fill-opacity: .6; stroke-opacity: .82; }
.coverage-legend { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 1.5rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.coverage-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.legend-swatch { width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; }
.area-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.area-chip {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
}
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay-dark);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: .9rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; font-size: .96rem; }

/* =========================================================
   Services page — fully centered layout
   ========================================================= */
.page-services .page-header { text-align: center; }
.page-services .page-header h1,
.page-services .page-header .lead { margin-left: auto; margin-right: auto; }
.page-services .page-header .divider { margin-left: auto; margin-right: auto; }
.page-services .feature-icon { margin-left: auto; margin-right: auto; }
.page-services .split > div { text-align: center; }
.page-services .split .divider { margin-left: auto; margin-right: auto; }
.page-services .checklist {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* =========================================================
   404
   ========================================================= */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

/* =========================================================
   Utility / 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;
}
/* The "Skip to content" link is .sr-only, so it was unreachable in practice:
   keyboard users could focus it but never see it. Reveal it while focused. */
a.sr-only:focus {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 1000;
  width: auto; height: auto;
  margin: 0; padding: .7rem 1.1rem;
  clip: auto;
  background: var(--cream);
  color: var(--clay-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Mobile: center everything in the page body (footer excluded)
   ========================================================= */
@media (max-width: 880px) {
  #main { text-align: center; }

  /* Block elements that need explicit centering */
  #main .divider { margin-left: auto; margin-right: auto; }
  #main .feature-icon,
  #main .contact-item-icon,
  #main .step::before { margin-left: auto; margin-right: auto; }
  /* width:100% is required — margin:auto alone collapses these (abs-positioned img) */
  #main .split-media { width: 100%; margin-left: auto; margin-right: auto; }

  /* Flex rows -> center their items */
  #main .hero-actions,
  #main .hero-meta,
  #main .cta-strip,
  #main .cta-strip-actions,
  #main .area-chips,
  #main .state-toggles,
  #main .coverage-legend { justify-content: center; }

  /* Cards: center EVERYTHING on mobile (icon, header, body, link) */
  #main .feature { text-align: center; }
  #main .feature-link { align-self: center; }
  #main .plan-business { justify-content: center; }
  #main .plan-business h3 { text-align: center; }

  /* Checklists: center the block but keep line text left-aligned for readability */
  #main .checklist {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  /* Contact details: stack the icon over centered text */
  #main .contact-item { grid-template-columns: 1fr; justify-items: center; }
  #main .hours-table { text-align: left; }

  /* Pullquote: swap the left accent bar for a centered top bar */
  #main .pullquote {
    border-left: 0;
    border-top: 3px solid var(--gold);
    padding: 1rem 0 0;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   Schedule modal
   ========================================================= */
.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.schedule-modal[hidden] { display: none; }
.schedule-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 47, 38, 0.55);
}
.schedule-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* Charm's calendar is ~700px+ wide and can't reflow, so give it real width;
     a definite height lets the iframe fill without the panel adding scrollbars. */
  width: min(900px, 96vw);
  height: min(940px, 96vh);
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 1rem;
  animation: modal-in .2s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-modal__panel { animation: none; }
}
.schedule-modal__close {
  position: absolute;
  top: .6rem;
  right: .8rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
}
.schedule-modal__close:hover { background: var(--cream-deep); color: var(--ink); }
.schedule-modal__panel:focus { outline: none; }
.schedule-modal__title {
  font-family: var(--font-serif);
  color: var(--clay-dark);
  font-size: 1.6rem;
  margin: 0 0 1rem;
  padding-right: 2rem;
}
.charm-placeholder { text-align: center; padding: 1.5rem 0; color: var(--ink-soft); }
.charm-placeholder p { margin: 0 0 1rem; }
/* Body fills the panel below the title/notice; the iframe fills the body so
   Charm gets max height (only Charm scrolls internally, and only if needed). */
.schedule-modal__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.schedule-modal__body iframe { flex: 1 1 auto; width: 100%; max-width: 100%; min-height: 0; border: 0; display: block; }

/* Phones: Charm's content is wider than a phone, so go full-screen to give the
   iframe the whole viewport — no cramped box, no horizontal scroll. */
@media (max-width: 560px) {
  .schedule-modal { padding: 0; }
  /* Pin to the viewport (inset:0) so it's exactly full-screen — no flex-centering
     offset, no dvh/vh rounding gap that could clip the bottom edge. */
  .schedule-modal__panel {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    padding: .85rem .55rem .55rem;
  }
  .schedule-modal__title { font-size: 1.35rem; margin-bottom: .6rem; }
}

html.modal-open, html.modal-open body { overflow: hidden; }

/* Keep the nav CTA row from overflowing on small phones:
   Schedule + Call stay; Membership drops (still reachable in-page). */
@media (max-width: 560px) {
  .nav-cta .nav-membership { display: none; }
}

