/* =============================================================
   NOVA DENTAL VIDRERES — styles.css
   Archetype: Editorial Light Cream (adapted for dental / health)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
@property --angle   { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg:        #f6f1e7;
  --bg-2:      #ebe2d1;
  --paper:     #ffffff;
  --ink:       #1c2420;
  --ink-soft:  #2b342f;
  --ink-mute:  #6e7a72;
  --accent:    #3d6e7a;   /* brand slate-teal, sampled from the logo */
  --accent-2:  #e08a4b;   /* warm apricot — CTA warmth */
  --accent-soft: rgba(61,110,122,.12);
  --accent2-soft: rgba(224,138,75,.16);
  --line:      rgba(28,36,32,.14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --radius: 20px;
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
/* Ambient background lights — global, very subtle, slow drift */
.ambient-lights {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.ambient-lights span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.4) 45%, rgba(255,255,255,0) 75%);
  filter: blur(55px);
  will-change: transform;
}
.ambient-lights span:nth-child(1) {
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  top: -18%; left: -14%;
  animation: driftA 90s ease-in-out infinite;
}
.ambient-lights span:nth-child(2) {
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  bottom: -16%; right: -10%;
  animation: driftB 110s ease-in-out infinite;
}
.ambient-lights span:nth-child(3) {
  width: 40vw; height: 40vw; max-width: 480px; max-height: 480px;
  top: 38%; left: 58%;
  animation: driftC 130s ease-in-out infinite;
}
@keyframes driftA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5vw, 4vh); } }
@keyframes driftB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4vw, -5vh); } }
@keyframes driftC { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3vw, 4vh); } }
@media (prefers-reduced-motion: reduce) {
  .ambient-lights span { animation-duration: 240s; }
}

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; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; color: var(--ink); }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  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 {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); margin-right: .5em; vertical-align: middle;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-style: italic; }
.section-lede { margin-top: .9rem; color: var(--ink-mute); font-size: 1.05rem; max-width: 46ch; }
.section-head.is-center .section-lede { margin-inline: auto; }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--accent); }
.italic { font-style: italic; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(28,36,32,.08), 0 1px 3px rgba(28,36,32,.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(28,36,32,.16), 0 8px 18px var(--accent-soft); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #2f5964; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(246,241,231,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo-full { height: 50px; width: auto; display: block; }
.footer-brand-link { margin-bottom: .2rem; }
.footer-logo-img { height: 52px; width: auto; }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .3rem 0; font-weight: 600; font-size: .95rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--accent); }

.nav-lang { display: flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.nav-lang a { padding: .25rem .5rem; border-radius: 6px; color: var(--ink-mute); }
.nav-lang a.is-active { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; gap: 5px; width: 26px; padding: 8px 0;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-soft), opacity .35s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.9rem; font-style: italic; }
.nav-mobile .nav-lang { font-family: var(--sans); font-size: .95rem; margin-top: 1rem; }

/* Cards */
.card {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.9rem;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-color .3s;
  position: relative; isolation: isolate;
}
.has-tilt:hover { transition-duration: .15s; }
.card:hover {
  border-color: transparent;
  box-shadow: 0 46px 90px -30px var(--accent-soft), 0 20px 40px -18px rgba(28,36,32,.22);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(220px circle at var(--mx) var(--my), var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem;
  transform: translateZ(30px);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; font-style: italic; margin-bottom: .5rem; transform: translateZ(20px); }
.card p { color: var(--ink-mute); font-size: .95rem; transform: translateZ(10px); }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  font-size: .85rem; font-weight: 700; color: var(--accent);
}

/* Value prop strip */
.values {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value-item { display: flex; flex-direction: column; gap: .7rem; }
.value-item .card-icon { margin-bottom: 0; }
.value-item h3 { font-size: 1.05rem; font-style: normal; font-family: var(--sans); font-weight: 700; }
.value-item p { font-size: .88rem; }

/* Avatars (team placeholders — no invented names, photos are provisional) */
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent2-soft));
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent);
  margin-bottom: 1.1rem;
  overflow: clip; margin-inline: auto;
}
.avatar svg { width: 38px; height: 38px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.field { position: relative; margin-bottom: 1.3rem; }
.field input, .field textarea {
  width: 100%; padding: 1.3rem 1rem .55rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: inherit; font: inherit; font-size: .98rem;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.cta-form { transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; height: 0; overflow: hidden; }
.cta-success {
  display: none; text-align: center; padding: 2.4rem 1.5rem; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.cta-success.is-visible { display: block; }
.cta-submit { position: relative; width: 100%; }
.cta-submit .btn-label { transition: opacity .2s; }
.cta-submit.is-sending .btn-label { opacity: 0; }
.cta-submit-spinner {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.cta-submit.is-sending .cta-submit-spinner { opacity: 1; }
.cta-submit-spinner::after {
  content: ""; width: 18px; height: 18px; border: 2px solid rgba(246,241,231,.4);
  border-top-color: var(--bg); border-radius: 50%; animation: spin .9s linear infinite;
}

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

/* Hero */
.hero {
  position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 8vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: clip; isolation: isolate;
}
.hero-halo {
  position: absolute; inset: -20% -10% -30% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 40% at var(--mesh-x) var(--mesh-y), var(--accent-soft), transparent 70%),
    radial-gradient(35% 30% at 80% 20%, var(--accent2-soft), transparent 70%);
  filter: blur(60px);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { --mesh-x: 25%; --mesh-y: 35%; }
  50%      { --mesh-x: 55%; --mesh-y: 55%; }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-kicker { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.hero-sub { margin-top: 1.2rem; font-size: 1.12rem; color: var(--ink-mute); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; }
.hero-meta-item { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-mute); }
.hero-meta-item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-art-blob {
  position: absolute; inset: 6% 8%; z-index: -1;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(150deg, var(--accent-soft), var(--accent2-soft));
  animation: blobMorph 14s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
  50%      { border-radius: 52% 48% 39% 61% / 55% 40% 60% 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-halo, .hero-art-blob { animation-duration: 45s; }
}

.hero-photo {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: clip;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(28,36,32,.28);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@keyframes ambientZoom {
  0%, 100% { transform: scale(1.04); }
  50%      { transform: scale(1.12); }
}
.ambient-zoom { animation: ambientZoom 22s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ambient-zoom { animation-duration: 50s; } }

.hero-banner-img {
  width: 100%; aspect-ratio: 21/8; border-radius: var(--radius); overflow: clip;
  border: 1px solid var(--line); margin-top: 2rem;
  box-shadow: 0 30px 60px -30px rgba(28,36,32,.25);
}
.hero-banner-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .hero-banner-img { aspect-ratio: 4/3; } }

.team-photo-frame {
  width: 100%; aspect-ratio: 3/2; border-radius: var(--radius); overflow: clip;
  border: 1px solid var(--line); margin-top: 2.2rem;
  box-shadow: 0 40px 80px -30px rgba(28,36,32,.28);
}
.team-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .team-photo-frame { aspect-ratio: 4/3; } }

.team-photo-figure {
  border-radius: var(--radius); overflow: clip; border: 1px solid var(--line);
  aspect-ratio: 4/3; box-shadow: 0 30px 60px -28px rgba(28,36,32,.25);
}
.team-photo-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Treatments */
.treatments-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 640px) { .treatments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .treatments-grid { grid-template-columns: repeat(3, 1fr); } }

/* About / narrative */
.narrative { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .narrative { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.narrative-figure {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--paper), var(--bg-2));
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: clip;
}
.narrative-figure svg { width: 46%; color: var(--accent); }
.narrative-figure img { width: 100%; height: 100%; object-fit: cover; }
.narrative-num { font-family: var(--serif); font-style: italic; font-size: 3.4rem; color: var(--accent); line-height: 1; }
.narrative-list { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
.narrative-list li { display: flex; gap: 1rem; }
.narrative-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.narrative-list strong { display: block; margin-bottom: .2rem; font-family: var(--sans); }
.narrative-list span { color: var(--ink-mute); font-size: .92rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { text-align: center; }
.team-note {
  margin-top: 2.5rem; text-align: center; font-style: italic; font-family: var(--serif);
  font-size: 1.2rem; color: var(--ink-mute); max-width: 46ch; margin-inline: auto;
}

/* Location / contact strip */
.location {
  background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 960px) { .location { grid-template-columns: 1fr 1fr; } }
.location h2 { color: var(--bg); }
.location-list { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.location-list li { display: flex; gap: 1rem; align-items: flex-start; }
.location-list svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; margin-top: 2px; }
.location-list a, .location-list span { color: rgba(246,241,231,.85); }
.location-list a:hover { color: var(--bg); }
.location-map { border-radius: 14px; overflow: clip; border: 1px solid rgba(246,241,231,.16); min-height: 260px; }
.location-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }
.location .btn-primary { background: var(--accent-2); color: var(--ink); }
.location .btn-primary:hover { background: #ec9a5f; }

/* Final CTA */
.cta-band {
  text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(150deg, var(--accent-soft), var(--accent2-soft));
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p { margin-top: .8rem; color: var(--ink-mute); max-width: 46ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.8rem; }

/* Footer */
.footer { padding-block: 3.5rem 2.5rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { margin-top: .8rem; color: var(--ink-mute); font-size: .92rem; max-width: 32ch; }
.footer h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .9rem; font-style: normal; }
.footer-links { display: grid; gap: .65rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: var(--ink-mute);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* WhatsApp floating button — bare icon, no circle (avoids the tail glyph reading off-center inside a frame) */
.whatsapp-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  transition: transform .5s var(--ease-soft);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg {
  width: 52px; height: 52px; color: var(--accent);
  filter: drop-shadow(0 10px 18px rgba(28,36,32,.28));
}
.has-magnetic { display: inline-flex; }
.magnetic-inner { display: inline-flex; will-change: transform; transition: transform .8s var(--ease-soft); }

/* Custom cursor — single dot, 1:1 tracking, no lag, no ring */
.cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 8px; height: 8px; margin: -4px; border-radius: 50%;
  background: var(--accent);
  display: none; opacity: 0;
  transition: opacity .18s var(--ease-out), width .15s var(--ease-out), height .15s var(--ease-out), margin .15s var(--ease-out);
}
.cursor-dot.is-ready { opacity: .85; }
@media (hover: hover) and (pointer: fine) { .cursor-dot { display: block; } }
.cursor-dot.is-interactive {
  width: 13px; height: 13px; margin: -6.5px;
  opacity: .55;
}
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

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

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: rgba(28,36,32,.06); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear; }

/* =============================================================
   7. Effects / keyframes
   ============================================================= */
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* =============================================================
   8. Responsive helpers already inlined per component above
   ============================================================= */

/* =============================================================
   9. Reduced motion — ONLY intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  /* keep hovers, tilts, fades — just slow the ambient loops (handled above) */
}

/* Credits page (kept minimal, no photos used but page may reference future assets) */
.page-simple { padding-top: calc(var(--nav-h) + 3rem); }
.page-simple .container { max-width: 760px; }

/* Illustration SVG color hooks */
.tooth-path { stroke: var(--accent); }
.spark-path { stroke: var(--accent-2); }
.tooth-fill { fill: var(--accent-soft); stroke: none; }

/* =============================================================
   10. Treatment detail pages (shared template)
   ============================================================= */

/* Hero signature icon (large, per-treatment) */
.tx-hero-icon {
  position: relative; width: clamp(160px, 22vw, 240px); aspect-ratio: 1;
  margin-inline: auto;
}
.tx-hero-icon .hero-art-blob { inset: -12%; }
.tx-hero-icon svg { position: relative; width: 100%; height: 100%; }

/* Lede / intro block */
.tx-lede {
  max-width: 62ch; margin-inline: auto; text-align: center;
}
.tx-lede .drop-line {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink); margin-bottom: 1rem;
}
.tx-lede p { color: var(--ink-mute); font-size: 1.05rem; }

/* Section headings reused inside treatment pages */
.tx-section-head { max-width: 640px; margin-bottom: 2.2rem; }
.tx-section-head.is-center { margin-inline: auto; text-align: center; }

/* Numbered process steps */
.process-list {
  display: grid; gap: 0; counter-reset: step; position: relative;
  max-width: 720px; margin-inline: auto;
}
.process-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem;
  padding-bottom: 2.4rem; position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0;
  width: 1px; background: var(--line);
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  position: relative; z-index: 1;
}
.process-body h3 { font-size: 1.2rem; font-style: italic; margin-bottom: .4rem; }
.process-body p { color: var(--ink-mute); font-size: .96rem; }

/* Technology / diagnosis callout */
.tx-tech {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2.2rem;
}
.tx-tech-icon {
  width: 60px; height: 60px; border-radius: 16px; flex: none;
  background: var(--paper); color: var(--accent);
  display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(28,36,32,.2);
}
.tx-tech-icon svg { width: 30px; height: 30px; }
.tx-tech-body { flex: 1 1 260px; }
.tx-tech-body h3 { font-size: 1.15rem; font-style: italic; margin-bottom: .35rem; }
.tx-tech-body p { color: var(--ink-mute); font-size: .95rem; margin: 0; }

/* Editorial pull-quote */
.tx-quote {
  max-width: 54ch; margin-inline: auto; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--ink);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.35;
}
.tx-quote span { color: var(--accent); }

/* Type / option cards — slim variant of .card for "tipus de tractament" grids */
.tx-type-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem;
}
.tx-type-card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.tx-type-card h3 { font-size: 1.15rem; font-style: italic; margin-bottom: .5rem; }
.tx-type-card p { color: var(--ink-mute); font-size: .93rem; }

/* Age / audience tabs-like row (ortodoncia) */
.tx-audience-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .tx-audience-grid { grid-template-columns: repeat(3, 1fr); } }

/* Divider breathing room between stacked modules on treatment pages */
.tx-module + .tx-module { margin-top: 0; }
.tx-module { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.tx-module.is-tinted { background: var(--bg-2); border-radius: calc(var(--radius) + 8px); }

/* Quick-facts chip strip — right under the hero, breaks the wall-of-text immediately */
.quick-facts {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: 2.2rem;
}
.quick-facts.is-left { justify-content: flex-start; }
.quick-fact {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .65rem 1.1rem; font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: 0 8px 20px -14px rgba(28,36,32,.3);
}
.quick-fact svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Intro split — pairs the lede paragraph with a large signature icon (image+text rhythm) */
.tx-intro-split {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .tx-intro-split { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.tx-intro-split.is-reversed { direction: rtl; }
.tx-intro-split.is-reversed > * { direction: ltr; }
.tx-intro-figure {
  position: relative; aspect-ratio: 1; max-width: 340px; margin-inline: auto;
}
.tx-intro-figure .hero-art-blob { inset: -8%; }
.tx-intro-figure svg { position: relative; width: 100%; height: 100%; }

/* FAQ accordion — native details/summary, no JS required */
.faq-list { display: grid; gap: 1rem; max-width: 760px; margin-inline: auto; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: .3rem 1.5rem; overflow: clip;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; color: var(--accent);
  transition: transform .3s var(--ease-soft); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.3rem; margin-top: -.4rem; color: var(--ink-mute); font-size: .95rem; max-width: 65ch; }

/* Hero photo variant sized for treatment pages (slightly shorter than homepage) */
.tx-hero-photo { aspect-ratio: 4/3; }
@media (min-width: 960px) { .tx-hero-photo { aspect-ratio: 1/1; } }
