/* =============================================================
   LUMEN Dermatología — styles.css
   Concepto: "La luz que revela." Editorial-clínico, no spa, no lujo nocturno.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper: #F6F2E9;
  --paper-dim: #EEE6D3;
  --paper-deep: #E4D8BC;
  --ink: #1C1914;
  --ink-soft: #6E6455;
  --line: #DCD0B3;
  --amber: #AD7A38;
  --amber-text: #8A5D26;
  --amber-glow: rgba(173, 122, 56, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

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

  --container: 1240px;
  --nav-h: 76px;

  --fs-h1: clamp(2.3rem, 4.6vw + 1rem, 4.4rem);
  --fs-h2: clamp(1.8rem, 2.6vw + 1rem, 2.9rem);
  --fs-h3: clamp(1.35rem, 1.2vw + 1rem, 1.8rem);
  --fs-h4: 1.1rem;
  --fs-lede: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  --fs-label: 0.72rem;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; max-width: 62ch; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 450;
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
em { font-style: italic; color: var(--amber-text); }
::selection { background: var(--amber-glow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--paper);
  border-radius: 4px; font-weight: 600; font-size: .85rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.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;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark {
  background: var(--ink); color: var(--paper);
  border-top-color: var(--ink);
}
.section--dark p { color: #C9BEA9; }
.section--dim { background: var(--paper-dim); }

.eyebrow {
  display: flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 1.2em;
}
.section--dark .eyebrow { color: var(--amber); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px var(--amber-glow); flex: none;
}

.lede { font-size: var(--fs-lede); line-height: 1.7; color: var(--ink-soft); max-width: 58ch; }
.section--dark .lede { color: #C9BEA9; }

.kicker-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  border-bottom: 1px solid var(--amber); padding-bottom: .2rem;
  transition: gap .3s var(--ease-out), color .3s var(--ease-out);
}
.kicker-link:hover { gap: .8em; color: var(--amber-text); }
.section--dark .kicker-link { color: var(--paper); border-color: var(--amber); }
.section--dark .kicker-link:hover { color: var(--amber); }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 1rem 1.8rem; white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s var(--ease-out);
}
.btn-primary {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(28,25,20,.4); }
.section--dark .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.section--dark .btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(173,122,56,.55); }

.link-underline {
  font-size: .92rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--amber); padding-bottom: .15rem;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.link-underline:hover { color: var(--amber-text); }
.section--dark .link-underline { color: var(--paper); }
.section--dark .link-underline:hover { color: var(--amber); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(246, 242, 233, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(28,25,20,.03); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.brand {
  display: flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .01em; color: var(--ink);
}
.brand-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-glow); flex: none;
}

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--amber); transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: none; }
.nav-toggle-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; margin-inline-start: auto;
}
.nav-toggle-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; top: 0; left: 0; }
.nav-toggle-input:checked ~ .nav .nav-toggle-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav .nav-toggle-btn span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav .nav-toggle-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1.6rem; padding: 2rem clamp(1.5rem, 6vw, 3rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-soft);
}
.nav-toggle-input:checked ~ .nav-mobile { clip-path: inset(0 0 0% 0); }
.nav-mobile a { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--paper); }
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { color: var(--amber); }
.nav-mobile .btn-primary { margin-top: 1rem; background: var(--amber); color: var(--ink); border-color: var(--amber); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle-btn, .nav-toggle-input, .nav-mobile { display: none; }
}

/* =============================================================
   6. Placeholder photography system
   ============================================================= */
.ph {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255,247,225,.5), transparent 55%),
    linear-gradient(155deg, #C9B98C 0%, #8A7A57 38%, #3A2F20 78%, #1C1914 100%);
}
.ph[data-ph-variant="1"] {
  background:
    radial-gradient(110% 80% at 82% 15%, rgba(255,247,225,.46), transparent 55%),
    linear-gradient(200deg, #CBB98D 0%, #7C6C4A 42%, #362B1D 80%, #1C1914 100%);
}
.ph[data-ph-variant="2"] {
  background:
    radial-gradient(100% 100% at 10% 90%, rgba(255,247,225,.36), transparent 60%),
    linear-gradient(115deg, #D6C6A0 0%, #93805A 45%, #40331F 85%, #1C1914 100%);
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--landscape { aspect-ratio: 3 / 2; }
.ph--square { aspect-ratio: 1 / 1; }
.ph-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: .8rem .95rem;
  font-size: .68rem; line-height: 1.45; letter-spacing: .01em; color: #F6F2E9;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 85%);
}
.ph-cap b { font-weight: 600; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

[data-reveal-mask] {
  clip-path: inset(0 0 0 100%);
  animation: heroReveal 1.7s var(--ease-soft) .25s both;
}
@keyframes heroReveal { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal-mask] { animation: none; clip-path: inset(0); }
}

/* =============================================================
   7. Hero (homepage)
   ============================================================= */
.hero { padding-block: clamp(1.75rem, 4vw, 2.5rem) clamp(2rem, 4vw, 2.75rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1fr;
}
.hero-title { font-size: var(--fs-h1); max-width: 13ch; }
.hero-sub { margin-top: 1.3rem; font-size: 1.05rem; color: var(--ink-soft); max-width: 40ch; }
.hero-ctas { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-figure { position: relative; }
.hero-figure .ph { aspect-ratio: 4 / 5; }

@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    display: flex; align-items: center;
  }
  .hero-grid { grid-template-columns: .88fr 1.12fr; width: 100%; align-items: stretch; }
  .hero-copy { align-self: center; }
  .hero-figure { order: 2; align-self: stretch; }
  .hero-figure .ph { aspect-ratio: auto; height: 100%; min-height: 480px; }
}
@media (min-width: 960px) and (max-height: 780px) {
  .hero { min-height: 0; padding-block: clamp(2rem, 5vh, 3rem); }
  .hero-figure .ph { min-height: 420px; max-height: 68vh; }
}

/* =============================================================
   8. Philosophy statement
   ============================================================= */
.philosophy { position: relative; overflow: visible; }
.philosophy-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1fr;
}
.philosophy-grid h2 { max-width: 16ch; font-size: clamp(1.9rem, 2.6vw + 1rem, 2.7rem); }
.philosophy-text { max-width: 46ch; }
.philosophy-figure { display: none; }

@media (min-width: 960px) {
  .philosophy-grid {
    grid-template-columns: 1.15fr .85fr;
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 1.6rem;
  }
  .philosophy-statement { grid-column: 1; grid-row: 1; }
  .philosophy-text { grid-column: 1; grid-row: 2; padding-right: 2rem; }
  .philosophy-figure {
    display: block; grid-column: 2; grid-row: 1 / 3;
    position: relative; align-self: start;
    margin-top: -1.25rem; margin-bottom: -3.5rem;
    box-shadow: 0 42px 70px -26px rgba(28,25,20,.4);
    z-index: 2;
  }
}

/* =============================================================
   9. Treatment index (distinctive component)
   ============================================================= */
.tx-wrap { display: grid; gap: 2.5rem; margin-top: 2.4rem; grid-template-columns: 1fr; }

.tx-list { border-top: 1px solid var(--line); }
.tx-row {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.tx-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--amber); transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease-soft);
}
.tx-row.is-active::before { transform: scaleY(1); }
.tx-row summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 1.2rem; justify-content: flex-start;
  padding: 1.5rem 0 1.5rem 0; transition: padding-left .45s var(--ease-out);
}
.tx-row summary::-webkit-details-marker { display: none; }
.tx-row summary:hover, .tx-row summary:focus-visible { padding-left: .6rem; }
.tx-idx {
  font-family: var(--font-display); font-size: 1rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; flex: none; width: 1.6rem;
  transition: color .4s var(--ease-out);
}
.tx-row.is-active .tx-idx { color: var(--amber-text); }
.tx-name {
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.1vw + 1rem, 1.7rem);
  flex: 1; transition: color .4s var(--ease-out);
}
.tx-row summary:hover .tx-name, .tx-row summary:focus-visible .tx-name, .tx-row.is-active .tx-name { color: var(--amber-text); }
.tx-icon { flex: none; font-size: 1.2rem; color: var(--amber); font-weight: 300; margin-left: auto; transition: transform .4s var(--ease-out); }
.tx-row[open] .tx-icon { transform: rotate(45deg); }

.tx-panel { padding: 0 0 1.8rem 2.8rem; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.tx-panel .ph { max-width: 220px; }
.tx-panel p { font-size: .92rem; color: var(--ink-soft); }

.tx-preview { display: none; }
.tx-has-preview .tx-preview { display: block; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.tx-has-preview .tx-panel { display: none; }
.tx-preview-label { display: flex; align-items: baseline; gap: .8rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tx-preview-idx { font-family: var(--font-display); font-size: .95rem; color: var(--amber-text); font-variant-numeric: tabular-nums; }
.tx-preview-name { font-family: var(--font-display); font-size: 1.25rem; }
.tx-preview-cap { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

@media (min-width: 720px) { .tx-panel { grid-template-columns: 220px 1fr; align-items: center; } }
@media (min-width: 960px) { .tx-wrap { grid-template-columns: 1.15fr .85fr; } }

/* =============================================================
   10. Process timeline (Enfoque médico)
   ============================================================= */
.proc {
  display: flex; flex-direction: column;
  margin-top: 3rem;
}
.proc-step {
  position: relative; padding: 1.8rem 0 1.8rem 3.6rem;
  border-top: 1px solid var(--line);
}
.proc-step:last-child { border-bottom: 1px solid var(--line); }
.proc-n {
  position: absolute; left: 0; top: 1.7rem;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
  color: var(--amber-text); font-variant-numeric: tabular-nums;
}
.proc-step h3 { font-size: 1.15rem; }
.proc-step p { font-size: .94rem; margin-top: .5rem; color: var(--ink-soft); }

@media (min-width: 720px) {
  .proc { flex-direction: row; align-items: flex-start; gap: 0; margin-top: 3.5rem; }
  .proc-step {
    flex: 1; padding: 2.2rem clamp(1.2rem, 2.5vw, 2.2rem) 0 0;
    border-top: none; border-left: 1px solid var(--line);
    padding-left: clamp(1.4rem, 2.5vw, 2.2rem);
  }
  .proc-step:first-child { border-left: none; padding-left: 0; }
  .proc-step:last-child { border-bottom: none; }
  .proc-step:nth-child(2) { padding-top: 0; }
  .proc-step:nth-child(3) { padding-top: 4.4rem; }
  .proc-n { position: static; display: block; font-size: 2rem; margin-bottom: 1.1rem; }
  .proc-step h3 { max-width: 18ch; }
  .proc-step p { max-width: 26ch; }
}

/* =============================================================
   11. Tecnología band — precise, technical, full-bleed frame
   ============================================================= */
.tech-band-frame {
  position: relative; margin-inline: 0; margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: 14px;
}
.tech-band-frame::before, .tech-band-frame::after { content: ""; position: absolute; width: 22px; height: 22px; }
.tech-band-frame::before { top: 0; left: 0; border-top: 1px solid var(--amber); border-left: 1px solid var(--amber); }
.tech-band-frame::after { bottom: 0; right: 0; border-bottom: 1px solid var(--amber); border-right: 1px solid var(--amber); }
.ph--cinema { aspect-ratio: 21 / 9; }
.tech-band-copy { max-width: 56ch; }
.tech-band-copy h2 { max-width: 18ch; }
.tech-band-copy .lede { margin-top: 1rem; }
.tech-band-copy .kicker-link { margin-top: 1.4rem; }

/* Punctual scroll parallax — Tecnología media only, native CSS, zero JS */
@supports (animation-timeline: scroll()) {
  @media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    .tech-band-frame .ph {
      animation: mediaParallax linear;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
    @keyframes mediaParallax { from { transform: translateY(2%) scale(1.03); } to { transform: translateY(-2%) scale(1.03); } }
  }
}

/* =============================================================
   11b. Feature band — Clínica: calm, spacious, side by side
   ============================================================= */
.feature { display: grid; gap: clamp(2.2rem, 6vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
.feature-media { position: relative; }
.feature-media .ph { animation: none; clip-path: inset(0); }
.feature h2 { max-width: 16ch; }
.lede--soft { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.clinic-band .container.feature { padding-block: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1.1fr 1fr; }
}

/* =============================================================
   12. CTA final
   ============================================================= */
.cta-final { text-align: center; }
.cta-final-inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.cta-final h2 { font-size: var(--fs-h1); }
.cta-final-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.5;
  color: #C9BEA9; max-width: 34ch; margin-top: .2rem;
}
.cta-final .btn-primary { margin-top: .6rem; }

.lumen-point { position: relative; width: 14px; height: 14px; margin-bottom: .5rem; }
.lumen-point::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 8px var(--amber-glow), 0 0 42px 6px rgba(173,122,56,.35);
  animation: lumenPulse 3s ease-in-out infinite;
}
@keyframes lumenPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: .68; } }
@media (prefers-reduced-motion: reduce) { .lumen-point::before { animation: none; } }

/* =============================================================
   13. Page hero (subpages)
   ============================================================= */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem); }
.page-hero-eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 16ch; }
.page-hero .lede { margin-top: 1.1rem; }

/* =============================================================
   14. Treatment detail list (tratamientos.html)
   ============================================================= */
.tx-full { display: flex; flex-direction: column; }
.tx-full-item {
  display: grid; gap: 1.8rem; padding-block: clamp(2.2rem, 5vw, 3.2rem);
  border-top: 1px solid var(--line); grid-template-columns: 1fr; scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.tx-full-item:last-child { border-bottom: 1px solid var(--line); }
.tx-full-item .tx-idx { font-size: .78rem; }
.tx-full-item h2 { font-size: var(--fs-h3); margin-top: .5rem; max-width: 20ch; }
.tx-full-item p { margin-top: .9rem; color: var(--ink-soft); }
.tx-full-media .ph { max-width: 340px; }
@media (min-width: 720px) { .tx-full-item { grid-template-columns: 1fr 340px; align-items: start; } .tx-full-media { order: 2; } }

/* =============================================================
   15. Technology grid (tecnologia.html)
   ============================================================= */
.tech-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.4rem; grid-template-columns: 1fr; }
.tech-item { background: var(--paper); }
.tech-item .ph { border: none; }
.tech-item-body { padding: 1.5rem 1.5rem 1.8rem; }
.tech-item h3 { font-size: 1.05rem; }
.tech-item p { font-size: .9rem; margin-top: .5rem; color: var(--ink-soft); }
@media (min-width: 720px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   16. Clinic gallery (clinica.html)
   ============================================================= */
.clinic-gallery { display: grid; gap: 1rem; margin-top: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .clinic-gallery { grid-template-columns: repeat(2, 1fr); } .clinic-gallery > *:first-child { grid-column: 1 / -1; } }

.clinic-info {
  display: grid; gap: 1.8rem; margin-top: 2.4rem;
  grid-template-columns: 1fr; padding: 1.8rem; border: 1px solid var(--line); background: var(--paper-dim);
}
.clinic-info dt { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.clinic-info dd { font-family: var(--font-display); font-size: 1.15rem; margin-top: .3rem; }
@media (min-width: 720px) { .clinic-info { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   17. Contact page
   ============================================================= */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.3rem; }
.form-field label { font-size: .85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: .95rem; padding: .85rem 1rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--amber); outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .form-row--two { grid-template-columns: 1fr 1fr; } }

.form-success {
  padding: 2rem; border: 1px solid var(--amber); background: var(--paper-dim);
}
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin-top: .6rem; color: var(--ink-soft); }

.contact-detail-list { list-style: none; padding: 0; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-detail-list dt, .contact-detail-list .label { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-detail-list .value { font-family: var(--font-display); font-size: 1.15rem; margin-top: .25rem; }

/* =============================================================
   18. Footer
   ============================================================= */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-main {
  display: flex; flex-direction: column; gap: 2.2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid #332C20;
}
.footer-brand { display: flex; align-items: center; gap: .55em; font-family: var(--font-display); font-size: 1.7rem; }
.footer-tagline { margin-top: .7rem; font-style: italic; color: var(--amber); font-family: var(--font-display); font-size: 1.05rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; }
.footer-nav a { color: #D9CFBB; font-size: .95rem; transition: color .25s var(--ease-out); }
.footer-nav a:hover { color: var(--amber); }

.footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-contact-label { font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: #8A8070; margin-bottom: .3rem; }
.footer-contact p { color: #D9CFBB; font-size: .92rem; }
.footer-contact .link-underline { margin-top: .6rem; align-self: flex-start; }
.footer .link-underline { color: #D9CFBB; }
.footer .link-underline:hover { color: var(--amber); }
.footer-disclaimer .link-underline { font-size: inherit; font-weight: inherit; }

.footer-bottom { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.6rem; font-size: .78rem; color: #8A8070; }
.footer-disclaimer { max-width: 62ch; }

@media (min-width: 720px) {
  .footer-main { flex-direction: row; justify-content: space-between; gap: 3rem; }
  .footer-id { flex: 1.1; }
  .footer-nav { flex: 1; flex-direction: column; gap: .7rem; }
  .footer-contact { flex: .9; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =============================================================
   19. Sticky mobile CTA bar
   ============================================================= */
.mobile-cta-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: rgba(246, 242, 233, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta-bar .btn { width: 100%; }
@media (min-width: 960px) { .mobile-cta-bar { display: none; } }
body.has-mobile-cta { padding-bottom: 4.5rem; }
@media (min-width: 960px) { body.has-mobile-cta { padding-bottom: 0; } }

/* =============================================================
   20. Reveal-on-scroll effect
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .95s var(--ease-soft), transform .95s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
