/* =============================================================
   Centro Clínico del Dolor · v20261121
   Archetype: Editorial Light (adapted: clinical serenity)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4f2ef;   /* warm cream */
  --bg-2:      #ebe6de;   /* sand */
  --paper:     #ffffff;
  --ink:       #0b3a66;   /* deep navy — headings, primary */
  --ink-2:     #224787;
  --text:      #1f2e3d;   /* body text (≈ 13:1 on cream) */
  --mute:      #4a5a69;   /* secondary text (≈ 6.5:1) */
  --sage:      #9fcaa9;
  --sage-deep: #2c6e45;   /* text-safe sage (≈ 6:1) */
  --teal:      #5c9e6f;
  --teal-soft: #e3f0e6;
  --warm:      #e9d9c3;
  /* Corporate colours taken from the original logo */
  --brand:      #7a8fc2;  /* logo periwinkle — decorative only */
  --brand-deep: #44609f;  /* text-safe logo blue (≈ 5.8:1 on #f4f2ef) */
  --brand-soft: #e8ecf7;
  --brand-green:#78b48c;  /* vertebrae green */
  --brand-red:  #e62828;  /* logo arrows — tiny accents only */
  --line:      rgba(11,58,102, 0.13);
  --line-strong: rgba(11,58,102, 0.22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-base: 1.1875rem;   /* 19px body — large for older readers */
  --radius: 22px;
  --radius-lg: 36px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-soft: 0 1px 2px rgba(11,58,102,.04), 0 12px 40px -12px rgba(11,58,102,.14);
  --shadow-lift: 0 2px 4px rgba(11,58,102,.05), 0 30px 60px -20px rgba(11,58,102,.25);
}

/* "A+" larger text mode */
html.text-lg { font-size: 112.5%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; font-variation-settings: "SOFT" 100, "opsz" 96; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; font-variation-settings: "SOFT" 100, "opsz" 36; }
em { font-style: italic; color: var(--brand-deep); }
h1 em, h2 em { font-weight: 300; }
::selection { background: var(--teal-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .7rem 1.1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Placeholders to replace later */
.todo { background: #fff3c9; color: #6b4e00; padding: 0 .3em; border-radius: 4px; font-style: normal; }
.tag-ph { display: inline-block; margin-left: .5em; font-size: .7rem; letter-spacing: .1em; font-weight: 700; background: #fff3c9; color: #6b4e00; padding: .1em .5em; border-radius: 4px; vertical-align: middle; }
.placeholder-note { margin-top: 1.4rem; display: inline-block; font-size: .9rem; background: #fff3c9; color: #6b4e00; padding: .45rem .8rem; border-radius: 8px; }

.ph {
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(100% 90% at 90% 100%, rgba(92,158,111,.35), transparent 60%),
    linear-gradient(160deg, #e3e8f3 0%, #e6efe7 100%);
  overflow: hidden;
}
.ph::after { /* fine grain */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: multiply; pointer-events: none;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.ph-label { position: relative; z-index: 1; text-align: center; font-size: .95rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; padding: 1rem; }
.ph-label small { font-weight: 500; color: var(--mute); font-size: .82rem; }

/* =============================================================
   4. Typography helpers
   ============================================================= */
.kicker, .eyebrow {
  font-size: .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep);
}
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.eyebrow span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1.05rem; color: var(--ink); padding-right: .8rem; border-right: 1px solid var(--line-strong); }
.lead { font-size: clamp(1.2rem, 1.6vw, 1.35rem); color: var(--mute); max-width: 34em; margin-top: 1.4rem; }
.lead a { color: var(--ink); font-weight: 600; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 60px; padding: 0 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: 1.08rem; text-decoration: none; white-space: nowrap;
  transition: background .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .6s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -12px rgba(11,58,102,.55); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 18px 40px -14px rgba(11,58,102,.6); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chips li { font-size: .98rem; font-weight: 500; padding: .45rem .95rem; border-radius: 999px; background: var(--teal-soft); color: var(--ink); }
.chips-soft li { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }

/* ----- Nav ----- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .6s var(--ease-out), box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.nav.is-solid { background: rgba(244,242,239,.94); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11,58,102,.25); }
@supports (backdrop-filter: blur(1px)) { .nav.is-solid { background: rgba(244,242,239,.82); backdrop-filter: blur(16px) saturate(1.3); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark svg { width: 42px; height: 42px; }
.brand-mark circle { fill: var(--ink); }
.brand-mark path { fill: none; stroke: #a3d1b0; stroke-width: 3; stroke-linecap: round; }
.brand-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.05; font-variation-settings: "SOFT" 100, "opsz" 24; }
.brand-text em { color: var(--sage-deep); }

.nav-links { display: none; align-items: center; gap: .3rem; }
.nav-links a { position: relative; text-decoration: none; font-weight: 500; font-size: 1.02rem; padding: .55rem .85rem; border-radius: 999px; color: var(--text); transition: background .4s var(--ease-out), color .4s; }
.nav-links a:hover { background: rgba(11,58,102,.06); color: var(--ink); }
.nav-links a.is-current { color: var(--ink); background: rgba(92,158,111,.16); }
.nav-links-cta { display: none; }

.nav-tools { display: flex; align-items: center; gap: .6rem; }
.textsize { display: none; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.textsize button { width: 38px; height: 38px; border-radius: 999px; font-family: var(--serif); font-size: 1.05rem; color: var(--mute); line-height: 1; }
.textsize button { font-family: var(--sans); font-weight: 700; }
.textsize button span { font-size: .85em; font-weight: 800; }
.textsize button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav-phone { display: none; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; color: var(--ink); padding: .6rem 1.1rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft); white-space: nowrap; transition: transform .5s var(--ease-out); }
.nav-phone:hover { transform: translateY(-2px); }
.nav-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--sage-deep); stroke-width: 2; stroke-linejoin: round; }

.nav-toggle { width: 52px; height: 52px; border-radius: 999px; background: var(--ink); display: grid; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .5s var(--ease-out), opacity .3s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu sheet */
.nav-links.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
  position: fixed; top: 84px; left: var(--gutter); right: var(--gutter);
  padding: 1rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  animation: sheetIn .5s var(--ease-out);
}
.nav-links.is-open a { font-size: 1.25rem; padding: .9rem 1rem; }
.nav-links.is-open .nav-links-cta { display: block; background: var(--ink); color: #fff; text-align: center; margin-top: .5rem; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-10px); } }

/* =============================================================
   6. Sections
   ============================================================= */

/* ----- Hero ----- */
.hero { position: relative; padding: calc(84px + clamp(2rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-aura { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-aura span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 28s var(--ease-soft) infinite alternate; }
.hero-aura span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -12%; background: #dde4f3; }
.hero-aura span:nth-child(2) { width: 34vw; height: 34vw; left: -10%; top: 40%; background: #e7f1e9; animation-duration: 34s; animation-delay: -8s; }
.hero-aura span:nth-child(3) { width: 26vw; height: 26vw; left: 70%; top: 55%; background: #d9e0f1; animation-duration: 40s; animation-delay: -16s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(3vw, 2vw) scale(1.08); } 100% { transform: translate(-2vw, 4vw) scale(.96); } }

.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.hero-title { font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: 1.02; letter-spacing: -0.025em; margin-top: 1.4rem; font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero-title em { display: inline-block; }
.hero-sub { font-size: clamp(1.2rem, 1.7vw, 1.38rem); color: var(--mute); max-width: 31em; margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.4rem; font-size: 1rem; color: var(--mute); }
.hero-trust li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-trust li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232c6e45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.hero-trust strong { color: var(--ink); font-weight: 600; }

.hero-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lift); }
.breath-card {
  position: absolute; left: -6%; bottom: 14%; z-index: 2;
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem 1rem 1rem;
  background: rgba(255,255,255,.92); border-radius: 999px; box-shadow: var(--shadow-lift);
}
@supports (backdrop-filter: blur(1px)) { .breath-card { background: rgba(255,255,255,.75); backdrop-filter: blur(14px); } }
.breath-orb { position: relative; width: 54px; height: 54px; display: grid; place-items: center; }
.breath-orb::before, .breath-orb span { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.breath-orb::before { background: rgba(92,158,111,.22); animation: breathe 10s ease-in-out infinite; }
.breath-orb span { inset: 14px; background: linear-gradient(140deg, var(--teal), var(--ink-2)); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 40% { transform: scale(1.08); } 55% { transform: scale(1.08); } }
.breath-text { display: flex; flex-direction: column; line-height: 1.2; }
.breath-text > span { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-style: italic; transition: opacity .8s var(--ease-soft); }
.breath-text small { font-size: .88rem; color: var(--mute); }
.hero-stat {
  position: absolute; right: -4%; top: 10%; z-index: 2;
  padding: 1.1rem 1.4rem; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow-lift);
}
.hero-stat-num { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-variation-settings: "SOFT" 100, "opsz" 72; }
.hero-stat-num sup { font-size: .5em; color: #a3d1b0; }
.hero-stat-label { display: block; font-size: .88rem; line-height: 1.35; margin-top: .4rem; color: rgba(255,255,255,.82); }

/* ----- Manifesto ----- */
.manifesto { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--paper); border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; z-index: 1; }
.manifesto-grid { display: grid; gap: 1.5rem; }
.section-num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--sage-deep); }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.25; color: var(--ink); max-width: 24em; font-variation-settings: "SOFT" 100, "opsz" 72; letter-spacing: -0.01em; }
.manifesto-text em { font-weight: 300; }
.stats { display: grid; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--ink); font-variation-settings: "SOFT" 100, "opsz" 144; }
.stats dd { color: var(--mute); margin-top: .6rem; max-width: 16em; }

/* ----- Pain explorer ----- */
.pain { padding: clamp(5rem, 10vw, 9rem) 0 0; background: var(--paper); }
.pain-explorer { display: grid; gap: 2.5rem; align-items: start; }

.body-map { display: none; position: relative; aspect-ratio: 240 / 520; max-height: 640px; margin-inline: auto; }
.body-svg { width: 100%; height: 100%; overflow: visible; }
.body-figure > * { fill: #e9edf6; stroke: #c3cde6; stroke-width: 1.5; transition: fill .8s var(--ease-out); }
.body-whole { opacity: 0; transition: opacity 1s var(--ease-out); }
.body-map.is-whole .body-whole { opacity: 1; }
.body-map.is-whole .body-figure > * { fill: #dfe9f6; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
}
.hotspot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #fff; transition: transform .6s var(--ease-out), background .4s; }
.hotspot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: ripple 3.6s var(--ease-soft) infinite; }
.hotspot:hover::before { transform: scale(1.3); }
.hotspot.is-active::before { background: var(--ink); transform: scale(1.35); }
.hotspot.is-active::after { border-color: var(--ink); opacity: 1; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.body-caption { position: absolute; left: 50%; bottom: -2.4rem; transform: translateX(-50%); white-space: nowrap; font-family: var(--serif); font-style: italic; color: var(--sage-deep); font-size: 1.15rem; }

.pain-tabs { display: none; }
.pain-panels { display: grid; gap: 1rem; }
.pain-card {
  padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--radius); background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pain-card-tag { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--sage-deep); margin-bottom: .7rem; }
.pain-card h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pain-card p:not(.pain-card-tag) { margin-top: 1rem; max-width: 36em; }

/* JS-enhanced explorer */
.js .body-map { display: block; height: min(360px, 52vh); width: auto; margin-bottom: 2.5rem; }
@media (min-width: 960px) { .js .body-map { height: auto; width: 100%; max-height: 640px; margin-bottom: 0; } }
.js .pain-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.js .pain-tabs button {
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 500; font-size: 1.02rem; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background .5s var(--ease-out), color .5s, box-shadow .5s;
}
.js .pain-tabs button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.js .pain-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.js .pain-panels { display: grid; }
.js .pain-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility 0s .7s; background: linear-gradient(160deg, var(--bg) 0%, #f2f7f5 100%); }
.js .pain-card.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease-out) .1s, transform 1s var(--ease-out) .1s, visibility 0s; }

/* marquee */
.marquee { margin-top: clamp(5rem, 9vw, 8rem); padding: 1.6rem 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ink); padding-inline: 1.6rem; display: inline-flex; align-items: center; gap: 3.2rem; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin-left: 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Approach ----- */
.approach { padding: clamp(5rem, 10vw, 9rem) 0; }
.approach-grid { display: grid; gap: 3rem; }
.approach-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); margin-top: 2.5rem; box-shadow: var(--shadow-soft); display: none; }
.pillars { counter-reset: p; border-top: 1px solid var(--line-strong); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; border-bottom: 1px solid var(--line-strong); position: relative; }
.pillar::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--ink); transition: width 1.2s var(--ease-out); }
.pillar:hover::before { width: 100%; }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sage-deep); padding-top: .35rem; }
.pillar h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); transition: transform .8s var(--ease-out); }
.pillar:hover h3 { transform: translateX(6px); }
.pillar p { margin-top: .8rem; color: var(--mute); max-width: 34em; }

/* ----- Process (dark) ----- */
.process { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ink); color: rgba(255,255,255,.86); border-radius: var(--radius-lg); margin-inline: clamp(0rem, 1.5vw, 1.25rem); overflow: hidden; }
.process::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(92,158,111,.28), transparent 65%); pointer-events: none; }
.section-head-light h2 { color: #fff; }
.section-head-light h2 em { color: #b4d8bd; }
.section-head-light .eyebrow { color: #b4d8bd; }
.section-head-light .eyebrow span { color: #fff; border-color: rgba(255,255,255,.25); }
.section-head-light .lead { color: rgba(255,255,255,.78); }

.steps { position: relative; display: grid; gap: 1.2rem; }
.steps-line { display: none; }
.step { position: relative; padding: 2rem 1.8rem; border-radius: var(--radius); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .6s var(--ease-out), transform .8s var(--ease-out); }
.step:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.step-dot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--ink); font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1.4rem; box-shadow: 0 0 0 8px rgba(227,240,230,.08); }
.step h3 { color: #fff; font-size: 1.6rem; }
.step p { margin-top: .7rem; color: rgba(255,255,255,.8); }

/* ----- Team ----- */
.team { padding: clamp(5rem, 10vw, 9rem) 0; }
.team-grid { display: grid; gap: 1.4rem; }
.doctor { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out); }
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.doctor-photo { aspect-ratio: 4 / 5; transition: transform 1.4s var(--ease-out); }
.doctor:hover .doctor-photo { transform: scale(1.03); }
.doctor-body { padding: 1.6rem 1.6rem 1.9rem; position: relative; background: var(--paper); }
.doctor h3 { font-size: 1.5rem; }
.doctor-role { color: var(--sage-deep); font-weight: 600; font-size: 1rem; margin-top: .4rem; }
.doctor-bio { margin-top: .8rem; font-size: 1rem; color: var(--mute); }

/* ----- Voices ----- */
.voices { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--bg-2); }
.voices-grid { display: grid; gap: 2.5rem; align-items: center; }
.quotes { position: relative; display: grid; }
.quote { padding: clamp(2rem, 4vw, 3.2rem); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.35; color: var(--ink); font-variation-settings: "SOFT" 100, "opsz" 48; }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--sage); margin-bottom: .6rem; }
.quote figcaption { margin-top: 1.6rem; color: var(--mute); font-size: 1rem; }
.quote figcaption strong { color: var(--ink); }
.js .quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.99); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), visibility 0s .9s; }
.js .quote.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), visibility 0s; }
.quotes-nav { grid-area: 2 / 1; display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.quotes-nav[hidden] { display: none; }
.quotes-nav button { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-soft); display: grid; place-items: center; transition: transform .5s var(--ease-out), background .4s; }
.quotes-nav button:hover { transform: scale(1.06); background: var(--ink); color: #fff; }
.quotes-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quotes-count { font-family: var(--serif); font-style: italic; color: var(--mute); }

/* ----- FAQ ----- */
.faq { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--paper); }
.faq-grid { display: grid; gap: 2.5rem; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.6rem); color: var(--ink); line-height: 1.3;
  font-variation-settings: "SOFT" 100, "opsz" 36; transition: color .4s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%230b3a66' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat;
  transition: transform .6s var(--ease-out), background-color .4s;
}
.faq-list summary:hover { color: var(--sage-deep); }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--teal-soft); box-shadow: none; }
.faq-a { padding: 0 3.5rem 1.8rem 0; color: var(--mute); }
.faq-a p { max-width: 40em; }
.faq-list details[open] .faq-a { animation: faqIn .7s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ----- Contact ----- */
.contact { position: relative; padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-aura-soft span:nth-child(1) { left: -10%; top: 0; }
.hero-aura-soft span:nth-child(2) { left: 70%; top: 30%; background: #dde4f3; }
.contact-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: start; }
.contact-list { margin-top: 2.6rem; display: grid; gap: 1.6rem; }
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-soft); display: grid; place-items: center; }
.contact-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-k { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--sage-deep); margin-bottom: .2rem; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-big { font-family: var(--serif); font-size: 2rem; line-height: 1.15; font-weight: 400 !important; }

.form { padding: clamp(1.8rem, 4vw, 3rem); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); display: grid; gap: 1.2rem; }
.form-title { font-size: 2rem; margin-bottom: .4rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.2rem; }
.field label { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.field .opt { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--text);
  padding: .95rem 1.1rem; min-height: 58px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--bg);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(92,158,111,.2); }
.field input[aria-invalid="true"] { border-color: #b4472f; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; color: var(--mute); }
.check input { width: 24px; height: 24px; margin-top: .15rem; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); }
.form-status { font-weight: 600; color: var(--sage-deep); min-height: 1.2em; }
.form-status.is-error { color: #b4472f; }
.form-note { font-size: .92rem; color: var(--mute); }

.map { margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 16 / 7; min-height: 320px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.55) contrast(1.02); }

/* ----- Footer ----- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(4rem, 7vw, 6rem) 0 calc(2rem + 76px); font-size: 1.02rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.brand-light { color: #fff; }
.brand-light .brand-mark circle { fill: #fff; }
.brand-light .brand-mark path { stroke: var(--teal); }
.brand-light .brand-text em { color: #b4d8bd; }
.footer-claim { margin-top: 1.2rem; max-width: 22em; }
.footer-k { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #b4d8bd; margin-bottom: .6rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; }
.footer .todo { background: rgba(255,243,201,.15); color: #ffe7a3; }

/* mobile sticky CTA */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(244,242,239,.96); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -18px rgba(11,58,102,.3); transform: translateY(110%); transition: transform .6s var(--ease-out); }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 54px; padding: 0 1rem; }

/* =============================================================
   7. Effects
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Safety: if main.js never boots, show everything after 2.5s */
html.js:not(.is-ready) [data-reveal] { animation: revealSafety .8s 2.5s forwards; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

.steps-line-fg { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .textsize { display: inline-flex; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .mobile-cta { display: none; }
  .footer { padding-bottom: 2rem; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .manifesto-grid { grid-template-columns: 120px 1fr; }
  .pain-explorer { grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .approach-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .approach-head { position: sticky; top: 120px; }
  .approach-photo { display: grid; }
  .voices-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .faq-grid > header { position: sticky; top: 120px; align-self: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding-top: 1rem; }
  .steps-line { display: block; position: absolute; left: 4%; right: 4%; top: calc(1rem + 28px - 20px); width: 92%; height: 40px; overflow: visible; z-index: 0; }
  .steps-line path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .steps-line-bg { stroke: rgba(255,255,255,.14); }
  .steps-line-fg { stroke: #b4d8bd; }
  .step { background: transparent; box-shadow: none; padding: 0 .6rem; }
  .step:hover { background: transparent; }
  .step-dot { position: relative; z-index: 1; box-shadow: 0 0 0 10px var(--ink); }
}

@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-phone { display: inline-flex; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-aura span { animation: none; }
  .marquee-track { animation-duration: 160s; }
  .hotspot::after { animation: none; }
}

/* =============================================================
   10. v2 — corporate identity, real photos, Google reviews
   ============================================================= */
.brand-logo { height: 52px; width: auto; }
@media (min-width: 960px) { .brand-logo { height: 60px; } }

.hero-kw {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-deep); line-height: 1.3;
}
.hero-kw::before { /* tiny nod to the logo's red arrows */
  content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 8px solid var(--brand-red); flex: none;
}
.hero-title { margin-top: 0; }

.photo { position: relative; overflow: hidden; background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .6rem .9rem; border-radius: 12px; background: rgba(255,255,255,.9); color: var(--ink); font-size: .92rem; font-weight: 500; width: fit-content; }
.arch.photo img { object-position: 55% 50%; }

.approach-photo { display: block; }

.hero-trust a.hero-rating { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: inherit; }
.hero-trust a.hero-rating:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hero-trust li:has(.hero-rating)::before { display: none; }

/* stars: base row + gold overlay clipped to --pct */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: .08em; color: #d6d1c8; white-space: nowrap; font-size: 1.05rem; }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct, 100%); overflow: hidden; color: #e9a91b; }
.stars-lg { font-size: 1.5rem; }

/* pain thumbnails (original website photos) */
.pain-thumb { float: right; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 0 1rem 1.2rem; box-shadow: 0 0 0 5px #fff, var(--shadow-soft); filter: saturate(.8); }
@media (min-width: 720px) { .pain-thumb { width: 120px; height: 120px; } }
.pain-card::after { content: ""; display: block; clear: both; }

/* spine inside the body figure: echoes the logo vertebrae */
.body-spine rect { fill: var(--brand-green); opacity: .55; }

/* team: two real doctors */
.team-grid { grid-template-columns: 1fr; max-width: 1080px; }
@media (min-width: 720px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (min-width: 1280px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.doctor-photo img { object-position: 50% 20%; }
.doctor-role { margin-top: 0; margin-bottom: .4rem; }
.doctor h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

/* Google rating + reviews */
.rating { display: inline-flex; align-items: center; gap: 1.1rem; margin-top: 2rem; padding: 1.1rem 1.5rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--text); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.rating:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.rating-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--ink); font-variation-settings: "SOFT" 100, "opsz" 96; }
.rating-meta { display: flex; flex-direction: column; gap: .35rem; font-size: 1rem; }
.rating-actions { margin-top: 1rem; }
.btn-sm { min-height: 50px; padding: 0 1.3rem; font-size: 1rem; }
.voices-photo { margin-top: 2.2rem; aspect-ratio: 495 / 400; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); display: none; }
@media (min-width: 960px) { .voices-photo { display: block; } }

.reviews { display: grid; gap: 1rem; }
.review { padding: 1.8rem 1.8rem 1.5rem; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.review-slot { margin-top: 1rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--mute); font-style: italic; }
.review-src { display: flex; align-items: center; gap: .55rem; margin-top: 1.2rem; font-size: .92rem; color: var(--mute); font-weight: 500; }
.g-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.reviews .placeholder-note { margin-top: .4rem; }
@media (min-width: 720px) { .reviews { grid-template-columns: 1fr 1fr; } .reviews .review:first-child { grid-column: 1 / -1; } }

.contact-link { margin-top: .35rem; font-weight: 600 !important; color: var(--brand-deep) !important; }

.footer-logo { display: inline-block; background: #fff; padding: .7rem 1rem; border-radius: 18px; }
.footer-logo img { height: 56px; width: auto; }

/* nav: 7 links must stay on one line */
.nav-links a { white-space: nowrap; }
@media (min-width: 1280px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: .5rem .7rem; font-size: 1rem; }
  .nav-inner { gap: 1rem; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav-phone span { display: none; }      /* keep the call icon, drop the number */
  .nav-phone { padding: .7rem; }
}

/* map: fixed height on mobile (aspect-ratio + min-height was forcing it wider than the screen) */
.map { width: 100%; aspect-ratio: auto; height: 340px; min-height: 0; }
@media (min-width: 720px) { .map { height: auto; aspect-ratio: 16 / 7; } }

/* v3 — footer logo on navy (white-lettering version, no pill) */
.footer-logo { background: none; padding: 0; border-radius: 0; }
.footer-logo img { height: 60px; }

/* v3 — doctors' photos shown whole (uncropped 4:3) and smaller */
.doctor-photo { aspect-ratio: 4 / 3; }
.doctor-photo img { object-position: 50% 50%; }
.doctor:hover .doctor-photo { transform: none; }
@media (min-width: 960px) {
  .team-grid { max-width: 1180px; }
  .doctor { display: grid; grid-template-columns: 46% 1fr; align-items: center; }
  .doctor-photo { margin: 1.1rem 0 1.1rem 1.1rem; border-radius: calc(var(--radius) - 4px); }
  .doctor-body { padding: 1.4rem 1.6rem; }
  .doctor h3 { font-size: 1.55rem; }
}

/* =============================================================
   11. v2 — agency redesign: full-bleed photography, trust bar,
       differentiators, promise band, travel / second opinion
   ============================================================= */
:root {
  --ivory: #f7f4ee;
  --sand-2: #e9e1d4;
  --navy-deep: #082a4a;
}
body { background: var(--ivory); }

/* ---- Buttons on photography ---- */
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 14px 34px -14px rgba(0,0,0,.45); }
.btn-light:hover { background: var(--brand-soft); }
.btn-light:hover svg { transform: translateX(4px); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.btn-outline-light:hover { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px #fff; }

/* ---- Hero full-bleed ---- */
.hero.hero-full { position: relative; padding: 0; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform: scale(1.06); animation: heroSettle 9s var(--ease-out) forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8,42,74,.35) 0%, rgba(8,42,74,0) 28%),
  linear-gradient(0deg, rgba(8,42,74,.92) 0%, rgba(8,42,74,.55) 45%, rgba(8,42,74,.05) 75%); }
.hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(3rem, 7vw, 5.5rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero-full .hero-copy { max-width: 760px; }
.hero-full .hero-title { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero-full .hero-title em { color: #cfe3d4; }
.hero-full .hero-kw { color: #cfe3d4; }
.hero-full .hero-sub { color: rgba(255,255,255,.9); }
.hero-breath { position: relative; left: auto; bottom: auto; display: none; flex: none; }
@media (min-width: 960px) {
  .hero-shade { background:
    linear-gradient(180deg, rgba(8,42,74,.35) 0%, rgba(8,42,74,0) 25%),
    linear-gradient(90deg, rgba(8,42,74,.9) 0%, rgba(8,42,74,.62) 38%, rgba(8,42,74,.05) 70%); }
  .hero.hero-full { align-items: center; }
  .hero-inner { align-items: flex-end; }
  .hero-breath { display: flex; margin-bottom: .5rem; }
}
/* nav over the dark hero: logo stays legible on its own white pill until the bar turns solid */
.nav:not(.is-solid) .brand { background: rgba(255,255,255,.92); padding: .35rem .7rem; border-radius: 14px; }
.nav:not(.is-solid) .nav-links a { color: #fff; }
.nav:not(.is-solid) .nav-links a:hover, .nav:not(.is-solid) .nav-links a.is-current { background: rgba(255,255,255,.14); color: #fff; }
.nav:not(.is-solid) .textsize { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.nav:not(.is-solid) .textsize button { color: rgba(255,255,255,.85); }
.nav:not(.is-solid) .textsize button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.nav-links.is-open a { color: var(--text) !important; }
.nav-links.is-open .nav-links-cta { color: #fff !important; }

/* ---- Trust bar ---- */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.trustbar-inner { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-big { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.9rem); color: var(--ink); line-height: 1.1; display: inline-flex; align-items: center; gap: .5rem; font-variation-settings: "SOFT" 100, "opsz" 48; }
.trust-small { font-size: .95rem; color: var(--mute); }
a.trust-item:hover .trust-big { color: var(--brand-deep); }
.trust-item:last-child { grid-column: 1 / -1; border-right: 0; }
@media (min-width: 960px) {
  .trustbar-inner { grid-template-columns: repeat(5, 1fr); }
  .trust-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.8rem 1.4rem; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item:last-child { grid-column: auto; border-right: 0; }
}

/* ---- Por qué elegirnos ---- */
.manifesto { background: var(--ivory); border-radius: 0; }
.manifesto-split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.manifesto-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.manifesto-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.diffs { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.diffs li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.diff-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-soft); display: grid; place-items: center; }
.diff-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diffs h3 { font-size: 1.35rem; }
.diffs p { color: var(--mute); margin-top: .3rem; }
@media (min-width: 960px) { .manifesto-split { grid-template-columns: 1fr 1fr; } }

/* ---- Approach photo now a real rehab scene ---- */
.approach-photo { aspect-ratio: 3 / 2; }

/* ---- Travel / second opinion ---- */
.travel { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; color: #fff; background: var(--navy-deep); margin-top: clamp(4rem, 8vw, 7rem); }
.travel-bg { position: absolute; inset: 0; margin: 0; }
.travel-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.travel-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,42,74,.92) 0%, rgba(8,42,74,.7) 45%, rgba(8,42,74,.35) 100%); }
.travel-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
.travel h2 { color: #fff; }
.travel h2 em { color: #f3d2a6; }
.travel .eyebrow { color: #f3d2a6; }
.travel .eyebrow span { color: #fff; border-color: rgba(255,255,255,.3); }
.travel .lead { color: rgba(255,255,255,.88); }
.travel-copy .btn { margin-top: 2rem; }
.travel-todo { display: inline-block; margin-top: 1rem; font-size: .9rem; }
.travel-card { background: var(--paper); color: var(--text); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px -25px rgba(0,0,0,.5); max-width: 520px; }
.travel-card-photo { aspect-ratio: 16 / 9; }
.travel-card-body { padding: 1.8rem 1.8rem 2rem; }
.travel-card-body h3 { font-size: 1.7rem; }
.travel-card-body p { margin-top: .7rem; color: var(--mute); }
.travel-link { display: inline-block; margin-top: 1.2rem; font-weight: 700; color: var(--brand-deep); text-decoration: none; }
.travel-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 960px) { .travel-grid { grid-template-columns: 1.1fr .9fr; } .travel-card { justify-self: end; } }

/* ---- Promise band ---- */
.promise { background: var(--sand-2); }
.promise-grid { display: grid; }
.promise-photo { aspect-ratio: 4 / 3; }
.promise-photo img { object-position: 50% 30%; }
.promise-copy { padding: clamp(3rem, 7vw, 6rem) var(--gutter); align-self: center; max-width: 680px; }
.promise blockquote { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.25; color: var(--ink); font-variation-settings: "SOFT" 100, "opsz" 72; }
.promise blockquote em { font-weight: 300; }
.promise-sign { margin-top: 1.8rem; font-weight: 700; color: var(--sage-deep); letter-spacing: .04em; }
@media (min-width: 960px) {
  .promise-grid { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .promise-photo { aspect-ratio: auto; height: 100%; }
}

/* ---- Reviews photo: new lifestyle shot ---- */
.voices-photo { aspect-ratio: 6 / 5; }

/* ---- Team section spacing after the dark travel band ---- */
.team { padding-top: clamp(5rem, 10vw, 8rem); }

@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; transform: none; } }
.trust-big { display: block; }
.trust-big .stars { margin-left: .45rem; vertical-align: .12em; }
/* hero copy must be allowed to shrink inside the flex row (mobile overflow fix) */
.hero-full .hero-copy { min-width: 0; flex: 1 1 auto; }
.hero-full .hero-actions .btn { white-space: normal; }
@media (max-width: 539px) {
  .hero-full .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-full .hero-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
}
/* reviews on white so they don't merge with the sand promise band */
.voices { background: var(--paper); }
.voices .rating { background: var(--ivory); box-shadow: none; border: 1px solid var(--line); }
.voices .review { background: var(--ivory); box-shadow: none; border: 1px solid var(--line); }

/* v2.1 — logo over the hero photo: no pill, white-lettering version until the bar turns solid */
.nav:not(.is-solid) .brand { background: none; padding: 0; border-radius: 0; }
.brand { position: relative; }
.brand-logo--light { display: none; }
.nav:not(.is-solid) .brand-logo--color { display: none; }
.nav:not(.is-solid) .brand-logo--light { display: block; filter: drop-shadow(0 1px 8px rgba(0,0,0,.25)); }
/* stronger top fade so the logo and menu always read on the sunset sky */
.hero-full .hero-shade { background:
  linear-gradient(180deg, rgba(8,42,74,.55) 0%, rgba(8,42,74,0) 30%),
  linear-gradient(0deg, rgba(8,42,74,.9) 0%, rgba(8,42,74,.5) 45%, rgba(8,42,74,.05) 75%); }
@media (min-width: 960px) {
  .hero-full .hero-shade { background:
    linear-gradient(180deg, rgba(8,42,74,.5) 0%, rgba(8,42,74,0) 26%),
    linear-gradient(90deg, rgba(8,42,74,.85) 0%, rgba(8,42,74,.55) 36%, rgba(8,42,74,0) 62%); }
}
.hero-media img { object-position: 62% 60%; }
/* promise photo: landscape, keep the tree and the bay */
.promise-photo img { object-position: 40% 50%; }
