/* ==========================================================================
   Care First — public site design system
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Motion  7. Responsive
   ========================================================================== */

/* 1. Tokens -------------------------------------------------------------- */
:root {
  --ink: #172d2a;
  --ink-90: rgba(23, 45, 42, .9);
  --ink-70: rgba(23, 45, 42, .72);
  --ink-50: rgba(23, 45, 42, .5);
  --line: rgba(23, 45, 42, .14);
  --paper: #fbfaf7;
  --white: #fff;
  --cream: #f5f1e9;
  --sage: #b9c9b8;
  --sage-soft: #e3ebe2;
  --coral: #e97762;
  --coral-strong: #c85540; /* AA contrast on paper for text */
  --coral-soft: rgba(233, 119, 98, .14);
  --danger: #b0402f;
  --success: #2f8f6b;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 45, 42, .06), 0 4px 12px -4px rgba(23, 45, 42, .1);
  --shadow-md: 0 2px 4px rgba(23, 45, 42, .04), 0 18px 36px -14px rgba(23, 45, 42, .24);
  --shadow-lg: 0 4px 8px rgba(23, 45, 42, .04), 0 30px 60px -20px rgba(23, 45, 42, .32);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(20px, 6vw, 96px);
  --max: 1280px;
  --section: clamp(72px, 10vw, 128px);
  --header-h: 80px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { color: inherit; font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 em, h2 em { color: var(--coral); font-style: italic; }
h1 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -.05em; }
h2 { font-size: clamp(36px, 4.4vw, 62px); }
h3 { font-size: clamp(21px, 2vw, 26px); }
p { margin: 0; }
address { font-style: normal; }
::selection { background: var(--coral); color: #fff; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--coral); outline: none; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link { background: var(--ink); border-radius: var(--r-pill); color: #fff; font-weight: 600; left: 16px; padding: 10px 18px; position: fixed; text-decoration: none; top: -60px; transition: top .25s var(--ease-out); z-index: 100; }
.skip-link:focus { top: 14px; }

/* 3. Layout -------------------------------------------------------------- */
.container { margin-inline: auto; max-width: calc(var(--max) + var(--gutter) * 2); padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-cream { background: var(--cream); }
.section-heading { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-heading-split { align-items: end; display: flex; gap: 24px; justify-content: space-between; max-width: none; }
.lead { color: var(--ink-90); font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.65; max-width: 560px; }
.split { align-items: center; display: grid; gap: clamp(40px, 8vw, 120px); grid-template-columns: 1fr 1fr; }
.split-copy .lead { margin: 24px 0 32px; }
.intro-grid { align-items: start; display: grid; gap: clamp(24px, 8vw, 120px); grid-template-columns: 1fr 1.1fr; margin-bottom: clamp(40px, 6vw, 72px); }
.card-grid { display: grid; gap: 14px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rounded-image { border-radius: var(--r-lg); height: 100%; object-fit: cover; width: 100%; }

/* 4. Components ---------------------------------------------------------- */

/* Eyebrow */
.eyebrow { align-items: center; color: var(--coral-strong); display: flex; font-size: 12px; font-weight: 700; gap: 10px; letter-spacing: .14em; margin-bottom: 22px; text-transform: uppercase; }
.eyebrow span { background: currentColor; height: 1px; width: 28px; }
.eyebrow-light { color: var(--sage); }

/* Header */
.site-header { align-items: center; backdrop-filter: blur(14px); background: rgba(251, 250, 247, .9); border-bottom: 1px solid var(--line); display: flex; gap: 24px; height: var(--header-h); padding-inline: var(--gutter); position: sticky; top: 0; transition: height .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease; z-index: 40; }
.site-header.is-scrolled { --header-h: 66px; border-bottom-color: transparent; box-shadow: 0 10px 30px -18px rgba(23, 45, 42, .35); }
.brand { align-items: center; border-radius: var(--r-sm); display: flex; flex: none; gap: 10px; text-decoration: none; }
.brand-mark { align-items: center; background: var(--coral); border-radius: 50%; color: #fff; display: flex; font-size: 23px; height: 36px; justify-content: center; line-height: 1; transition: transform .5s var(--ease-spring), box-shadow .3s ease; width: 36px; }
.brand:hover .brand-mark { box-shadow: 0 6px 16px -4px rgba(233, 119, 98, .6); transform: rotate(90deg) scale(1.06); }
/* Uploaded logo: fixed height, natural aspect ratio, never wider than a short wordmark. */
.brand-logo { display: block; flex: none; height: 40px; max-width: 132px; object-fit: contain; transition: transform .4s var(--ease-spring); width: auto; }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-light .brand-logo { background: #fff; border-radius: 10px; box-sizing: content-box; padding: 4px; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: -.03em; line-height: 1; }
.brand-text small { display: block; font-size: 9px; letter-spacing: .1em; margin-top: 4px; text-transform: uppercase; }
.brand-light { color: #fff; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500; padding: 9px 14px; position: relative; text-decoration: none; transition: background-color .25s ease, color .25s ease; white-space: nowrap; }
.site-nav a::after { background: var(--coral); border-radius: 2px; bottom: 4px; content: ''; height: 2px; left: 14px; position: absolute; right: 14px; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.site-nav a:hover { background: var(--coral-soft); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.nav-only-mobile { display: none; }
.header-actions { align-items: center; display: flex; flex: none; gap: 8px; }
.header-phone { align-items: center; border-radius: var(--r-pill); display: inline-flex; font-size: 14.5px; font-weight: 500; gap: 8px; padding: 9px 12px; text-decoration: none; transition: background-color .25s ease; white-space: nowrap; }
.header-phone::before { background: currentColor; content: ''; height: 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; width: 16px; }
.header-phone:hover { background: var(--coral-soft); }
.header-phone:hover::before { animation: ring .6s ease; }
.menu-toggle { background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; display: none; height: 44px; margin-left: auto; position: relative; width: 44px; }
.menu-toggle::before, .menu-toggle::after, .menu-toggle span { background: var(--ink); border-radius: 2px; content: ''; height: 2px; left: 12px; position: absolute; right: 12px; transition: transform .35s var(--ease-out), opacity .2s ease; }
.menu-toggle::before { top: 15px; }
.menu-toggle span { top: 21px; }
.menu-toggle::after { top: 27px; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons & links */
.button { align-items: center; border: 0; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; font-size: 15px; font-weight: 600; gap: 14px; isolation: isolate; overflow: hidden; padding: 12px 12px 12px 24px; position: relative; text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .3s ease; white-space: nowrap; }
.button::before { background: var(--coral); border-radius: inherit; content: ''; inset: 0; position: absolute; transform: translateX(-101%); transition: transform .5s var(--ease-out); z-index: -1; }
.button-dark { background: var(--ink); color: #fff; }
.button-coral { background: var(--coral); color: #fff; }
.button-coral::before { background: var(--coral-strong); }
.button-light { background: var(--cream); color: var(--ink); }
.button-light::before { background: #fff; }
.button-small { font-size: 14px; padding: 8px 8px 8px 18px; }
.button-icon { align-items: center; background: rgba(255, 255, 255, .16); border-radius: 50%; display: inline-flex; flex: none; font-size: 15px; height: 32px; justify-content: center; transition: transform .45s var(--ease-spring), background-color .3s ease; width: 32px; }
.button-small .button-icon { height: 28px; width: 28px; }
.button-light .button-icon { background: rgba(23, 45, 42, .08); }
.button:hover { box-shadow: 0 14px 28px -12px rgba(23, 45, 42, .45); transform: translateY(-2px); }
.button:hover::before { transform: translateX(0); }
.button:hover .button-icon { background: rgba(255, 255, 255, .26); transform: rotate(45deg); }
.button-light:hover .button-icon { background: var(--coral); color: #fff; }
.button:active { box-shadow: 0 6px 14px -8px rgba(23, 45, 42, .4); transform: scale(.97); transition-duration: .1s; }
.button[aria-busy="true"] { cursor: progress; opacity: .85; pointer-events: none; }
.button[aria-busy="true"] .button-icon { animation: spin .8s linear infinite; background: transparent; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; color: transparent; }
.ripple { animation: ripple .65s var(--ease-out) forwards; background: rgba(255, 255, 255, .45); border-radius: 50%; pointer-events: none; position: absolute; transform: scale(0); }
.text-link { align-items: center; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; display: inline-flex; font-size: 15px; font-weight: 700; gap: 6px; padding-bottom: 3px; text-decoration: none; transition: background-size .45s var(--ease-out), color .25s ease; }
.text-link span { display: inline-block; transition: transform .4s var(--ease-spring); }
.text-link:hover { background-size: 100% 2px; color: var(--coral-strong); }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-actions .text-link:hover span { transform: translateY(4px); }

/* Cards */
.card { --mx: 50%; --my: 50%; background: var(--white); border: 1px solid rgba(23, 45, 42, .09); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; isolation: isolate; min-height: 220px; overflow: hidden; padding: 24px; position: relative; text-decoration: none; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .35s ease, color .35s ease, border-color .35s ease; }
.card-tall { min-height: 300px; padding: 28px; }
.card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(233, 119, 98, .28), transparent 45%); content: ''; inset: 0; opacity: 0; position: absolute; transition: opacity .35s ease; z-index: -1; }
.card-link:hover, .card-link:focus-visible { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); color: #fff; transform: translateY(-8px); }
.card-link:hover::before { opacity: 1; }
.card-number { font-size: 12px; opacity: .55; }
.card-tag { color: var(--coral-strong); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .3s ease; }
.card-link:hover .card-tag { color: var(--sage); }
.card-icon { display: inline-block; font-size: 40px; font-weight: 300; line-height: 1; margin: 28px 0 16px; transform-origin: left center; transition: transform .6s var(--ease-spring), color .3s ease; }
.card-tall .card-icon { margin-top: 44px; }
.card-link:hover .card-icon { color: var(--coral); transform: scale(1.15) rotate(-8deg); }
.card-title { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.card-tall .card-title { font-size: 27px; }
.card-text { font-size: 14.5px; line-height: 1.5; margin-top: 8px; max-width: 240px; opacity: .75; padding-right: 44px; }
.card-arrow { align-items: center; border: 1px solid currentColor; border-radius: 50%; bottom: 20px; display: flex; font-size: 16px; height: 38px; justify-content: center; opacity: .5; position: absolute; right: 20px; transition: transform .45s var(--ease-spring), background-color .3s ease, border-color .3s ease, opacity .3s ease; width: 38px; }
.card-link:hover .card-arrow { background: var(--coral); border-color: var(--coral); color: #fff; opacity: 1; transform: rotate(45deg); }

.photo-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity .35s ease; }
.photo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.photo-card-image { aspect-ratio: 4 / 3; overflow: hidden; }
.photo-card-portrait { aspect-ratio: 4 / 5; }
.photo-card-image img { height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); width: 100%; }
.photo-card:hover .photo-card-image img { transform: scale(1.04); }
.photo-card-body { padding: 20px 22px 24px; }
.photo-card-body h3 { margin: 6px 0 4px; }
.photo-card-body p { color: var(--ink-70); font-size: 14.5px; }

.panel { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.panel h2 { font-size: clamp(32px, 3vw, 42px); }
.panel p { font-size: 15.5px; margin: 16px 0 26px; }
.panel-sage { background: var(--sage); }
.panel-sage h2 em { color: var(--ink); }
.panel-ink { background: var(--ink); color: #fff; }
.panel-ink h2 em { color: var(--sage); }
.panel-ink p { color: var(--sage); }

.callout { align-items: center; background: var(--sage-soft); border-radius: var(--r-lg); display: flex; gap: 24px; justify-content: space-between; margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 4vw, 48px); }
.callout h2 { font-size: clamp(28px, 3vw, 38px); }
.callout p { color: var(--ink-70); margin-top: 8px; }

.chip { background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; font-size: 14.5px; font-weight: 600; padding: 10px 18px; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-spring); white-space: nowrap; }
.chip:hover { background: var(--sage-soft); border-color: var(--sage); transform: translateY(-2px); }
.chip.is-active, .chip.is-active:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item h3 { font-size: inherit; }
.accordion-trigger { align-items: center; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; display: flex; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 22px); gap: 16px; justify-content: space-between; letter-spacing: -.02em; padding: 22px 0; text-align: left; transition: color .25s ease; width: 100%; }
.accordion-trigger:hover { color: var(--coral-strong); }
.accordion-icon { border: 1px solid var(--line); border-radius: 50%; flex: none; height: 38px; position: relative; transition: transform .4s var(--ease-spring), background-color .3s ease, border-color .3s ease; width: 38px; }
.accordion-icon::before, .accordion-icon::after { background: currentColor; content: ''; height: 1.5px; left: 11px; position: absolute; right: 11px; top: 50%; }
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger:hover .accordion-icon { border-color: var(--coral); }
.accordion-trigger[aria-expanded="true"] { color: var(--ink); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { background: var(--coral); border-color: var(--coral); color: #fff; transform: rotate(135deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p { color: var(--ink-90); font-size: 16px; max-width: 680px; padding: 0 48px 24px 0; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.js .accordion-panel[hidden] { display: grid !important; }

/* Forms */
.field { border: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; padding: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; padding: 0; text-transform: uppercase; }
.optional { color: var(--ink-50); font-weight: 500; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea { background: var(--white); border: 1.5px solid rgba(23, 45, 42, .14); border-radius: var(--r-sm); font-size: 16px; padding: 13px 16px; transition: border-color .2s ease, box-shadow .25s ease; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172d2a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; cursor: pointer; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(23, 45, 42, .3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); outline: none; }
.field ::placeholder { color: rgba(23, 45, 42, .38); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(176, 64, 47, .1); }
.field.is-valid input { border-color: var(--success); }
.field-error { animation: shake .35s ease; color: var(--danger); font-size: 13.5px; font-weight: 500; }
.char-count { align-self: flex-end; color: var(--ink-50); font-size: 12px; }
.segmented { background: var(--white); border: 1.5px solid rgba(23, 45, 42, .14); border-radius: var(--r-sm); display: grid; gap: 4px; grid-template-columns: repeat(4, 1fr); padding: 4px; }
.segmented label { cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 0; position: relative; text-transform: none; }
.segmented input { inset: 0; opacity: 0; position: absolute; }
.segmented span { border-radius: 7px; display: block; padding: 9px 4px; text-align: center; transition: background-color .2s ease, color .2s ease; white-space: nowrap; }
.segmented label:hover span { background: var(--sage-soft); }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px var(--coral); }
.honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 0; }
.form-alert { background: rgba(176, 64, 47, .08); border-radius: var(--r-sm); color: var(--danger); font-size: 15px; grid-column: 1 / -1; padding: 14px 16px; }
.form-footer { align-items: center; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.form-note { color: var(--ink-70); font-size: 14px; }

/* 5. Sections ------------------------------------------------------------ */

/* Home hero */
.hero { align-items: center; display: grid; gap: clamp(40px, 7vw, 100px); grid-template-columns: 1fr 1.05fr; min-height: min(760px, calc(100vh - var(--header-h))); padding-block: clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(48px, 5.6vw, 82px); }
.hero .lead { margin: 26px 0 0; max-width: 470px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 34px; }
.hero-proof { align-items: center; display: flex; font-size: 14px; gap: 12px; margin-top: 44px; }
.proof-avatars { display: flex; }
.proof-avatars i { background: #d39a82; border: 2px solid var(--paper); border-radius: 50%; height: 30px; margin-left: -8px; transition: transform .35s var(--ease-spring); width: 30px; }
.proof-avatars i:first-child { background: #8da39a; margin-left: 0; }
.proof-avatars i:last-child { background: #d8b15e; }
.hero-proof:hover .proof-avatars i { transform: translateY(-3px); }
.hero-proof:hover .proof-avatars i:nth-child(2) { transition-delay: .05s; }
.hero-proof:hover .proof-avatars i:nth-child(3) { transition-delay: .1s; }
.hero-visual { position: relative; }
.hero-image { aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); margin-left: 8%; overflow: hidden; }
.hero-image img { height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); width: 100%; }
.hero-visual:hover .hero-image img { transform: scale(1.03); }
.floating-note { align-items: center; animation: float 6s ease-in-out infinite; background: var(--cream); border-radius: var(--r-md); bottom: 12%; box-shadow: var(--shadow-md); display: flex; gap: 12px; left: 0; padding: 16px 20px; position: absolute; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 14.5px; }
.floating-note small { font-size: 13px; opacity: .75; }
.check { align-items: center; animation: pulse 2.6s ease-out infinite; background: var(--coral); border-radius: 50%; color: #fff; display: flex; flex: none; font-size: 13px; height: 28px; justify-content: center; width: 28px; }

/* Marquee */
.marquee { background: var(--sage); display: flex; font-size: 13px; font-weight: 700; letter-spacing: .2em; overflow: hidden; padding: 17px 0; text-transform: uppercase; white-space: nowrap; }
.marquee-track { animation: marquee 34s linear infinite; display: flex; flex: none; gap: 28px; padding-right: 28px; }
.marquee-track b { color: var(--coral-strong); font-weight: 400; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Feature list */
.feature-list { border-top: 1px solid var(--line); list-style: none; margin: 0 0 32px; padding: 0; }
.feature-list li { align-items: flex-start; border-bottom: 1px solid var(--line); border-radius: var(--r-sm); display: flex; gap: 28px; padding: 18px 0; transition: background-color .3s ease, padding .35s var(--ease-out); }
.feature-list li:hover { background: rgba(255, 255, 255, .65); padding-inline: 14px; }
.feature-list b { color: var(--coral-strong); font-size: 12px; padding-top: 3px; transition: transform .35s var(--ease-spring); }
.feature-list li:hover b { transform: scale(1.3); }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: 16.5px; }
.feature-list small { font-size: 14.5px; margin-top: 3px; opacity: .72; }
.split-media { aspect-ratio: 5 / 6; }

/* Stories */
.story-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr 1fr; }
.story:nth-child(2) { margin-top: clamp(0px, 8vw, 96px); }
.story { margin: 0; }
.story-image { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.story-image img { height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .5s ease; width: 100%; }
.story:hover .story-image img { filter: saturate(1.1); transform: scale(1.03); }
.story-meta { display: flex; font-size: 12.5px; justify-content: space-between; letter-spacing: .08em; margin-top: 16px; text-transform: uppercase; }
.story-meta span:first-child { color: var(--coral-strong); font-weight: 700; }
.story blockquote { font-family: var(--serif); font-size: clamp(23px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1.2; margin: 18px 0 10px; max-width: 460px; transition: color .3s ease; }
.story:hover blockquote { color: var(--coral-strong); }
.story figcaption { color: var(--ink-70); font-size: 14px; }

/* CTA band */
.cta-band { padding: 0 clamp(12px, 4vw, 64px) var(--section); }
.page-home .cta-band { padding-top: 0; }
.cta-inner { align-items: end; background: var(--ink); border-radius: var(--r-lg); color: #fff; display: flex; gap: 40px; justify-content: space-between; margin-inline: auto; max-width: calc(var(--max) + 120px); overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); position: relative; }
.cta-inner::after { animation: drift 14s ease-in-out infinite alternate; background: radial-gradient(circle, rgba(233, 119, 98, .35), transparent 65%); content: ''; height: 540px; pointer-events: none; position: absolute; right: -140px; top: -220px; width: 540px; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 em { color: var(--sage); }
.cta-side { flex: none; max-width: 320px; }
.cta-side p { margin-bottom: 22px; }
.cta-side small { color: var(--sage); display: block; font-size: 13px; margin-top: 14px; }

/* Page hero */
.page-hero { background: var(--cream); padding-block: clamp(72px, 10vw, 120px) clamp(64px, 9vw, 108px); }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin-top: 26px; }
.page-hero-compact { padding-block: clamp(64px, 8vw, 96px) clamp(56px, 7vw, 84px); }
.page-hero-dark { background: var(--ink); color: #fff; }
.page-hero-dark h1 em { color: var(--sage); }
.page-hero-dark .lead { color: rgba(255, 255, 255, .82); }

/* Implants detail */
.detail-hero { align-items: center; display: grid; gap: clamp(40px, 8vw, 110px); grid-template-columns: 1fr 1fr; }
.detail-copy h1 { font-size: clamp(44px, 5vw, 72px); }
.detail-copy .lead { margin: 22px 0 30px; }
.detail-media { aspect-ratio: 5 / 5.4; }
.breadcrumb { align-items: center; color: var(--ink-70); display: flex; font-size: 14px; gap: 8px; margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--coral-strong); text-decoration: underline; }
.quick-facts { border-top: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; padding-top: 20px; }
.quick-facts dt { font-family: var(--serif); font-size: 28px; }
.quick-facts dd { font-size: 13px; margin: 2px 0 0; opacity: .72; }
.process-grid { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.process-step { border-top: 2px solid var(--line); padding-top: 18px; transition: border-color .3s ease, transform .4s var(--ease-out); }
.process-step:hover { border-top-color: var(--coral); transform: translateY(-4px); }
.process-step b { color: var(--coral-strong); font-size: 12px; }
.process-step h3 { margin: 18px 0 8px; }
.process-step p { font-size: 15px; opacity: .85; }
.faq { max-width: 880px; }
.faq h2 { margin-bottom: 32px; text-align: center; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-count { color: var(--ink-70); font-size: 14px; margin: 16px 0 24px; }
.photo-card.is-leaving { opacity: 0; transform: scale(.95); }
.photo-card.is-entering { animation: pop-in .45s var(--ease-out) both; }
.compare { background: var(--ink); border-radius: var(--r-lg); color: #fff; margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 56px); }
.compare h2 { font-size: clamp(30px, 3.4vw, 42px); }
.compare-frame { aspect-ratio: 16 / 7; border-radius: var(--r-md); cursor: ew-resize; margin-top: 28px; overflow: hidden; position: relative; touch-action: pan-y; --pos: 50%; }
.compare-layer { inset: 0; position: absolute; }
.compare-layer img { height: 100%; object-fit: cover; width: 100%; }
.compare-layer:first-child img { filter: grayscale(.35); }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-range { cursor: ew-resize; height: 100%; inset: 0; margin: 0; opacity: 0; position: absolute; width: 100%; z-index: 3; }
.compare-handle { background: #fff; bottom: 0; left: var(--pos); pointer-events: none; position: absolute; top: 0; transform: translateX(-50%); width: 2px; z-index: 2; }
.compare-handle::after { align-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow-md); color: var(--ink); content: '‹ ›'; display: flex; font-size: 18px; font-weight: 700; height: 46px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); transition: transform .3s var(--ease-spring), box-shadow .2s ease; width: 46px; }
.compare-frame:hover .compare-handle::after { transform: translate(-50%, -50%) scale(1.12); }
.compare-range:focus-visible ~ .compare-handle::after { box-shadow: 0 0 0 4px var(--coral); }
.compare-tag { backdrop-filter: blur(6px); background: rgba(23, 45, 42, .7); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; pointer-events: none; position: absolute; text-transform: uppercase; top: 16px; z-index: 2; }
.compare-tag-before { left: 16px; }
.compare-tag-after { right: 16px; }

/* Guide */
.guide-grid { align-items: start; display: grid; gap: clamp(32px, 6vw, 72px); grid-template-columns: 1.15fr .85fr; }
.step-list { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.step { border-bottom: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 20px; grid-template-columns: 44px 1fr; padding: 24px 0; transition: background-color .3s ease, padding .35s var(--ease-out); }
.step:hover { background: var(--cream); padding-inline: 14px; }
.step b { color: var(--coral-strong); font-size: 12px; padding-top: 6px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-90); font-size: 15.5px; }
.guide-grid .panel { position: sticky; top: calc(var(--header-h) + 24px); }

/* Booking */
.booking-layout { align-items: start; display: grid; gap: clamp(28px, 6vw, 80px); grid-template-columns: .8fr 1.2fr; }
.booking-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.check-list { border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; margin: 0; padding: 0; }
.check-list li { align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .18); display: flex; font-size: 15px; gap: 10px; padding: 13px 0; }
.check-list li::before { color: var(--coral); content: '✓'; font-weight: 700; }
.booking-contact { font-size: 15px; margin: 24px 0 0 !important; }
.booking-contact a { color: #fff; font-weight: 700; }
.booking-form { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.booking-success { align-items: center; animation: pop-in .5s var(--ease-out) both; background: var(--sage-soft); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; padding: clamp(36px, 6vw, 64px) 32px; text-align: center; }
.booking-success:focus { outline: none; }
.booking-success svg { color: var(--success); height: 60px; width: 60px; }
.booking-success svg path { animation: draw .6s .25s ease-out forwards; stroke-dasharray: 30; stroke-dashoffset: 30; }
.booking-success h2 { font-size: clamp(30px, 3vw, 40px); }
.booking-success p { color: var(--ink-70); max-width: 460px; }

/* Contact */
.contact-layout { align-items: start; display: grid; gap: clamp(32px, 8vw, 110px); grid-template-columns: 1fr 1fr; }
.contact-details { display: grid; gap: 28px 32px; grid-template-columns: 1fr 1fr; margin: 0 0 36px; }
.contact-detail { border-top: 2px solid var(--line); padding-top: 14px; transition: border-color .3s ease; }
.contact-detail:hover { border-top-color: var(--coral); }
.contact-detail > dt { color: var(--coral-strong); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail > dd { font-size: 16.5px; margin: 8px 0 0; }
.contact-detail > dd > a:not(.text-link) { background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 1.5px no-repeat; text-decoration: none; transition: background-size .4s var(--ease-out), color .25s ease; }
.contact-detail > dd > a:not(.text-link):hover { background-size: 100% 1.5px; color: var(--coral-strong); }
.contact-detail .text-link { font-size: 14px; margin-top: 8px; }
.copy-button { background: var(--sage-soft); border: 0; border-radius: var(--r-pill); cursor: pointer; font-size: 12px; font-weight: 600; margin-left: 8px; padding: 4px 10px; transition: background-color .2s ease, transform .2s var(--ease-spring); vertical-align: middle; }
.copy-button:hover { background: var(--sage); transform: translateY(-1px); }
.hours { display: grid; gap: 4px; margin: 0; }
.hours div { display: flex; gap: 16px; justify-content: space-between; max-width: 260px; }
.hours dd { margin: 0; }
.map-card { aspect-ratio: 5 / 4.4; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.map-card img { height: 100%; object-fit: cover; width: 100%; }
.map-label { background: var(--paper); border-radius: var(--r-md); bottom: 20px; box-shadow: var(--shadow-md); left: 20px; padding: 16px 18px; position: absolute; }
.map-label strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.map-label small { font-size: 13px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); padding: clamp(56px, 7vw, 88px) var(--gutter) 28px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-inline: auto; max-width: var(--max); }
.footer-brand p { color: var(--sage); font-size: 15px; margin-top: 18px; }
.footer-heading { color: #fff; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; margin-bottom: 14px; text-transform: uppercase; }
.site-footer address, .site-footer .hours { font-size: 15px; }
.footer-link { display: block; font-size: 15px; margin-top: 6px; text-decoration: none; transition: color .2s ease; width: fit-content; }
.footer-link:hover { color: var(--coral); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; font-size: 13px; gap: 12px 28px; justify-content: space-between; margin: 48px auto 0; max-width: var(--max); padding-top: 22px; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-base a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; text-decoration: none; transition: background-size .35s var(--ease-out), color .2s ease; }
.footer-base a:hover { background-size: 100% 1px; color: #fff; }
.mobile-actions { display: none; }

/* Scroll chrome */
.scroll-progress { background: linear-gradient(90deg, var(--coral), #f0a08f); height: 3px; left: 0; position: fixed; right: 0; top: 0; transform: scaleX(var(--progress, 0)); transform-origin: left; z-index: 60; }
.back-to-top { align-items: center; background: var(--ink); border: 0; border-radius: 50%; bottom: 24px; box-shadow: var(--shadow-md); color: #fff; cursor: pointer; display: flex; font-size: 18px; height: 48px; justify-content: center; opacity: 0; pointer-events: none; position: fixed; right: 24px; transform: translateY(16px) scale(.9); transition: opacity .3s ease, transform .4s var(--ease-spring), background-color .25s ease; width: 48px; z-index: 30; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--coral); }
.cf-toaster { top: calc(var(--header-h) + 14px); }

/* 404 */
.not-found { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
.not-found .lead { margin-top: 22px; }

/* 6. Motion -------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js .card[data-reveal].is-revealed, .js .photo-card[data-reveal].is-revealed { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .35s ease, color .35s ease, border-color .35s ease, opacity .8s var(--ease-out); }
.hero-copy > *, .hero-visual { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 119, 98, .45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(233, 119, 98, 0); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { opacity: 0; transform: scale(2.6); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 7. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav a { padding-inline: 10px; }
  .site-nav a::after { left: 10px; right: 10px; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled { --header-h: 62px; }
  .brand-text small { display: none; }
  .menu-toggle { display: block; }
  .site-header .header-actions { margin-left: 0; }
  .site-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); flex-direction: column; gap: 2px; left: 4%; margin: 0; opacity: 0; padding: 10px; pointer-events: none; position: absolute; right: 4%; top: calc(var(--header-h) + 6px); transform: translateY(-10px) scale(.98); transform-origin: top center; transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s .35s; visibility: hidden; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; visibility: visible; }
  .site-nav.is-open a { animation: menu-in .4s var(--ease-out) both; }
  .site-nav.is-open a:nth-child(2) { animation-delay: .04s; }
  .site-nav.is-open a:nth-child(3) { animation-delay: .08s; }
  .site-nav.is-open a:nth-child(4) { animation-delay: .12s; }
  .site-nav.is-open a:nth-child(5) { animation-delay: .16s; }
  .site-nav a { border-radius: var(--r-sm); font-size: 17px; padding: 14px 16px; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--coral-soft); }
  .nav-only-mobile { display: block; }
  .hero, .split, .intro-grid, .detail-hero, .guide-grid, .booking-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-image { margin-left: 6%; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .callout, .cta-inner { align-items: flex-start; flex-direction: column; }
  .section-heading-split { align-items: flex-start; flex-direction: column; }
  .guide-grid .panel, .booking-aside { position: static; }
  .split-media, .detail-media { aspect-ratio: 4 / 3; }
  .mobile-actions { background: var(--ink); border-radius: var(--r-pill); bottom: 12px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); left: 12px; overflow: hidden; position: fixed; right: 12px; z-index: 35; }
  .mobile-actions a { color: #fff; font-size: 14.5px; font-weight: 600; padding: 15px 4px; text-align: center; text-decoration: none; transition: background-color .2s ease; }
  .mobile-actions a + a { border-left: 1px solid rgba(255, 255, 255, .16); }
  .mobile-actions a:nth-child(2) { background: var(--coral); }
  .back-to-top { bottom: 84px; right: 16px; }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 600px) {
  .header-actions { display: none; }
  .card-grid-3, .card-grid-4, .story-grid, .process-grid, .contact-details, .booking-form, .footer-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-grid-4 .card { min-height: 190px; padding: 18px; }
  .card-grid-4 .card-icon { font-size: 32px; margin: 18px 0 10px; }
  .card-grid-4 .card-title { font-size: 19px; }
  .card-grid-4 .card-text { padding-right: 0; }
  .card-grid-4 .card-arrow { display: none; }
  .story:nth-child(2) { margin-top: 0; }
  .segmented { grid-template-columns: 1fr 1fr; }
  .compare-frame { aspect-ratio: 4 / 3; }
  .quick-facts dt { font-size: 22px; }
}

@media (hover: none) {
  .card-link:hover { background: var(--white); border-color: rgba(23, 45, 42, .09); box-shadow: var(--shadow-sm); color: var(--ink); transform: none; }
  .card-link:hover .card-arrow { background: transparent; border-color: currentColor; color: inherit; transform: none; }
  .card-link:hover .card-icon { color: inherit; transform: none; }
  .card-link:active { transform: scale(.98); }
}
