/* Self hosted fonts (latin subsets from Google Fonts, SIL Open Font License) */
@font-face { font-family: "Figtree"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/marcellus-latin.woff2") format("woff2"); }
/* Fallback sized like Figtree so text barely moves when the font arrives */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"); size-adjust: 99%; }

/* Healthy Way Medical, PC
   Palette is sampled from the practice logo: plum ink, mauve hands, lilac heart, white field. */
:root {
  --plum-900: #2e2338;
  --plum-800: #3b2d48;
  --plum-700: #4b3a5a;
  --plum-600: #5e4a6e;
  --mauve-500: #8a7299;
  --mauve-400: #a491b1;
  --lilac-200: #e4daec;
  --lilac-100: #efe8f4;
  --lilac-50: #f7f3fa;
  --white: #ffffff;
  --ink: #2b2530;
  --muted: #5d5466;
  --line: #e6dfeb;
  --open: #2d7653;

  --font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgb(46 35 56 / 0.06), 0 1px 3px rgb(46 35 56 / 0.08);
  --shadow: 0 10px 30px -12px rgb(46 35 56 / 0.25);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --z-header: 30;
  --z-dropdown: 40;
  --z-backdrop: 25;

  /* One size for every hero image, heart or ring */
  --hero-media: 460px;
  --hero-media-sm: 420px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a[href^="tel:"] { white-space: nowrap; }
/* Discourage saving photos and the logo: no dragging, no long press menu on phones */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--plum-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

a { color: var(--plum-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-900); }

:focus-visible {
  outline: 3px solid var(--mauve-500);
  outline-offset: 3px;
  border-radius: 4px;
}
/* A light ring where the background is dark plum */
.section-plum :focus-visible, .aside-card :focus-visible, .site-footer :focus-visible, .utility :focus-visible, .skip-link:focus-visible { outline-color: var(--white); }
.prose a[href^="mailto:"] { overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--plum-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); }
.section-tint { background: var(--lilac-50); }
.section-plum { background: var(--plum-800); color: var(--lilac-100); }
.section-plum h2,
.section-plum h3 { color: var(--white); }
.section-plum a { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin: 0 0 14px;
}
.eyebrow svg { width: 34px; height: 14px; flex: none; }
.section-plum .eyebrow { color: var(--lilac-200); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.section-plum .lead { color: var(--lilac-200); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out, transform 0.15s ease-out;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum-700); color: var(--white); }
.btn-primary:hover { background: var(--plum-900); color: var(--white); }
.btn-outline { border-color: var(--plum-700); color: var(--plum-700); background: transparent; }
.btn-outline:hover { background: var(--plum-700); color: var(--white); }
.btn.btn-light { background: var(--white); color: var(--plum-800); }
.btn.btn-light:hover { background: var(--lilac-100); color: var(--plum-900); }
.btn.btn-ghost-light { border-color: rgb(255 255 255 / 0.6); color: var(--white); }
.btn.btn-ghost-light:hover { background: rgb(255 255 255 / 0.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row > .btn { flex: 1 1 100%; } }

.text-link {
  font-weight: 600;
  color: var(--plum-700);
  text-decoration: underline;
  text-decoration-color: var(--mauve-400);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.15s ease-out, color 0.15s ease-out;
}
.text-link:hover { color: var(--plum-900); text-decoration-color: currentColor; }

/* Utility bar */
.utility {
  background: var(--plum-900);
  color: var(--lilac-200);
  font-size: 0.875rem;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility a { color: var(--white); text-decoration: none; white-space: nowrap; }
.utility a:hover { text-decoration: underline; }
.utility-items { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.utility-items span { display: inline-flex; align-items: center; gap: 7px; }
.utility svg { width: 15px; height: 15px; opacity: 0.85; }


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(255 255 255 / 0.9); backdrop-filter: saturate(1.4) blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum-900); }
.brand img { width: 50px; height: 50px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand-name strong { font-family: var(--font-display); font-weight: 400; font-size: 1.28rem; letter-spacing: 0.04em; }
.brand-name small { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }
.nav-link,
.nav-toggle-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-link:hover,
.nav-toggle-sub:hover { color: var(--plum-700); background: var(--lilac-50); }
.nav-link[aria-current="page"], .nav-link.is-section { color: var(--plum-700); box-shadow: inset 0 -2px 0 var(--mauve-500); border-radius: 0; }

/* Services: the label is a link to the services page; its list opens on hover, on keyboard
   focus, or with the small toggle for touch screens. */
.has-sub { display: flex; align-items: center; }
.nav-toggle-sub { padding: 10px 6px; margin-left: -6px; }
.nav-toggle-sub svg { width: 14px; height: 14px; transition: transform 0.15s ease-out; }
.nav-toggle-sub[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Services menu: core services with a short line each, everyday care in two columns.
   It grows in from the Services link and closes a little faster than it opens. */
.subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: var(--z-dropdown);
  width: min(800px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(4px) scale(0.97);
  transition: opacity 150ms ease-out, transform 150ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 150ms;
}
/* Invisible bridge so the menu stays open while the pointer moves down to it */
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.subnav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 250ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
@media (hover: hover) and (min-width: 981px) {
  .has-sub:hover > .subnav {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%);
    transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 250ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }
  .has-sub:hover .nav-toggle-sub svg { transform: rotate(180deg); }
  /* Escape hides a menu opened by hover until the pointer leaves */
  .has-sub.is-dismissed:hover > .subnav:not(.is-open) { visibility: hidden; opacity: 0; }
}
.subnav-group { min-width: 0; padding: 4px; }
.subnav-group + .subnav-group { background: var(--lilac-50); border-radius: var(--radius); }
.subnav-title { margin: 6px 12px 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.3;
}
.subnav a strong { display: block; font-weight: 600; color: var(--plum-900); }
.subnav a span { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.subnav a:hover, .subnav a:focus-visible { background: var(--lilac-100); color: var(--plum-800); }
.subnav-group:first-child a:hover, .subnav-group:first-child a:focus-visible { background: var(--lilac-50); }
.subnav a[aria-current="page"], .subnav a[aria-current="page"] strong { color: var(--plum-700); }
@media (prefers-reduced-motion: reduce) {
  .subnav, .subnav.is-open, .has-sub:hover > .subnav { transition: none; }
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 44px; padding: 10px 20px; }

.menu-button {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--plum-800);
  cursor: pointer;
}
.menu-button svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .brand-name small { display: none; }
}
.nav-mobile-cta, .nav-close { display: none !important; }
@media (max-width: 980px) {
  /* backdrop-filter would become the containing block for the fixed menu panel */
  .site-header { backdrop-filter: none; background: var(--white); }
  .menu-button { display: inline-flex; flex: none; }
  .header-cta { display: none; }
  .brand { min-width: 0; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(380px, 100%);
    z-index: var(--z-dropdown);
    flex-direction: column;
    align-items: stretch;
    padding: 88px 20px 32px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; animation: nav-in 0.2s ease-out; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > .nav-link { flex: 1; width: auto; }
  .nav-toggle-sub { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; padding: 0; border-radius: var(--radius-sm); }
  .nav-toggle-sub svg { width: 18px; height: 18px; }
  .nav-link[aria-current="page"], .nav-link.is-section { box-shadow: none; background: var(--lilac-50); border-radius: var(--radius-sm); }
  .subnav, .subnav.is-open { display: none; position: static; width: 100%; padding: 0 0 8px 8px; grid-template-columns: 1fr; gap: 4px; box-shadow: none; border: 0; border-radius: 0; visibility: visible; opacity: 1; transform: none; transition: none; }
  .subnav.is-open { display: grid; }
  .subnav::before { display: none; }
  .subnav-group + .subnav-group { background: none; }
  .subnav-title { margin: 10px 12px 4px; }
  .subnav-cols { grid-template-columns: 1fr; }
  .subnav a span { display: none; }
  .subnav a strong { font-weight: 500; color: var(--ink); }
  .nav-mobile-cta { display: grid !important; gap: 10px; margin-top: 20px; }
  .nav { padding-top: 0; }
  .nav-close { display: inline-flex !important; position: sticky; top: 0; align-self: flex-end; margin: 18px -2px 22px 0; z-index: 1; background: var(--white); }
  .nav-backdrop.is-open { display: block; }
}
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgb(46 35 56 / 0.4); z-index: var(--z-backdrop); }

/* ECG pulse line, the signature mark lifted from the logo */
.pulse-line { display: block; width: 100%; color: var(--mauve-500); }
.pulse-line path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse-draw path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: pulse-draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
@keyframes nav-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pulse-draw path { animation: none; stroke-dashoffset: 0; }
  .nav.is-open { animation: none; }
}

/* Hero */
.hero { position: relative; padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); overflow: hidden; background: var(--lilac-50); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .eyebrow { display: flex; width: fit-content; line-height: 1.4; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--plum-600); }
.hero .lead { margin-bottom: 30px; }
.hero-proof {
  display: grid; gap: 10px;
  margin-top: 30px; padding: 0; list-style: none;
  font-size: 0.95rem; color: var(--muted);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero-proof svg { width: 18px; height: 18px; color: var(--plum-600); }
.stars { display: inline-flex; gap: 2px; color: #b8860b; }
.stars svg { width: 16px; height: 16px; color: inherit; }

.hero-media { position: relative; width: 100%; max-width: var(--hero-media); justify-self: center; }
/* Heart frame: the logo's heart */
.heart-frame {
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C50 90 3 62 3 29C3 13 15 3 29 3C39 3 46 9 50 17C54 9 61 3 71 3C85 3 97 13 97 29C97 62 50 90 50 90Z'/%3E%3C/svg%3E");
  position: relative;
  aspect-ratio: 100 / 92;
  width: 100%;
}
.heart-photo, .heart-shadow {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--heart) center / contain no-repeat;
  mask: var(--heart) center / contain no-repeat;
}
.heart-shadow { background: var(--lilac-200); transform: translate(18px, 16px); }
.heart-photo { background: var(--lilac-100); }
.heart-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  }

/* Ring frame: a round photo inside the open ring that circles the logo */
/* The photo is square on its own (no percentage heights), so the circle holds in every browser,
   including Safari on iPhone. The ring hugs it through the frame's even padding. */
.ring-frame { position: relative; width: 100%; padding: 4.5%; }
.ring-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1.5px solid var(--mauve-400);
  border-radius: 50%;
  -webkit-mask: conic-gradient(from 200deg, transparent 0 46deg, #000 46deg);
  mask: conic-gradient(from 200deg, transparent 0 46deg, #000 46deg);
}
.ring-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--lilac-100); }
.ring-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ring-frame.portrait-top .ring-photo img { object-position: center 22%; }
.ring-badge {
  position: absolute;
  right: 9%;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: clamp(54px, 15%, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
}
.ring-badge img { width: 72%; height: auto; }
.hero-card {
  position: absolute;
  left: -12px;
  bottom: 4%;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 300px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.4;
}
.hero-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-card strong { display: block; color: var(--plum-900); }
/* Every hero ends with the same heartbeat line, placed below the content so it never crosses an image */
.hero-pulse, .page-hero-pulse { margin-top: clamp(32px, 5vw, 56px); height: 56px; overflow: visible; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: var(--hero-media-sm); margin-inline: auto; }
  .hero-card { left: -8px; bottom: -12px; max-width: 260px; padding: 12px 14px; }
  .hero-card img { width: 44px; height: 44px; }
}

/* Page hero for inner pages */
.page-hero { background: var(--lilac-50); padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero.no-media .page-hero-grid { grid-template-columns: 1fr; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.page-hero .lead { margin-bottom: 28px; }
.page-hero .ring-frame { max-width: var(--hero-media); margin-inline: auto; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .ring-frame { max-width: var(--hero-media-sm); margin-inline: auto; }
}

/* 404 */
.error-hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.error-hero .lead { margin-bottom: 30px; }
.error-code { position: relative; margin-bottom: clamp(16px, 3vw, 28px); }
.error-code span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: 0.9;
  color: var(--lilac-200);
  letter-spacing: 0.02em;
}
.error-code .error-pulse { position: absolute; left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); top: 50%; height: 90px; transform: translateY(-50%); color: var(--plum-600); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.service-card:hover { border-color: var(--mauve-400); box-shadow: var(--shadow); color: var(--ink); }
.service-card.is-wide { grid-column: span 3; }
.service-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lilac-100); }
.service-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.service-card:hover figure img { transform: scale(1.03); }
.service-card:hover .text-link { color: var(--plum-900); text-decoration-color: currentColor; }
.service-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.service-card .text-link { margin-top: 6px; }
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card.is-wide { grid-column: span 1; }
  .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service-card:last-child:nth-child(odd) figure { aspect-ratio: auto; height: 100%; min-height: 220px; }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card:last-child:nth-child(odd) { display: flex; flex-direction: column; }
  .service-card:last-child:nth-child(odd) figure { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
}

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .mini-grid-two { grid-template-columns: 1fr; } }
.mini-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
a.mini-card:hover { border-color: var(--mauve-400); color: var(--ink); }
.mini-card strong { display: block; color: var(--plum-900); margin-bottom: 2px; }
.mini-card span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; display: block; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.media-right > .split-media { order: 2; }
.split-media .ring-frame { max-width: 500px; }
.split-media .rounded { border-radius: var(--radius-lg); overflow: hidden; }
.split-media .rounded img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.media-right > .split-media { order: 0; }
  .split-media { max-width: 480px; }
}

.signature-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--plum-800);
  margin: 28px 0;
}

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; margin: 0; }
.check-list li::before {
  content: "";
  position: absolute; left: 6px; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mauve-500);
}
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
@media (max-width: 620px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* Condition links in even rows of four */
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.link-grid li { margin: 0; }
.link-grid a { display: flex; align-items: center; height: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--plum-900); font-weight: 600; font-size: 0.95rem; line-height: 1.35; text-decoration: none; }
.link-grid a:hover { border-color: var(--mauve-400); background: var(--lilac-50); }
.grid-subhead { margin: clamp(40px, 6vw, 64px) 0 20px; font-size: 1.5rem; }
.mini-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mini-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mini-grid-five { grid-template-columns: 1fr; } }
.condition-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .condition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .condition-grid { grid-template-columns: 1fr; } }

/* Visit sequence: a real order of events, so it is numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; padding: 28px 26px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--mauve-400);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--plum-700);
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Long form article content */
.prose h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul li::marker { color: var(--mauve-500); }
.prose .note {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--lilac-50);
  border: 1px solid var(--line);
  font-size: 0.97rem;
}
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--plum-800);
  color: var(--lilac-100);
}
.aside-card h2, .aside-card h3 { color: var(--white); font-size: 1.5rem; }
.aside-card p { font-size: 0.97rem; }
.aside-card .btn { width: 100%; margin-top: 10px; white-space: normal; text-align: center; }
.aside-card dl { margin: 18px 0 0; font-size: 0.92rem; }
.aside-card dt { color: var(--lilac-200); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-top: 14px; }
.aside-card dd { margin: 2px 0 0; color: var(--white); overflow-wrap: anywhere; }
.aside-card a { color: var(--white); }
/* The booking card and related links move together. site.js pins them only when the
   whole column fits on screen, otherwise they scroll with the page. */
@media (min-width: 981px) {
  .content-grid > aside.is-pinned { position: sticky; top: 104px; }
}
.aside-links { margin-top: 22px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.aside-links h3 { font-size: 1.2rem; }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-top: 1px solid var(--line); margin: 0; }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }
@media (max-width: 980px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
}

.figure-wide { margin: 0 0 2em; border-radius: var(--radius-lg); overflow: hidden; }
.figure-wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* The section padding sets the bottom gap, not the margin of the last element */
.section .wrap > :last-child, .section .wrap > :last-child > :last-child:not(li), .page-hero .wrap > div > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { width: 100%; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--plum-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--mauve-400);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b3a5a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 4px 22px; color: var(--muted); }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* Reviews */
.review-grid { columns: 3 320px; column-gap: 22px; }
.review-grid.is-even { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.review-grid.is-even > * { margin: 0; height: 100%; }
@media (max-width: 980px) { .review-grid.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .review-grid.is-even.is-three { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .review-grid.is-even { grid-template-columns: 1fr; } }
.review {
  break-inside: avoid;
  margin: 0 0 22px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.review blockquote { margin: 14px 0 18px; font-size: 1.02rem; }
.review blockquote p:last-child { margin: 0; }
.review figcaption { font-size: 0.9rem; color: var(--muted); }
.review figcaption strong { color: var(--plum-900); display: block; font-size: 0.98rem; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.btn-row > .rating-badge { flex: 1 1 220px; }
.rating-badge .score { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--plum-900); }
.rating-badge small { display: block; color: var(--muted); font-size: 0.88rem; }

/* Insurance */
.insurance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .insurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .insurance-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 8px; } .insurance-grid li { padding: 12px 14px; font-size: 0.95rem; gap: 10px; } }
.insurance-grid { grid-auto-rows: 1fr; }
.insurance-grid li { overflow-wrap: normal; hyphens: none; }
.insurance-grid li {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  color: var(--plum-900);
  display: flex; align-items: center; gap: 12px;
}
.insurance-grid li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mauve-400); flex: none; }
.insurance-strip { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; padding: 0; margin: 0 0 28px; }
.insurance-strip li { margin: 0; padding: 10px 18px; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 999px; color: var(--white); font-weight: 500; font-size: 0.95rem; }

/* Carrier cards with plan lists */
.carrier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .carrier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .carrier-grid { grid-template-columns: 1fr; } }
.carrier {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.carrier h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin-bottom: 4px; }
.carrier .verified { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--open); margin-bottom: 14px; }
.carrier ul { list-style: none; padding: 0; margin: 0; }
.carrier li { padding: 7px 0; border-top: 1px solid var(--line); margin: 0; font-size: 0.95rem; color: var(--muted); }
.carrier li:first-child { border-top: 0; }
.callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--lilac-100);
  color: var(--plum-900);
}

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.team-card { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: start; }
.team-card .ring-frame { padding: 5%; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--plum-600); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .team-card { grid-template-columns: 1fr; } .team-card .ring-frame { max-width: 220px; } }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .area-grid a { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px; }
}
.area-grid li { margin: 0; }
.area-grid a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  font-weight: 600;
  color: var(--plum-900);
}
.area-grid a span { font-weight: 400; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.area-grid a:hover { border-color: var(--mauve-400); }
.section-plum .area-grid a { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 0.22); }
.section-plum .area-grid a span { color: var(--lilac-200); }
.section-plum .area-grid a:hover { border-color: var(--white); }

/* Hours and map */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 24px; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours-table th { font-weight: 600; color: var(--plum-900); }
.hours-table td { text-align: right; color: var(--muted); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--plum-700); font-weight: 700; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--lilac-100); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.recaptcha-field { min-height: 78px; }
.recaptcha-field .error { margin-top: 6px; }
.nap { font-style: normal; display: grid; gap: 14px; margin-bottom: 26px; }
.nap div { display: flex; gap: 14px; align-items: flex-start; }
.nap strong { display: block; color: var(--plum-900); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; }
@media (max-width: 980px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--lilac-200); }
.cta-band .pulse-line { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; color: rgb(255 255 255 / 0.08); pointer-events: none; }
@media (max-width: 980px) { .cta-band .pulse-line { display: none; } }

/* Forms */
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--plum-900); }
.field .req { color: var(--plum-600); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--mauve-500);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--plum-600); box-shadow: 0 0 0 3px var(--lilac-200); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.field .error, .consent .error { display: none; font-size: 0.87rem; color: #a3253b; margin: 6px 0 0; font-weight: 600; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #a3253b; }
.field.has-error .error, .consent.has-error .error { display: block; }
.consent {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--lilac-50);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum-700); }
.consent strong { color: var(--plum-900); }
.consent.has-error { border-color: #a3253b; }
.form-notice { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.form-status { display: none; padding: 16px 18px; border-radius: 14px; font-weight: 600; }
.form-status.is-success { display: block; background: #e7f4ec; color: #1f5a3c; }
.form-status.is-error { display: block; background: #fbe9ec; color: #8a1f33; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.emergency {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fbf3f4;
  border: 1px solid #efd3d8;
  color: #6d2232;
  font-size: 0.95rem;
}
.emergency svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* Footer */
.site-footer { background: var(--plum-900); color: var(--lilac-200); padding-top: clamp(56px, 7vw, 88px); font-size: 0.95rem; }
.site-footer a { color: var(--lilac-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .credit-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { width: 150px; margin-bottom: 18px; background: var(--white); border-radius: 50%; padding: 8px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-legal {
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 24px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px;
  font-size: 0.85rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0; }
.footer-legal li { margin: 0; }
.footer-disclaimer { font-size: 0.82rem; color: var(--mauve-400); margin-top: 18px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .utility .utility-items:first-child { display: none; }
  .utility .wrap { justify-content: center; }
}

/* Legal pages */
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; margin-top: 1.6em; }
.legal p, .legal li { color: #3e3646; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.toc { padding: 22px 26px; border-radius: var(--radius); background: var(--lilac-50); border: 1px solid var(--line); margin-bottom: 2.4em; }
.toc ol { margin: 0; columns: 2 240px; }
.toc li { font-size: 0.95rem; }

.stack-sm > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* Reveal on scroll. Content stays visible when JavaScript is off. */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .service-card figure img { transition: none; }
}

@media (max-width: 400px) {
  .brand-name strong { font-size: 1.08rem; }
  .brand img { width: 42px; height: 42px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name strong { font-size: 1rem; letter-spacing: 0.02em; }
  .brand img { width: 38px; height: 38px; }
  .menu-button { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .utility .utility-items:first-child { display: none; }
  .utility .wrap { justify-content: center; }
}

@media print {
  .utility, .site-header, .cta-band, .site-footer, .map-frame { display: none !important; }
  body { padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
