/* Manheim Drain Cleaning — "Seafoam Ink" design system (docs/DESIGN-SYSTEM.md). One stylesheet, no framework. */
:root {
  /* brand tokens (BUILD-PROMPT.md section 12) */
  --bg: #EEF7F4;
  --surface: #FFFFFF;
  --ink: #102520;
  --primary: #2F8F7A;
  --accent: #E86A55;
  /* derived from the tokens above */
  --primary-d: #1F6B5A;   /* text-safe primary: 6.4:1 on white */
  --primary-dd: #164E42;  /* dark bands */
  --tint: #DCEEE8;
  --tint-2: #E7F3EF;
  --line: #C6DED6;
  --muted: #45605A;       /* 6:1 on --bg */
  --accent-h: #F0836F;
  --accent-tint: #FCEAE6;
  --on-dark: #D3E6E0;
  /* type scale: 6 fluid steps */
  --t-1: clamp(.875rem, .85rem + .1vw, .9375rem);
  --t0: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
  --t1: clamp(1.2rem, 1.12rem + .35vw, 1.4rem);
  --t2: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
  --t3: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --t4: clamp(2.2rem, 1.6rem + 2.6vw, 3.7rem);
  /* spacing: 8px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --wrap-w: 1350px;       /* content width */
  --r: 20px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 37, 32, .06), 0 14px 32px -14px rgba(16, 37, 32, .22);
  --shadow-sm: 0 1px 2px rgba(16, 37, 32, .06), 0 6px 14px -8px rgba(16, 37, 32, .2);
  --head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: Lato, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t0)/1.6 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-d); text-underline-offset: 3px; }
a:hover { color: var(--primary-dd); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; font-weight: 700; margin: 0 0 var(--s2); letter-spacing: -.01em; }
h1 { font-size: var(--t4); } h2 { font-size: var(--t3); } h3 { font-size: var(--t2); }
p, ul, ol { margin: 0 0 var(--s2); }
.wrap { width: min(var(--wrap-w), 100% - 2 * var(--s3)); margin-inline: auto; }
.skip { position: absolute; left: var(--s2); top: -80px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: var(--s2); outline-color: #fff; }

/* ---------- buttons ---------- */
.btn, .foot-call, .fab {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; line-height: 1.2;
}
.btn {
  background: var(--accent); color: var(--ink); border-radius: 999px; padding: 12px 22px; min-height: 48px;
  box-shadow: 0 6px 16px -8px rgba(232, 106, 85, .9); transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { background: var(--accent-h); color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.1rem; min-height: 56px; }
.ph { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: var(--s3); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary-d); }
.brand .mark { width: 56px; height: 40px; color: var(--primary); }
.mark-dot { fill: var(--dot, var(--accent)); }
.brand-t { display: flex; flex-direction: column; line-height: 1; }
.brand-t b { font: 700 1.55rem/1 var(--head); color: var(--ink); letter-spacing: -.02em; }
.brand-t small { font: 700 .72rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--primary-d); margin-top: 4px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: var(--r-sm); }
.nav a:hover { background: var(--tint-2); color: var(--primary-dd); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { appearance: none; border: 0; background: none; color: var(--ink); width: 28px; height: 36px; margin-left: -8px; cursor: pointer; border-radius: 8px; font-size: .8rem; }
.sub-toggle:hover { background: var(--tint-2); }
.subnav { position: absolute; left: 0; top: 100%; min-width: 240px; flex-direction: column; align-items: stretch !important; gap: 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 8px !important; display: none !important; }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav, .has-sub.open > .subnav { display: flex !important; }
.subnav a { font-weight: 400; padding: 8px 12px; }
.call .call-t { white-space: nowrap; }
.menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: var(--surface); width: 48px; height: 48px; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; content: ''; position: relative; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: var(--s2); font-size: var(--t-1); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: var(--muted); }
.crumbs li + li::before { content: '\203A'; margin-right: 6px; }
.crumbs a { color: var(--primary-d); }

/* ---------- hero: dark seafoam band, wave edge, shaped photo over an offset circle ---------- */
.hero { position: relative; overflow: clip; color: #fff; margin-top: var(--s2);
  background: radial-gradient(900px 520px at 88% -10%, rgba(47, 143, 122, .55), rgba(47, 143, 122, 0) 62%), linear-gradient(135deg, #102520 0%, #164E42 60%, #1F6B5A 100%);
  padding: var(--s6) 0 calc(var(--s10) + 40px); }
.hero-home { margin-top: 0; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 76px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 38C240 92 480 92 720 52S1200 8 1440 48V80H0Z' fill='%23EEF7F4'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero.slim { padding: var(--s5) 0 calc(var(--s8) + 24px); }
.hero.slim::after { height: 52px; }
.hero :focus-visible { outline-color: #fff; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s8); align-items: center; }
.hero.slim .hero-grid { grid-template-columns: 1fr; }
.hero-copy h1 { max-width: 16ch; color: #fff; text-wrap: balance; }
.hero.slim .hero-copy h1 { max-width: 24ch; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: #fff; font-weight: 700; font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: var(--s2); }
.zipline { font-weight: 700; color: var(--tint); margin: -4px 0 var(--s2); letter-spacing: .04em; }
.lede { font-size: var(--t1); line-height: 1.5; color: var(--tint); max-width: 38ch; margin-bottom: var(--s3); }
.hero.slim .lede { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.hero-note { color: var(--tint); font-size: var(--t-1); max-width: 26ch; }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; z-index: -1; width: 74%; aspect-ratio: 1; right: -7%; top: -12%; border-radius: 50%; background: rgba(47, 143, 122, .5); }
.hero-img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 28px 150px 28px 28px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .65); background: var(--primary-dd); }
.hero-media.has-card { margin-bottom: var(--s8); }
.symptom-card { position: absolute; left: -40px; bottom: -64px; width: min(94%, 400px); background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); border: 1px solid var(--line); }
.symptom-card h2 { font-size: var(--t2); margin-bottom: 12px; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .98rem; line-height: 1.4; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- sections and prose ---------- */
section { padding: var(--s6) 0; }
section.cta-band { padding: 0; }
/* every section spans the same container as the header; long text sits in a two-column row: heading left, content right */
.prose { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: var(--s8); align-items: start; }
.prose > h2 { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 104px; margin: 0; }
.prose > :not(h2) { grid-column: 2; }
.prose > p:first-of-type, .prose > h3:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--s3); }
.prose p, .prose li { max-width: none; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose.center { display: block; max-width: none; text-align: center; margin-bottom: var(--s5); }
.prose.center > h2 { position: static; }
.prose.center p { margin-inline: auto; max-width: 70ch; }
.bignum { display: inline-block; font: 700 clamp(2.4rem, 1.6rem + 3.6vw, 4rem)/1.1 var(--head); color: var(--primary-d); text-decoration: none; letter-spacing: -.01em; }
.bignum:hover { color: var(--primary-dd); text-decoration: underline; }
.figure { position: relative; isolation: isolate; margin: var(--s5) 0; }
.figure img { width: 100%; border-radius: 28px 28px 28px 96px; box-shadow: 20px 20px 0 -2px var(--tint), var(--shadow-sm); aspect-ratio: 3 / 2; object-fit: cover; background: var(--tint); }
.figure figcaption { font-size: var(--t-1); color: var(--muted); margin-top: 28px; }
.grid { display: grid; gap: var(--s3); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow-sm); }
.grid > .card:not(.group)::before { content: ''; display: block; width: 48px; height: 48px; border-radius: 50%; margin-bottom: var(--s2); background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F6B5A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat; }
.card h3 { font-size: var(--t1); }
.card p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.wait-box, .safety-box { border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.wait-box { background: var(--surface); border: 2px solid var(--primary); box-shadow: var(--shadow-sm); }
.safety-box { background: var(--accent-tint); border: 2px solid var(--accent); }
.wait-box h2, .safety-box h2, .wait-box h3, .safety-box h3 { font-size: var(--t2); }
.wait-box ul { padding-left: 1.25em; margin: 0; } .wait-box li { margin-bottom: 8px; }
.wait-box li:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: st; max-width: none !important; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow-sm); max-width: none !important; margin: 0; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-d); color: #fff; font: 700 1.15rem/1 var(--body); font-variant-numeric: lining-nums; margin-bottom: var(--s2); }
.steps h3 { font-size: var(--t1); margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1rem; }

/* inline CTA strip */
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; background: var(--tint); border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s4) auto; width: min(var(--wrap-w), 100% - 2 * var(--s3)); }
.cta-inline strong { font: 700 var(--t2)/1.2 var(--head); }
.cta-inline p { margin: 4px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s2); }
.bento-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); min-height: 210px; transition: transform .2s ease, box-shadow .2s ease; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.bento-card h3 { font-size: var(--t1); margin: 8px 0 0; padding-right: 36px; }
.bento-card p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.bento-card .go { position: absolute; right: 20px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary-dd); font-weight: 700; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--primary-dd); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b1 { grid-column: span 5; } .b2 { grid-column: span 4; } .b3 { grid-column: span 3; }
.b4 { grid-column: span 3; } .b5 { grid-column: span 4; } .b6 { grid-column: span 5; } .b7 { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.b3, .b7 { background: var(--primary-dd); border-color: var(--primary-dd); color: #fff; }
.b3 p, .b7 p { color: var(--on-dark); }
.b3:hover, .b7:hover { color: #fff; }
.b3 .ico, .b7 .ico { background: rgba(255, 255, 255, .14); color: #fff; }
.b3 .go, .b7 .go { background: var(--accent); color: var(--ink); }
.b7 h3 { margin: 0; flex: 0 1 260px; } .b7 p { flex: 1 1 320px; }
.b7 .go { position: static; margin-left: auto; }

/* area groups + hubs */
.group h3 { margin-bottom: 8px; } .group > p { color: var(--muted); font-size: 1rem; }
.area-links, .hub-list { list-style: none; padding: 0; margin: 0; }
.area-links li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.area-links a { font-weight: 700; } .area-links span { color: var(--muted); font-size: .97rem; }
.hub-list { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
.hub-list a { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s2); row-gap: 2px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.hub-list a:hover { transform: translateY(-3px); }
.hub-list .ico { grid-row: span 2; }
.hub-list.area a { grid-template-columns: 1fr; }
.hub-list strong { font: 700 var(--t1)/1.25 var(--head); }
.hub-list span:not(.ico) { color: var(--muted); font-size: 1rem; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: var(--s8); align-items: start; }
.faq-wrap > h2 { position: sticky; top: 104px; margin: 0; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.faq-item h3 { margin: 0; font: inherit; }
.faq-q { appearance: none; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); cursor: pointer; font: 700 1.08rem/1.35 var(--body); padding: 18px 56px 18px 20px; position: relative; border-radius: var(--r-sm); min-height: 56px; }
.faq-q::after { content: ''; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--primary-d); border-bottom: 2.5px solid var(--primary-d); transform: rotate(45deg); transition: transform .2s ease; }
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-a-in { padding: 0 20px 18px; max-width: 70ch; }
.faq-a-in p:last-child { margin-bottom: 0; }
.js .faq-a { display: none; }
.js .faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */
.band-in { background: var(--primary-dd); color: #fff; border-radius: 32px; padding: var(--s6) var(--s6); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s8); }
.band-in h2 { color: #fff; margin-bottom: 8px; } .band-in p { color: var(--on-dark); margin: 0; max-width: 52ch; }
.band-in :focus-visible { outline-color: #fff; }

/* ---------- footer: rounded seafoam-ink card with a watermark mark and a legal bar ---------- */
.site-footer { padding: var(--s6) 0 var(--s3); }
.foot-card { position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark); border-radius: 32px; padding: var(--s8) var(--s8) var(--s4);
  background: radial-gradient(700px 360px at 100% 0%, rgba(47, 143, 122, .35), rgba(47, 143, 122, 0) 70%), linear-gradient(135deg, #102520 0%, #164E42 100%); }
.foot-mark { position: absolute; z-index: -1; right: -60px; bottom: -90px; width: 560px; height: auto; color: #fff; opacity: .06; --dot: currentColor; pointer-events: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr .7fr; gap: var(--s6); }
.foot-grid .foot-h { font: 700 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #7FD0BB; margin-bottom: var(--s3); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .98rem; }
.foot-brand .brand { color: #fff; } .foot-brand .brand-t b { color: #fff; } .foot-brand .brand-t small { color: var(--on-dark); } .foot-brand .mark { color: #7FD0BB; }
.foot-lead { margin-top: var(--s3); font: 600 var(--t2)/1.2 var(--head); color: #fff; }
.foot-brand p { margin-bottom: var(--s2); font-size: .98rem; max-width: 40ch; }
.foot-call { background: var(--accent); color: var(--ink) !important; border-radius: 999px; }
.foot-call:hover { background: var(--accent-h); text-decoration: none !important; }
.disclosure { margin-top: var(--s6); padding: var(--s2) var(--s3); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-sm); font-size: .95rem; }
.disclosure p { margin: 0; max-width: 90ch; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.foot-bottom p { margin: 0; color: var(--on-dark); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.foot-bottom a { color: var(--on-dark); }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 1020px) { .foot-card { padding: var(--s6) var(--s4) var(--s3); } .foot-mark { width: 420px; } }
@media (max-width: 720px) { .foot-card { padding: var(--s5) var(--s3) var(--s3); border-radius: var(--r); } .foot-mark { width: 320px; right: -50px; bottom: -50px; } }

/* ---------- floating call button ---------- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; background: var(--accent); color: var(--ink); padding: 14px 22px; border-radius: 999px; box-shadow: 0 12px 28px -10px rgba(16, 37, 32, .55); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.fab.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fab:hover { background: var(--accent-h); color: var(--ink); }

/* ---------- motion: fade-up, 60ms stagger (delay set per item in main.js) ---------- */
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; transition-delay: var(--d, 0ms); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  body { padding-bottom: 84px; }  /* keeps the floating call button clear of the footer text */
  .prose, .faq-wrap { display: block; }
  .prose > h2, .faq-wrap > h2 { position: static; margin-bottom: var(--s2); }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .hdr .call { margin-left: 0; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: var(--s2) var(--s3); gap: 0; }
  .has-sub { flex-wrap: wrap; } .has-sub > a { flex: 1; }
  .sub-toggle { margin: 0; width: 48px; height: 44px; }
  .subnav { position: static; display: none !important; width: 100%; box-shadow: none; border: 0; background: var(--tint-2); margin: 4px 0 8px; }
  .has-sub:hover > .subnav, .has-sub:focus-within > .subnav { display: none !important; }
  .has-sub.open > .subnav { display: flex !important; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-copy h1 { max-width: 22ch; }
  .symptom-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -48px; }
  .hero-media.has-card { margin-bottom: 0; }
  .hero { padding-bottom: calc(var(--s8) + 20px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bento .bento-card { grid-column: span 6; } .bento .b7 { grid-column: span 12; }
  .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hdr .call .call-t { display: none; }
  .hdr .call { padding: 12px; min-width: 48px; justify-content: center; }
  .brand-t b { font-size: 1.35rem; } .brand .mark { width: 48px; height: 34px; }
  .hero { padding-top: var(--s4); padding-bottom: calc(var(--s6) + 24px); }
  .figure img { box-shadow: 10px 10px 0 -2px var(--tint), var(--shadow-sm); }
  .figure figcaption { margin-top: 20px; }
  section { padding: var(--s5) 0; }
  .hub-list, .steps, .foot-grid { grid-template-columns: 1fr; }
  .bento .bento-card, .bento .b7 { grid-column: span 12; min-height: 0; }
  .band-in { padding: var(--s5) var(--s3); border-radius: var(--r); }
  .cta-inline { padding: var(--s3); }
  .fab { padding: 12px 18px; }
  body { padding-bottom: 80px; }  /* keeps the floating button clear of the footer text */
  .hero-img { border-radius: 24px 80px 24px 24px; }
}

/* ---------- hover interactions (transform and opacity only) ---------- */
.card, .steps li, .hub-list a, .bento-card, .faq-item { position: relative; transition: transform .25s ease; }
.card::after, .steps li::after, .hub-list a::after, .bento-card::after, .faq-item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.card:hover, .steps li:hover, .hub-list a:hover, .bento-card:hover { transform: translateY(-4px); }
.faq-item:hover { transform: translateY(-2px); }
.card:hover::after, .steps li:hover::after, .hub-list a:hover::after, .bento-card:hover::after, .faq-item:hover::after { opacity: 1; }
.bento-card { transition: transform .25s ease; }
.bento-card:hover { box-shadow: var(--shadow-sm); }
.grid > .card:not(.group)::before, .steps li::before { transition: transform .25s ease; }
.card:hover::before, .steps li:hover::before { transform: scale(1.1); }
.ico { transition: transform .25s ease; }
.bento-card:hover .ico, .hub-list a:hover .ico { transform: scale(1.08) rotate(-4deg); }
.bento-card .go { transition: transform .25s ease; }
.bento-card:hover .go { transform: translateX(4px); }
.faq-q::after { transition: transform .25s ease; }
.faq-q:hover::after { transform: rotate(45deg) translate(2px, 2px); }
.faq-q[aria-expanded="true"]:hover::after { transform: rotate(-135deg) translate(2px, 2px); }
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; }
.nav > ul > li > a:hover::after, .nav > ul > li > a:focus-visible::after { transform: scaleX(1); }
.btn:active, .fab:active { transform: translateY(0) scale(.98); }
.btn .ph, .fab .ph, .foot-call .ph { transition: transform .25s ease; }
.btn:hover .ph, .fab:hover .ph, .foot-call:hover .ph { transform: rotate(-14deg) scale(1.08); }
.fab.show:hover { transform: translateY(-3px); }
.site-footer li a { display: inline-block; transition: transform .2s ease; }
.site-footer li a:hover { transform: translateX(4px); text-decoration: none; }
.area-links a { display: inline-block; transition: transform .2s ease; }
.area-links a:hover { transform: translateX(4px); }
.crumbs a:hover { text-decoration: none; }
.brand .mark { transition: transform .35s ease; }
.brand:hover .mark { transform: rotate(-8deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .steps li:hover, .hub-list a:hover, .bento-card:hover, .faq-item:hover, .fab.show:hover, .site-footer li a:hover, .area-links a:hover, .btn:hover, .btn:active, .brand:hover .mark { transform: none; }
  .card:hover::before, .steps li:hover::before, .bento-card:hover .ico, .hub-list a:hover .ico, .bento-card:hover .go, .btn:hover .ph, .fab:hover .ph, .foot-call:hover .ph, .nav > ul > li > a:hover::after { transform: none; }
}


/* ---------- menu items: attached chevron, one hover pill, softer dropdown ---------- */
.has-sub { border-radius: 12px; }
.has-sub:hover, .has-sub:focus-within, .has-sub.open { background: var(--tint-2); }
.has-sub > a, .has-sub > a:hover { background: none; }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 36px; margin: 0 6px 0 -10px; }
.sub-toggle:hover { background: none; }
.chev { display: block; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-radius: 1px; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.has-sub:hover .chev, .has-sub:focus-within .chev, .has-sub.open .chev { transform: translateY(1px) rotate(-135deg); }
.subnav a { border-radius: 10px; }
.subnav a:hover { background: var(--tint-2); color: var(--primary-dd); }
.subnav a::after { display: none; }
@media (min-width: 1021px) {
  .subnav { display: flex !important; opacity: 0; visibility: hidden; transform: translateY(8px); top: calc(100% + 8px); min-width: 250px; border-radius: 16px; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .has-sub:hover > .subnav, .has-sub:focus-within > .subnav, .has-sub.open > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .subnav::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .subnav a { padding: 9px 14px; }
}

/* ---------- buttons: pill with a round icon badge ---------- */
.btn, .foot-call, .fab { padding: 6px 26px 6px 6px; gap: 14px; min-height: 0; }
.btn-lg { padding: 7px 34px 7px 7px; gap: 16px; }
.btn .ph, .foot-call .ph, .fab .ph { flex: none; width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(16, 37, 32, .18); }
.btn-lg .ph { width: 48px; height: 48px; padding: 14px; }
.hdr .call { padding: 5px 22px 5px 5px; }
.hdr .call .ph { width: 38px; height: 38px; padding: 10px; }
.foot-call { padding: 5px 22px 5px 5px; }
.fab { padding: 6px 24px 6px 6px; }
@media (max-width: 720px) {
  .hdr .call { padding: 5px; min-width: 0; }
  .fab { padding: 6px 20px 6px 6px; }
}

/* tap targets: breadcrumb and footer links */
.crumbs a { display: inline-block; padding: 6px 2px; }
.site-footer li a, .foot-bottom a { padding: 6px 0; }
.foot-bottom a { display: inline-block; }

@media print { .fab, .site-header, .menu-btn { display: none !important; } .js .fade { opacity: 1; transform: none; } body { background: #fff; padding: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fade { opacity: 1; transform: none; }
}
