/* ==========================================================================
   EDGEMARK SERVICES LLC — Home Nursing & In-Home Healthcare, Austin, TX
   Shared stylesheet: design tokens, layout, components, motion
   ========================================================================== */

:root {
  --night: #131C33;
  --navy: #1E2C4F;
  --bluebonnet: #3D5A9B;
  --sky: #8AA6D9;
  --gold: #E2B04A;
  --clay: #C96F4A;
  --limestone: #F7F4EE;
  --paper: #FFFFFF;
  --muted: #5B6683;
  --line: #E1DDD3;
  --grad-hero: linear-gradient(150deg, #131C33 0%, #1E2C4F 50%, #33447A 100%);
  --grad-gold: linear-gradient(115deg, #E2B04A, #C96F4A);
  --grad-map: linear-gradient(165deg, #8AA6D9, #3D5A9B);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --sh-1: 0 1px 4px rgba(19, 28, 51, .07);
  --sh-2: 0 10px 30px rgba(19, 28, 51, .11);
  --sh-3: 0 26px 64px rgba(19, 28, 51, .18);
  --sh-gold: 0 0 36px rgba(226, 176, 74, .32);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--night);
  background: var(--limestone);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  color: var(--night);
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
a { color: var(--bluebonnet); }
ul, ol { margin: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--night);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
  font-size: .9rem;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.container-wide { width: min(100% - 2.5rem, 90rem); margin-inline: auto; }
.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .8rem;
}
.section-head { max-width: 46rem; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--grad-gold); color: var(--night); box-shadow: 0 8px 22px rgba(226, 176, 74, .28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--sh-gold); }
.btn-outline { border-color: rgba(138, 166, 217, .6); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-outline:hover { border-color: var(--sky); background: rgba(138, 166, 217, .14); transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--bluebonnet); color: var(--bluebonnet); background: transparent; }
.btn-outline-dark:hover { background: rgba(61, 90, 155, .08); transform: translateY(-2px); }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn-sm { padding: .65rem 1.2rem; font-size: .85rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-nav.scrolled {
  background: rgba(247, 244, 238, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.site-nav.scrolled .brand { color: var(--night); }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 4px, rgba(19, 28, 51, .28) 4px, rgba(19, 28, 51, .28) 5px),
    var(--grad-gold);
  box-shadow: 0 4px 12px rgba(226, 176, 74, .35);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: .05em; line-height: 1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .56rem; letter-spacing: .34em; color: var(--sky); margin-top: .28rem; }
.site-nav.scrolled .brand-text small { color: var(--muted); }

.nav-links { display: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; gap: 1.7rem; }
}
.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding-block: .3rem;
}
.site-nav.scrolled .nav-links a { color: var(--navy); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: .65rem;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s, background-color .3s; }
.site-nav.scrolled .nav-toggle span { background: var(--night); }
.nav-toggle.active span { background: #fff; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.35rem; text-align: center; }
.mobile-menu a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a[aria-current="page"] { color: var(--gold); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: .10s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .17s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .31s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .38s; }
.mobile-menu .btn { margin-top: 1rem; opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease) .48s, transform .45s var(--ease) .48s; }
.mobile-menu.open .btn { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
  padding-block: 120px 72px;
}
.hero--sub { min-height: 58dvh; padding-block: 150px 80px; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
.hero .container, .hero .container-wide { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.3rem); max-width: 17ch; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { color: var(--sky); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 54ch; margin-bottom: 0; }
.clarifier {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  border-left: 3px solid var(--gold);
  padding-left: .85rem;
  margin-top: 1.6rem;
  max-width: 46ch;
  line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.6rem;
  margin-top: 2.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(138, 166, 217, .25);
  font-size: .83rem;
  color: rgba(255, 255, 255, .88);
}
.credential-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.credential-strip i { color: var(--gold); }

/* ---------- Metrics bar ---------- */
.metrics { background: var(--night); color: #fff; padding-block: 3rem; border-top: 1px solid rgba(138, 166, 217, .18); }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; text-align: center; }
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 2.9rem); color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-label { font-size: .78rem; color: var(--sky); letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; }

/* ---------- Care pillars (3D tilt) ---------- */
.pillars-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
.tilt-wrap { perspective: 1400px; }
.tilt-card {
  position: relative;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.3rem 1.9rem;
  box-shadow: var(--sh-2);
  transform-style: preserve-3d;
  transition: box-shadow .35s var(--ease);
  will-change: transform;
}
.tilt-card:hover { box-shadow: var(--sh-3); }
.tilt-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--grad-map);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transform: translateZ(50px);
  margin-bottom: 1.35rem;
  box-shadow: 0 12px 24px rgba(61, 90, 155, .3);
}
.tilt-card h3 { transform: translateZ(34px); font-size: 1.45rem; }
.tilt-card p { transform: translateZ(24px); color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.tilt-card .pillar-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 700; font-size: .88rem; color: var(--bluebonnet); text-decoration: none; transform: translateZ(24px); }
.tilt-card .pillar-link i { transition: transform .25s var(--ease); }
.tilt-card .pillar-link:hover i { transform: translateX(4px); }

/* ---------- Service preview grid ---------- */
.svc-grid { display: grid; gap: 1.3rem; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 88% 12%, transparent 0, transparent 22px, rgba(61, 90, 155, .10) 22px, rgba(61, 90, 155, .10) 23px),
    repeating-radial-gradient(circle at 8% 96%, transparent 0, transparent 30px, rgba(226, 176, 74, .12) 30px, rgba(226, 176, 74, .12) 31px);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }
.svc-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  background: var(--grad-map);
}
.svc-tile.tile-gold { background: var(--grad-gold); color: var(--night); }
.svc-tile.tile-night { background: linear-gradient(150deg, var(--navy), var(--bluebonnet)); }
.svc-card h3 { font-size: 1.28rem; margin-bottom: .45rem; }
.svc-card p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }

/* ---------- Care pathway ---------- */
.pathway-steps { display: grid; gap: 2.4rem; position: relative; }
@media (min-width: 768px) { .pathway-steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.pathway-line { display: none; }
@media (min-width: 768px) {
  .pathway-line { display: block; position: absolute; top: 34px; left: 9%; right: 9%; height: 2px; background: var(--line); }
  .pathway-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s var(--ease) .25s;
  }
  .pathway.in .pathway-line::after { transform: scaleX(1); }
}
.path-step { position: relative; }
.step-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--bluebonnet);
  position: relative;
  z-index: 1;
  margin-bottom: 1.1rem;
  box-shadow: var(--sh-1);
}
.path-step h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.path-step p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }

/* ---------- Split / contour map panel ---------- */
.split { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contour-panel {
  position: relative;
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 26% 30%, transparent 0, transparent 34px, rgba(138, 166, 217, .20) 34px, rgba(138, 166, 217, .20) 35px),
    repeating-radial-gradient(circle at 74% 68%, transparent 0, transparent 46px, rgba(226, 176, 74, .14) 46px, rgba(226, 176, 74, .14) 47px),
    repeating-radial-gradient(circle at 58% 18%, transparent 0, transparent 58px, rgba(138, 166, 217, .10) 58px, rgba(138, 166, 217, .10) 59px),
    var(--grad-hero);
  box-shadow: var(--sh-2);
}
.contour-panel .panel-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  z-index: 2;
  color: var(--sky);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--sh-gold);
  z-index: 2;
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(226, 176, 74, .55);
  animation: pinPulse 2.4s var(--ease) infinite;
}
.map-pin.pin-sky { background: var(--sky); box-shadow: 0 0 24px rgba(138, 166, 217, .5); }
.map-pin.pin-sky::after { border-color: rgba(138, 166, 217, .55); animation-delay: 1.1s; }
@keyframes pinPulse {
  0% { transform: scale(.45); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.checklist { list-style: none; padding: 0; display: grid; gap: 1.05rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; font-size: .97rem; }
.checklist i { color: var(--gold); margin-top: .25rem; flex: 0 0 auto; }
.checklist strong { color: var(--navy); }

/* ---------- Family voices ---------- */
.voices-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .voices-grid { grid-template-columns: repeat(3, 1fr); } }
.voice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.1rem;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.voice-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--navy); font-weight: 600; }
.voice-card blockquote::before { content: "\201C"; color: var(--gold); font-size: 1.6em; line-height: 0; vertical-align: -.32em; margin-right: .1em; }
.voice-who { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.monogram {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: var(--grad-map);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .03em;
}
.voice-who strong { display: block; font-size: .95rem; color: var(--night); }
.voice-who span { font-size: .82rem; color: var(--muted); }

/* ---------- Coverage ---------- */
.coverage-callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--sh-1);
  margin-bottom: 1.8rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.coverage-callout i { color: var(--clay); font-size: 1.4rem; margin-top: .2rem; }
.coverage-callout strong { color: var(--navy); }
.pill-cloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  padding: .55rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .86rem;
  color: var(--navy);
  box-shadow: var(--sh-1);
}
.pill i { color: var(--gold); margin-right: .4rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-gold); color: var(--night); text-align: center; padding-block: 4.6rem; }
.cta-band h2 { color: var(--night); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.cta-band p { max-width: 52ch; margin-inline: auto; color: rgba(19, 28, 51, .82); font-weight: 500; }
.cta-band .btn { margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .76); }
.footer-grid { display: grid; gap: 2.4rem; padding-block: 3.6rem 2.6rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; } }
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-brand p { font-size: .9rem; max-width: 34ch; }
.footer-brand .brand { margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .76); text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: .25rem; }
.footer-bottom { border-top: 1px solid rgba(138, 166, 217, .2); padding-block: 1.7rem; font-size: .79rem; color: var(--sky); }
.footer-bottom p { margin-bottom: .55rem; }
.footer-bottom .industry-notice { color: rgba(255, 255, 255, .85); font-weight: 500; }
.footer-bottom .medical-notice { color: rgba(138, 166, 217, .85); }

/* ---------- Subpage hero ---------- */
.hero--sub h1 { max-width: 20ch; }
.breadcrumb { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Services page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.chip {
  padding: .6rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { border-color: var(--bluebonnet); color: var(--bluebonnet); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-note { font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }

.service-block { display: grid; gap: 1.7rem; padding-block: 2.8rem; border-top: 1px solid var(--line); align-items: start; }
.service-block:first-of-type { border-top: 0; }
@media (min-width: 1024px) {
  .service-block { grid-template-columns: 1fr 1fr; gap: 3.6rem; }
  .service-block.flip .svc-media { order: 2; }
}
.service-block[hidden] { display: none; }
.svc-media {
  position: relative;
  min-height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    repeating-radial-gradient(circle at 30% 30%, transparent 0, transparent 30px, rgba(138, 166, 217, .18) 30px, rgba(138, 166, 217, .18) 31px),
    repeating-radial-gradient(circle at 75% 75%, transparent 0, transparent 44px, rgba(226, 176, 74, .12) 44px, rgba(226, 176, 74, .12) 45px),
    var(--grad-hero);
  box-shadow: var(--sh-2);
}
.svc-media i { font-size: 3.4rem; color: var(--gold); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
.svc-media .svc-index {
  position: absolute;
  top: 1.1rem;
  left: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sky);
  letter-spacing: .12em;
}
.service-block h3 { font-size: 1.65rem; }
.service-block .svc-desc { color: var(--muted); font-size: .97rem; }
.sub-services { list-style: none; padding: 0; display: grid; gap: .55rem; margin-top: 1.2rem; }
@media (min-width: 480px) { .sub-services { grid-template-columns: 1fr 1fr; } }
.sub-services li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--navy); }
.sub-services i { color: var(--gold); margin-top: .28rem; font-size: .8rem; }

/* ---------- Accordion ---------- */
.accordion { max-width: 52rem; }
.accordion-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); margin-bottom: .85rem; overflow: hidden; box-shadow: var(--sh-1); }
.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  color: var(--night);
  cursor: pointer;
  text-align: left;
}
.accordion-btn .acc-icon { color: var(--gold); transition: transform .3s var(--ease); flex: 0 0 auto; }
.accordion-btn[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.accordion-panel > div { padding: 0 1.4rem 1.35rem; color: var(--muted); font-size: .94rem; }

.guardrail-note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-md);
  background: rgba(201, 111, 74, .1);
  border: 1px solid rgba(201, 111, 74, .3);
  font-size: .88rem;
  color: var(--navy);
}
.guardrail-note i { color: var(--clay); margin-top: .15rem; }

/* ---------- Plans page ---------- */
.tiers { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.4rem 2rem;
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.tier:hover { transform: translateY(-10px); box-shadow: var(--sh-3); }
.tier.featured { border: 2px solid var(--gold); box-shadow: var(--sh-2); }
@media (min-width: 1024px) {
  .tier.featured { transform: scale(1.045); }
  .tier.featured:hover { transform: scale(1.045) translateY(-10px); }
}
.ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: var(--night);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .45rem 1.15rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-gold);
  white-space: nowrap;
}
.tier h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.tier .tier-tag { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.tier-meta { display: grid; gap: .5rem; padding: 1rem 1.1rem; background: var(--limestone); border-radius: var(--r-md); font-size: .84rem; margin-bottom: 1.3rem; }
.tier-meta div { display: flex; justify-content: space-between; gap: 1rem; }
.tier-meta dt { color: var(--muted); }
.tier-meta dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.tier-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.tier-list li { display: flex; gap: .65rem; font-size: .9rem; align-items: flex-start; }
.tier-list i { color: var(--gold); margin-top: .3rem; font-size: .8rem; }
.tier .btn { margin-top: auto; }
.pricing-note {
  margin-top: 2.4rem;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}
.pricing-note i { color: var(--gold); margin-right: .4rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--sh-1); }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .92rem; }
.compare caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--night); padding-bottom: 1rem; }
.compare th, .compare td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.compare thead th:first-child { border-radius: var(--r-md) 0 0 0; }
.compare thead th:last-child { border-radius: 0 var(--r-md) 0 0; }
.compare tbody th { font-weight: 700; color: var(--navy); width: 34%; }
.compare td { color: var(--muted); }
.compare td .fa-check { color: var(--gold); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare thead { position: absolute; left: -9999px; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 1rem; overflow: hidden; }
  .compare tbody th { background: var(--limestone); width: 100%; }
  .compare td { display: flex; justify-content: space-between; gap: 1rem; }
  .compare td::before { content: attr(data-label); font-weight: 700; color: var(--navy); flex: 0 0 45%; }
}

/* Outcome snapshots */
.snapshots { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .snapshots { grid-template-columns: repeat(3, 1fr); } }
.snapshot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh-1);
}
.snapshot .snap-metric { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; color: var(--bluebonnet); line-height: 1.1; }
.snapshot .snap-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin: .3rem 0 1rem; }
.snapshot p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* Included strip */
.included-strip { background: var(--night); color: #fff; border-radius: var(--r-lg); padding: 2.4rem; box-shadow: var(--sh-2); }
.included-strip h3 { color: #fff; font-size: 1.4rem; }
.included-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 768px) { .included-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .included-grid { grid-template-columns: repeat(4, 1fr); } }
.included-grid div { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.included-grid i { color: var(--gold); margin-top: .2rem; }

/* ---------- About page ---------- */
.clarify-banner {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(138, 166, 217, .16);
  border: 1px solid rgba(138, 166, 217, .45);
  border-left: 4px solid var(--bluebonnet);
  border-radius: var(--r-md);
  padding: 1.4rem 1.6rem;
  color: var(--navy);
  font-size: .95rem;
}
.clarify-banner i { color: var(--bluebonnet); font-size: 1.3rem; margin-top: .15rem; }
.clarify-banner strong { color: var(--night); }

.values-grid { display: grid; gap: 1.4rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.8rem 1.6rem; box-shadow: var(--sh-1); }
.value-card i { font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.value-card h3 { font-size: 1.2rem; }
.value-card p { font-size: .88rem; color: var(--muted); margin-bottom: 0; }

.team-grid { display: grid; gap: 1.4rem; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.1rem 1.7rem; box-shadow: var(--sh-1); text-align: center; }
.team-card .monogram { width: 76px; height: 76px; flex-basis: 76px; font-size: 1.5rem; margin: 0 auto 1.2rem; }
.team-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.team-card p { font-size: .86rem; color: var(--muted); margin-bottom: 0; }

.cred-strip { display: flex; flex-wrap: wrap; gap: .8rem; }
.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .7rem 1.3rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--sh-1);
}
.cred-badge i { color: var(--gold); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2.6rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 3.2rem; } }
.form-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 2.3rem; border: 1px solid var(--line); }
.form-card h2 { font-size: 1.6rem; }
.form-card > p { color: var(--muted); font-size: .94rem; margin-bottom: 1.8rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .45rem; color: var(--navy); }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--night);
  background: var(--paper);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bluebonnet);
  box-shadow: 0 0 0 3px rgba(61, 90, 155, .16);
}
.field.error input, .field.error select, .field.error textarea { border-color: #B3402E; background: #FDF6F4; }
.field-error { display: none; color: #B3402E; font-size: .8rem; margin-top: .4rem; }
.field.error .field-error { display: block; }
.form-row { display: grid; gap: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }

.success-panel { text-align: center; padding: 3rem 1.4rem; animation: successIn .6s var(--ease); }
.success-panel[hidden] { display: none; }
.success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: var(--grad-gold);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: var(--night);
  box-shadow: var(--sh-gold);
}
.success-panel h2 { font-size: 1.7rem; }
.success-panel p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
@keyframes successIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.info-panel { display: grid; gap: 1.4rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem 1.7rem; box-shadow: var(--sh-1); }
.info-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.info-card h3 i { color: var(--gold); }
.info-card p, .info-card li { font-size: .9rem; color: var(--muted); }
.info-card ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.oncall-box {
  background: var(--grad-hero);
  color: #fff;
  border-radius: var(--r-md);
  padding: 1.7rem;
  box-shadow: var(--sh-2);
  border: 1px solid rgba(226, 176, 74, .4);
}
.oncall-box h3 { color: #fff; font-size: 1.15rem; display: flex; gap: .6rem; align-items: center; }
.oncall-box h3 i { color: var(--gold); }
.oncall-box p { color: var(--sky); font-size: .9rem; margin-bottom: 0; }
.map-ph {
  position: relative;
  min-height: 260px;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(255, 255, 255, .10) 31px, rgba(255, 255, 255, .10) 32px),
    repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(255, 255, 255, .10) 31px, rgba(255, 255, 255, .10) 32px),
    repeating-radial-gradient(circle at 42% 46%, transparent 0, transparent 36px, rgba(19, 28, 51, .14) 36px, rgba(19, 28, 51, .14) 37px),
    var(--grad-map);
  box-shadow: var(--sh-2);
}
.map-ph .map-pin { left: 42%; top: 46%; }
.map-ph .map-label {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  background: rgba(19, 28, 51, .82);
  color: #fff;
  font-size: .78rem;
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  letter-spacing: .04em;
}

/* ---------- Reveal & motion ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map-pin::after { animation: none; opacity: 0; }
  .accordion-panel { transition: none; }
  .mobile-menu, .mobile-menu a, .mobile-menu .btn { transition-duration: .01s; }
  .pathway-line::after { transition: none; transform: scaleX(1); }
  .tilt-card, .tier { transition: box-shadow .3s; }
  .success-panel { animation: none; }
}
