/* Mother of Divine Grace — calm editorial design: evergreen, warm cream, soft coral. */
@font-face { font-family: Manrope; src: url("assets/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --deep: #0f2e2b;
  --green: #163e3b;
  --green-2: #1d4c47;
  --on-deep: #f5f0e4;
  --on-deep-muted: #b7c6bd;
  --deep-line: #ffffff1f;
  --coral: #e98c6f;
  --coral-soft: #f6c3ae;
  --paper: #f4f1e7;
  --white: #fffdf6;
  --sage: #e2e9dc;
  --ink: #17302d;
  --muted: #4d5f58;
  --border: #d3d8cb;
  --accent: #b4532f;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 24px;
  --header: 76px;
  font: 16px/1.6 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); }
body, h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
body { overflow-x: clip; }
body:has(.mobile-menu[open]) { overflow: hidden; }
button, select, input, textarea { font: inherit; }
:where(a[href]) { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--coral); color: var(--deep); }
h1, h2, h3 { font-weight: 650; letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(2.3rem, 5vw, 5.2rem); line-height: .95; letter-spacing: -.055em; text-wrap: balance; }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.8rem); letter-spacing: -.03em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
h2 em, h1 em { color: var(--accent); }
p { text-wrap: pretty; }
.wrap { width: min(100% - clamp(32px, 7vw, 120px), 1440px); margin-inline: auto; }
.skip { position: fixed; z-index: 100; left: 1rem; top: 1rem; padding: .6rem 1rem; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; background: var(--coral); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }

/* Small type */
.eyebrow, .section-index { font: 600 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: block; color: var(--accent); }
.section-index { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head > p { color: var(--muted); max-width: 42ch; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Buttons & links */
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 54px; padding: .8rem 1.5rem; border: 0; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-weight: 750; font-size: .95rem; transition: color .4s var(--ease), transform .5s var(--ease); }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--coral); transform: translateY(101%); transition: transform .55s var(--ease); }
.button:hover, .button:focus-visible { color: var(--deep); }
.button:hover::before, .button:focus-visible::before { transform: none; }
.button > span[aria-hidden] { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: var(--deep); font-size: .8rem; transition: transform .5s var(--ease), background-color .3s; }
.button:hover > span[aria-hidden] { transform: rotate(45deg); background: var(--deep); color: var(--coral); }
.button.secondary { background: var(--sage); color: var(--green); }
.text-link { font-weight: 700; color: var(--accent); padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.text-link:hover { background-size: 100% 1px; }

/* Header */
.masthead { position: fixed; top: 0; inset-inline: 0; z-index: 50; transition: transform .5s var(--ease); }
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--border); transition: opacity .4s var(--ease); }
html.at-top .masthead::before { opacity: 0; }
html.header-hidden .masthead:not(:has(.mobile-menu[open], :focus-within)) { transform: translateY(-100%); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header); }
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: .65rem; width: max-content; max-width: 100%; }
.brand img { flex: none; border-radius: 12px; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(-8deg); }
.brand strong { display: block; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 750; line-height: 1.05; letter-spacing: -.04em; }
.brand small { display: block; margin-top: .2rem; font-size: clamp(.68rem, .9vw, .78rem); font-weight: 600; line-height: 1.2; letter-spacing: .01em; color: var(--muted); }
.primary-nav { display: flex; gap: .2rem; padding: .3rem; border-radius: 999px; background: #ffffffa0; box-shadow: inset 0 0 0 1px var(--border); }
.primary-nav a { padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 650; color: var(--muted); transition: color .3s, background-color .3s; }
.primary-nav a:hover { color: var(--ink); background: var(--sage); }
.primary-nav a.is-active { color: var(--on-deep); background: var(--deep); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.header-call, .mobile-menu summary { position: relative; z-index: 2; }
.header-call { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .5rem .4rem 1.1rem; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-size: .88rem; font-weight: 750; transition: background-color .3s; }
.header-call i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: var(--deep); font-style: normal; font-size: .8rem; transition: transform .5s var(--ease); }
.header-call:hover { background: var(--green-2); }
.header-call:hover i { transform: rotate(45deg); }
.mobile-menu { display: none; }
.mobile-menu summary { display: flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem; list-style: none; border-radius: 999px; background: #ffffffa0; box-shadow: inset 0 0 0 1px var(--border); font-size: .88rem; font-weight: 650; }
.mobile-menu[open] summary { background: var(--coral); color: var(--deep); box-shadow: none; }
.menu-panel { position: fixed; inset: 0; z-index: -1; display: grid; grid-template-columns: 1.3fr 1fr; align-content: start; gap: 2rem clamp(2rem, 6vw, 6rem); height: 100dvh; overflow: auto; padding: calc(var(--header) + clamp(1.5rem, 6vh, 4rem)) clamp(16px, 4vw, 60px) 3rem; background: var(--deep); color: var(--on-deep); animation: menu-in .7s var(--ease) both; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.menu-main a { display: flex; align-items: baseline; gap: 1rem; padding: .15rem 0; border-bottom: 1px solid var(--deep-line); font-size: clamp(2.5rem, 8vw, 5.8rem); font-weight: 650; letter-spacing: -.06em; line-height: 1.05; animation: rise .9s var(--ease) both; transition: color .3s, padding .6s var(--ease); }
.menu-main a:nth-child(2) { animation-delay: .05s; } .menu-main a:nth-child(3) { animation-delay: .1s; } .menu-main a:nth-child(4) { animation-delay: .15s; }
.menu-main a small { font: 500 .72rem/1 var(--mono); color: var(--coral); transform: translateY(-1.5em); }
.menu-main a:hover { color: var(--coral); padding-left: .8rem; }
.menu-side { display: flex; flex-direction: column; gap: .5rem; color: var(--on-deep-muted); animation: rise 1s .2s var(--ease) both; }
.menu-side a { color: var(--on-deep); font-size: 1.1rem; font-weight: 650; }
.menu-side a:hover { color: var(--coral); }
.menu-side .eyebrow { color: var(--coral); margin-top: 1.2rem; }
.menu-side .eyebrow:first-child { margin-top: 0; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header) + .5rem) clamp(8px, 1.2vw, 18px) clamp(8px, 1.2vw, 18px); display: grid; }
.hero-media { position: absolute; inset: calc(var(--header) + .5rem) clamp(8px, 1.2vw, 18px) clamp(8px, 1.2vw, 18px); overflow: hidden; border-radius: calc(var(--radius) + 8px); background: var(--deep); }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: 55% 60%; transform: translateY(var(--parallax, 0)) scale(1.02); animation: hero-zoom 2.4s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.15); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0f2e2bf2 0%, #0f2e2bc4 38%, #0f2e2b22 75%), linear-gradient(0deg, #0f2e2bcc 0%, transparent 45%); }
.hero-media figcaption { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; padding: .35rem .8rem; border-radius: 999px; background: #0f2e2b99; backdrop-filter: blur(8px); color: var(--on-deep-muted); font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem; padding-block: clamp(3rem, 10vh, 6rem) clamp(2.5rem, 7vh, 4.5rem); color: var(--on-deep); }
.hero-copy { max-width: 64rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--coral-soft); animation: rise 1s .1s var(--ease) both; }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero h1 { margin-top: 1.2rem; font-size: clamp(3.6rem, 11vw, 12rem); line-height: .86; letter-spacing: -.07em; }
.hero h1 em { color: var(--coral); }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: inline-block; animation: line-up 1.2s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .1s; }
@keyframes line-up { from { transform: translateY(110%) rotate(3deg); } }
.lead { max-width: 42ch; margin-top: 1.6rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: #dfe6de; animation: rise 1.1s .25s var(--ease) both; }
.hero .actions { margin-top: 2rem; animation: rise 1.1s .35s var(--ease) both; }
.hero .button { background: var(--coral); color: var(--deep); }
.hero .button::before { background: var(--on-deep); }
.hero .button > span[aria-hidden] { background: var(--deep); color: var(--coral); }
.hero .text-link { color: var(--on-deep); background-size: 100% 1px; }
.hero .text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.hero-status { position: absolute; right: clamp(1rem, 3vw, 2.5rem); top: clamp(1rem, 4vh, 2.5rem); display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem .7rem .9rem; border-radius: 18px; background: #fffdf6e8; backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 20px 40px -20px #0006; animation: rise 1.2s .5s var(--ease) both; }
.hero-status small { display: block; font: 600 .64rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-status strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #2fa36b; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #2fa36b; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Ticker */
.ticker { position: relative; z-index: 2; overflow: hidden; margin-top: 1.5rem; padding-block: 1rem; background: var(--deep); color: var(--on-deep); transform: rotate(-1deg) scale(1.03); }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; font-size: clamp(1.3rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.ticker-track span::after { content: "✦"; font-size: .6em; color: var(--coral); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Visit strip */
.visit-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-block: 1px solid var(--border); }
.visit-strip > * { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: clamp(1.3rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.8rem); }
.visit-strip > * + * { border-left: 1px solid var(--border); }
.visit-strip > :first-child { padding-left: 0; }
.visit-strip strong { font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
.visit-strip a .arrow { position: absolute; right: 1rem; top: 1.4rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); transition: transform .5s var(--ease), background-color .3s; }
.visit-strip a:hover .arrow { background: var(--coral); box-shadow: none; transform: rotate(45deg); }

/* Statement */
.statement { padding-bottom: clamp(2rem, 5vw, 4rem); }
.statement-text { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 4.6rem); font-weight: 600; line-height: 1.06; letter-spacing: -.05em; }
.statement-text em { color: var(--accent); }
.js .statement-text .w { opacity: .16; transition: opacity .3s linear; }
.js .statement-text .w.on { opacity: 1; }

/* Services */
.service-grid { border-top: 1px solid var(--border); counter-reset: svc; }
.service-grid details { counter-increment: svc; border-bottom: 1px solid var(--border); }
.service-grid summary { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 56px; align-items: center; gap: 1.5rem; padding-block: clamp(1.4rem, 2.8vw, 2.2rem); list-style: none; font-size: clamp(2rem, 4.8vw, 4.6rem); font-weight: 650; letter-spacing: -.055em; line-height: 1; transition: color .4s, padding .6s var(--ease); }
.service-grid summary::before { content: counter(svc, decimal-leading-zero); font: 500 .8rem/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.service-grid summary::after { content: ""; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .5s var(--ease), background-color .3s; }
.service-grid details[open] summary::after { transform: rotate(135deg); background-color: var(--coral); box-shadow: none; }
.service-grid summary:hover { padding-left: .8rem; color: var(--green-2); }
.service-body { padding: 0 0 2rem 6rem; max-width: 60rem; animation: rise .6s var(--ease) both; }
.service-body p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 52ch; }

/* Maternity */
.maternity-section { background: var(--deep); color: var(--on-deep); --border: var(--deep-line); --muted: var(--on-deep-muted); --accent: var(--coral); }
.maternity-section .section-index { color: var(--on-deep-muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.clinic-image { position: relative; overflow: hidden; border-radius: var(--radius); }
.clinic-image img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1.4s var(--ease); }
.clinic-image:hover img { transform: scale(1.04); }
.clinic-image figcaption, .leader-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .8rem; border-radius: 999px; background: #0f2e2b99; backdrop-filter: blur(8px); color: var(--on-deep-muted); font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; }
.body-copy { margin-top: 1.5rem; max-width: 46ch; font-size: 1.1rem; color: var(--on-deep-muted); }
.body-copy strong { color: var(--coral-soft); }
.care-list { list-style: none; margin: 2rem 0; padding: 0; border-top: 1px solid var(--deep-line); counter-reset: care; }
.care-list li { counter-increment: care; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--deep-line); }
.care-list li::before { content: counter(care, decimal-leading-zero); font: 500 .75rem/1 var(--mono); color: var(--coral); }
.care-list strong { font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.035em; }
.care-list span { color: var(--on-deep-muted); font-size: .9rem; }
.maternity-section .button { background: var(--coral); color: var(--deep); }
.maternity-section .button::before { background: var(--on-deep); }
.maternity-section .button > span[aria-hidden] { background: var(--deep); color: var(--coral); }

/* About & leadership */
.leadership { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(1rem, 2vw, 1.5rem); border-radius: calc(var(--radius) + 8px); background: var(--white); box-shadow: inset 0 0 0 1px var(--border); }
.leader-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sage); }
.leader-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 1.4s var(--ease); }
.leader-photo:hover img { transform: scale(1.04); }
.leadership > div { padding: clamp(.5rem, 2vw, 2rem); }
.leadership h3 { margin-top: .8rem; font-size: clamp(2.2rem, 4.4vw, 4.2rem); letter-spacing: -.06em; line-height: .95; }
.role { margin-top: .8rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--accent); }
.leader-copy { margin-top: 1.4rem; max-width: 44ch; color: var(--muted); font-size: 1.08rem; }

/* Patient info */
.patient-section { background: var(--sage); }
.patient-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); counter-reset: tip; }
.patient-grid article { counter-increment: tip; display: flex; flex-direction: column; min-height: 320px; padding: clamp(1.5rem, 2.5vw, 2.3rem); border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--border); transition: transform .6s var(--ease), background-color .5s, color .5s; }
.patient-grid article::before { content: "0" counter(tip); margin-bottom: auto; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
.patient-grid h3 { margin: 3rem 0 .8rem; font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
.patient-grid p { color: var(--muted); }
.patient-grid article:hover { transform: translateY(-6px); background: var(--deep); color: var(--on-deep); }
.patient-grid article:hover p { color: var(--on-deep-muted); }
.patient-grid article:hover::before { color: var(--coral); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--border); }
.contact-grid .eyebrow { margin-bottom: .8rem; }
.phone { display: block; margin-bottom: 1rem; font-size: clamp(2.4rem, 5.4vw, 5.2rem); font-weight: 650; letter-spacing: -.06em; line-height: 1; transition: color .3s; }
.phone:hover { color: var(--accent); }
address { font-style: normal; margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.5; }
address strong { font-size: 1.3rem; letter-spacing: -.02em; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; font-size: 1.05rem; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 700; }
.map-disclosure { margin-top: 2.5rem; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.map-disclosure summary { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; list-style: none; font-weight: 700; }
.map-disclosure summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); transition: transform .4s var(--ease); }
.map-disclosure[open] summary::after { transform: rotate(45deg); background: var(--coral); box-shadow: none; }
#hospital-map iframe { display: block; width: 100%; height: min(60vh, 480px); border: 0; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-layout h2 { margin-top: 1rem; }
.answers details { border-top: 1px solid var(--border); }
.answers details:last-child { border-bottom: 1px solid var(--border); }
.answers summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.4rem; list-style: none; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 650; letter-spacing: -.02em; transition: color .3s; }
.answers summary::after { content: ""; flex: 0 0 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .5s var(--ease), background-color .3s; }
.answers details[open] summary::after { transform: rotate(135deg); background-color: var(--coral); box-shadow: none; }
.answers summary:hover { color: var(--accent); }
.answers p { margin: 0 4rem 1.5rem 0; color: var(--muted); animation: rise .6s var(--ease) both; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4rem, 10vw, 8rem); background: var(--coral); color: var(--deep); }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; right: -25vmax; bottom: -45vmax; border-radius: 50%; background: radial-gradient(circle, #ffe3d6, transparent 60%); opacity: .8; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem; }
.cta-band h2 { font-size: clamp(2.8rem, 7vw, 7rem); line-height: .9; max-width: 12ch; }
.cta-band h2 em { color: var(--deep); }
.cta-band .text-link { color: var(--deep); background-size: 100% 1px; }
.cta-band .button > span[aria-hidden] { background: var(--coral); }

/* Footer */
.footer { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 7vw, 6rem); background: var(--deep); color: var(--on-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2.5rem; }
.footer .brand small { color: var(--on-deep-muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer nav a { padding: .5rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--deep-line); font-size: .9rem; font-weight: 600; transition: background-color .3s, color .3s; }
.footer nav a:hover { background: var(--coral); color: var(--deep); box-shadow: none; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--deep-line); color: var(--on-deep-muted); font-size: .82rem; }
.footer-base a:hover { color: var(--coral); }
.footer-wordmark { display: block; margin-top: 1rem; font-size: clamp(3.4rem, 15vw, 17rem); font-weight: 800; letter-spacing: -.075em; line-height: .78; text-align: center; white-space: nowrap; color: transparent; background: linear-gradient(180deg, #f5f0e42e, #f5f0e405 85%); -webkit-background-clip: text; background-clip: text; transform: translateY(.08em); user-select: none; }

/* Visit planner dialog */
dialog { width: min(92vw, 520px); padding: clamp(1.5rem, 4vw, 2.4rem); border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -30px #0f2e2b99; }
dialog[open] { animation: rise .5s var(--ease) both; }
dialog::backdrop { background: #0f2e2b99; backdrop-filter: blur(6px); }
dialog h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .6rem 0 1.4rem; }
dialog label { display: block; font-size: .85rem; font-weight: 650; color: var(--muted); margin-bottom: .4rem; }
dialog select { width: 100%; min-height: 52px; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); color: var(--ink); }
#plan-result { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--sage); font-weight: 650; }
.plan-address { margin-top: 1rem; color: var(--muted); }
dialog .actions { margin-top: 1.4rem; }
.plan-note { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.close { position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sage); color: var(--ink); font-size: 1.4rem; line-height: 1; transition: background-color .3s, transform .4s var(--ease); }
.close:hover { background: var(--coral); transform: rotate(90deg); }

/* Editor page (edit.html) helpers */
.intro, .controls, .helper, .status, .photo-preview { font-family: Manrope, system-ui, sans-serif; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .primary-nav { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 880px) {
  .section-head, .split, .leadership, .faq-layout, .cta-inner, .menu-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-phone { grid-column: 1 / -1; }
  .patient-grid { grid-template-columns: minmax(0, 1fr); }
  .patient-grid article { min-height: 220px; }
  .service-grid summary { grid-template-columns: 2.5rem minmax(0, 1fr) 48px; gap: 1rem; }
  .service-grid summary::after { width: 48px; height: 48px; }
  .service-body { padding-left: 3.5rem; }
}
@media (max-width: 640px) {
  :root { --header: 66px; }
  .header-call span { display: none; }
  .header-call { padding: .4rem; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .68rem; }
  .brand img { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.6rem); }
  .hero-status { top: auto; bottom: auto; position: relative; right: auto; align-self: flex-start; order: -1; }
  .hero-inner { justify-content: flex-end; }
  .visit-strip { grid-template-columns: minmax(0, 1fr); }
  .visit-strip > * + * { border-left: 0; border-top: 1px solid var(--border); }
  .visit-strip > * { padding-inline: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .care-list li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .care-list span { grid-column: 2; }
  .answers p { margin-right: 0; }
  .service-body { padding-left: 0; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement-text .w { opacity: 1; }
}

/* Clip the tilted ticker inside main so phones cannot scroll sideways */
main { overflow-x: clip; }
@media (max-width: 420px) {
  .topbar { gap: .5rem; }
  .brand { gap: .5rem; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .62rem; white-space: nowrap; }
  .mobile-menu summary { padding-inline: .9rem; }
}

/* Sliding text bars keep moving on phones */
@media (hover: none), (pointer: coarse) { .ticker:hover .ticker-track { animation-play-state: running !important; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-name: marquee !important; animation-duration: 80s !important; animation-iteration-count: infinite !important; animation-play-state: running !important; } }
