/* ============================================================
   Dt. Yunus Doğan · Estetik Diş Kliniği
   Palette: warm white base · locked emerald/teal accent
   Type: Cormorant Garamond (display) + Manrope (UI/body)
   ============================================================ */

:root {
  --bg:        #FCFCFA;
  --bg-alt:    #F5F7F3;
  --surface:   #FFFFFF;
  --ink:       #16211C;
  --ink-soft:  #3C4A44;
  --muted:     #6B7A72;
  --line:      rgba(22, 33, 28, 0.10);
  --line-2:    rgba(22, 33, 28, 0.06);

  --accent:    #0E7A63;   /* primary emerald-teal */
  --accent-2:  #14B08A;   /* brighter interactive  */
  --accent-ink:#083A2F;   /* deep, for text-on-tint */
  --accent-wash:#EAF5F0;  /* faint tint background */
  --gold:      #E0A93B;   /* stars only (semantic)  */

  --shadow-sm: 0 2px 10px rgba(16, 40, 32, 0.05);
  --shadow-md: 0 18px 44px rgba(14, 60, 48, 0.10);
  --shadow-lg: 0 34px 80px rgba(12, 52, 42, 0.16);

  --r:      18px;   /* cards   */
  --r-sm:   12px;   /* inputs  */
  --maxw:   1200px;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body:    "Manrope", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; padding: 0; }

/* ---------- shared type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--ink); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.accent-word em, .accent-word { color: var(--accent); font-style: italic; }

.section-head { max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.section-head--left { margin-left: 0; margin-right: auto; text-align: left; }

section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 3rem); }
:where(section[id], #top) { scroll-margin-top: 88px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
}
.btn i { font-size: 1.1em; transition: transform 0.3s var(--ease); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 122, 99, 0.32);
}
.btn--primary:hover { box-shadow: 0 18px 40px rgba(14, 122, 99, 0.42); }
.btn--primary:hover i.ph-arrow-right { transform: translateX(4px); }
.btn--primary:active { transform: scale(0.97); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 70px; padding: 0 clamp(1.2rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
}
.nav.is-scrolled {
  background: rgba(252, 252, 250, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(16, 40, 32, 0.05);
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(14, 122, 99, 0.28);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.brand__text em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links > a:not(.nav__cta) {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 0.2rem 0;
}
.nav__links > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav__links > a:not(.nav__cta):hover { color: var(--ink); }
.nav__links > a:not(.nav__cta):hover::after { width: 100%; }
.nav__toggle { display: none; font-size: 1.6rem; color: var(--ink); }
.nav__cta.btn {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: 0 8px 20px rgba(14, 122, 99, 0.28);
}
.nav__cta.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(14, 122, 99, 0.4); }

/* ============================================================
   CINEMATIC INTRO  (scroll-driven smile reveal)
   ============================================================ */
.intro { position: relative; height: 230vh; background: var(--bg); }
.intro__stage {
  position: sticky; top: 0;
  height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden;
  --p: 0;   /* scroll progress 0 -> 1, set by JS */
}
.intro__glow {
  position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 176, 138, 0.30), rgba(14, 122, 99, 0.10) 45%, transparent 70%);
  filter: blur(10px);
  transform: scale(calc(0.6 + var(--p) * 1.6));
  opacity: calc(0.5 + var(--p) * 0.5);
}

.smile {
  position: relative;
  width: min(72vmin, 348px);
  height: min(92vmin, 470px);
  display: grid; place-items: center;
  opacity: calc(1 - max(0, (var(--p) - 0.86)) * 6);
  will-change: opacity;
}
/* portrait zooms toward the smile as you scroll */
.portrait {
  position: relative;
  width: 100%; aspect-ratio: 3 / 4;
  border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(calc(0.9 + var(--p) * 0.24)) translateY(calc(var(--p) * -6px));
  will-change: transform;
}
.portrait__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  transform-origin: 76% 27%;           /* dişlerin olduğu nokta */
  transform: scale(calc(1.02 + var(--p) * 0.5));   /* kaydırdıkça gülüşe zoom */
  filter: saturate(calc(0.92 + var(--p) * 0.35)) brightness(calc(0.96 + var(--p) * 0.12)) contrast(1.03);
  will-change: transform, filter;
}
.portrait__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 18%, transparent 52%, rgba(8, 40, 32, 0.30));
  box-shadow: inset 0 0 60px rgba(8, 40, 32, 0.16);
}
/* camera-flash shine sweep = parıltı */
.portrait__shine {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-170%) skewX(-14deg);
  opacity: 0; mix-blend-mode: screen; pointer-events: none;
}
.intro.is-live .portrait__shine { animation: portraitShine 3.6s var(--ease) infinite; }
@keyframes portraitShine {
  0%   { transform: translateX(-170%) skewX(-14deg); opacity: 0; }
  12%  { opacity: 1; }
  46%  { transform: translateX(440%) skewX(-14deg); opacity: 0; }
  100% { transform: translateX(440%) skewX(-14deg); opacity: 0; }
}

/* sparkles glint over the teeth as the smile arrives */
.sparkle {
  position: absolute; color: #fff; font-size: 1.7rem; z-index: 3;
  filter: drop-shadow(0 0 10px rgba(20, 176, 138, 0.95));
  opacity: calc(clamp(0, (var(--p) - 0.4) * 5, 1));
  transform: scale(calc(0.3 + clamp(0, (var(--p) - 0.4) * 5, 1) * 0.9));
}
.sparkle--1 { top: 25%; left: 74%; font-size: 2rem; }
.sparkle--2 { top: 19%; left: 85%; font-size: 1.15rem; color: var(--accent-2); }
.sparkle--3 { top: 33%; left: 66%; font-size: 1rem; }
.sparkle--4 { top: 30%; left: 84%; font-size: 1.3rem; color: var(--accent-2); }
.intro.is-live .sparkle { animation: twinkle 2.4s var(--ease) infinite; }
.intro.is-live .sparkle--2 { animation-delay: 0.4s; }
.intro.is-live .sparkle--3 { animation-delay: 0.8s; }
.intro.is-live .sparkle--4 { animation-delay: 1.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.intro__caption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 9vh; text-align: center;
  pointer-events: none;
}
.intro__word {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(2.2rem, 7vw, 4.6rem); color: var(--ink);
  text-shadow: 0 2px 30px var(--bg);
  opacity: calc(1 - var(--p) * 2.4);
  transform: translateY(calc(var(--p) * -22px));
}
.intro__hint {
  position: absolute; bottom: 8%; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  opacity: calc(1 - var(--p) * 3);
}
.intro__hint i { font-size: 1.2rem; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(5rem, 8vw, 6.5rem); }
.hero__aura {
  position: absolute; z-index: 0; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 176, 138, 0.14), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  margin: 0.4rem 0 1.5rem;
}
.hero__title span { display: block; }
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 42ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--accent-wash), #fff);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px; padding: 0.85rem 1.05rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.hero__badge-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 1px; }
.hero__badge strong { font-family: var(--f-body); font-size: 0.9rem; }
.hero__badge em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.hero__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-sm); color: var(--ink);
}
.hero__chip i { color: var(--accent); }
.hero__chip--1 { top: 8%; right: -4%; animation: floaty 5s var(--ease) infinite; }
.hero__chip--2 { bottom: 22%; right: -6%; animation: floaty 5s var(--ease) 1.5s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.15rem 0; overflow: hidden; background: var(--bg-alt);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.2rem; white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--f-display); font-style: italic; font-size: 1.55rem; color: var(--ink);
}
.marquee__track i { color: var(--accent); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.stats__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { text-align: center; padding: 0.5rem 1rem; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line);
}
.stat__num {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--accent); line-height: 1;
}
.stat__label { font-size: 0.86rem; color: var(--muted); letter-spacing: 0.02em; }

/* ============================================================
   SERVICES / BENTO
   ============================================================ */
.services { background: var(--bg-alt); }

.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent); font-size: 1.7rem; margin-bottom: 0.4rem;
}

/* featured banner */
.feature-banner {
  max-width: var(--maxw); margin: 0 auto 1.2rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  background: linear-gradient(140deg, var(--accent), var(--accent-ink));
  color: #fff; border-radius: var(--r); overflow: hidden; position: relative;
}
.feature-banner__text {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  display: flex; flex-direction: column; justify-content: center; gap: 0.55rem;
}
.feature-banner__text .card__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.feature-banner__text h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature-banner__text p { color: rgba(255, 255, 255, 0.85); max-width: 42ch; }
.feature-banner__media { position: relative; min-height: 230px; }
.feature-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__link {
  margin-top: 0.7rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: #fff;
}
.card__link i { transition: transform 0.3s var(--ease); }
.feature-banner:hover .card__link i { transform: translateX(5px); }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.spotlight:hover::before { opacity: 1; }

/* uniform service grid */
.service-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.scard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.scard h3 { font-size: 1.2rem; }
.scard p { font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   DOCTOR
   ============================================================ */
.doctor__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.doctor__photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--accent-wash); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__sig {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--f-display); font-style: italic; font-size: 1.6rem; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.doctor__lead { font-size: 1.1rem; color: var(--ink-soft); margin: 1rem 0 1.5rem; max-width: 52ch; }
.doctor__points { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
.doctor__points li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; }
.doctor__points i { color: var(--accent); font-size: 1.35rem; flex-shrink: 0; }
.doctor__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--bg-alt); }
.gallery__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1.1rem;
}
.gallery__item { border-radius: var(--r); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ============================================================
   PROCESS
   ============================================================ */
.process__list {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.process__list li { padding-top: 1.5rem; border-top: 2px solid var(--line); }
.process__no {
  font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: var(--accent);
  display: block; line-height: 1; margin-bottom: 0.7rem;
}
.process__list h3 { margin-bottom: 0.4rem; }
.process__list p { font-size: 0.94rem; color: var(--muted); }

/* ============================================================
   REVIEWS
   ============================================================ */
.rating-pill {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem;
  padding: 0.5rem 1.05rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.9rem; color: var(--ink);
}
.rating-pill i { color: var(--gold); }
.rating-pill strong { color: var(--accent); }
.reviews__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.review__stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }
.review p { font-family: var(--f-display); font-style: italic; font-size: 1.28rem; line-height: 1.4; color: var(--ink); }
.review footer { margin-top: auto; }
.review footer strong { display: block; font-family: var(--f-body); font-size: 0.95rem; }
.review footer span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0.2rem; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: 1.4rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--accent); font-size: 1.3rem; transition: transform 0.35s var(--ease); flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(180deg); }
.faq__item p { padding: 0 0.2rem 1.4rem; color: var(--ink-soft); max-width: 68ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--bg), var(--accent-wash)); }
.contact__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__lead { font-size: 1.08rem; color: var(--ink-soft); margin: 0.8rem 0 2rem; }
.contact__list { display: grid; gap: 1.15rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list i {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface); color: var(--accent);
  font-size: 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.contact__list span { display: block; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-weight: 600; color: var(--ink); }
.contact__list a:hover { color: var(--accent); }
.contact__list a[data-todo] { cursor: default; }

.contact__form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-md);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.85rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA7A0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 176, 138, 0.16);
}
.field textarea { resize: vertical; }
.field__error { color: #C0392B; font-size: 0.78rem; display: none; }
.field.is-invalid input { border-color: #C0392B; }
.field.is-invalid .field__error { display: block; }
.contact__note { font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.contact__note.ok { color: var(--accent); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 3rem) 2rem; }
.footer__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.footer__brand strong { font-family: var(--f-display); font-size: 1.4rem; color: #fff; display: block; }
.footer__brand p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__links a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); font-size: 1.3rem; color: #fff; transition: background 0.3s;
}
.footer__social a:hover { background: var(--accent); }
.footer__base {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.55);
}

/* floating whatsapp */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 1.9rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; order: -1; }
  .hero__chip--1 { right: 2%; }
  .hero__chip--2 { right: 0; }
  .doctor__grid { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .card--feature h3 { font-size: 1.7rem; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(252, 252, 250, 0.97); backdrop-filter: blur(16px);
    padding: 0.5rem 1.2rem 1.4rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform 0.4s var(--ease);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open { transform: none; }
  .nav__links > a:not(.nav__cta) { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--line-2); }
  .nav__cta { margin-top: 0.8rem; justify-content: center; }
  .nav__toggle { display: block; }

  .hero__chip { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .stat:nth-child(3)::before, .stat + .stat::before { display: none; }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner__media { min-height: 180px; order: -1; }

  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }

  .process__list, .reviews__grid { grid-template-columns: 1fr; }
  .footer__base { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  .service-grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .hero__chip { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { height: 100dvh; }
  .intro__stage { position: relative; }
  .portrait { transform: scale(1); }
  .portrait__img { transform: scale(1.05); filter: none; }
  .sparkle { opacity: 1; transform: scale(1); }
  .intro__word { opacity: 1; }
  .intro__hint { display: none; }
}
