/* ═══════════════════════════════════════════════════════
   MENCOR · Clínica de Psiquiatria Mente & Comportamento
   Paleta derivada da logomarca: azuis celestes + cinza chumbo
   ═══════════════════════════════════════════════════════ */

:root {
  /* Paleta da logo */
  --navy-950: #16303f;   /* fundo de seções escuras */
  --navy-900: #1d3d50;
  --blue-800: #2e7bab;   /* azul principal (botões, links) */
  --blue-700: #3f97c1;   /* azul da faixa da logo */
  --blue-500: #5aa9d3;
  --blue-100: #dcedf6;
  --sky-500: #4d9fc7;
  --sky-300: #7fc0e0;    /* azul claro das fitas da logo */
  --steel-500: #7c8a94;
  --charcoal-800: #45484b; /* cinza chumbo das letras da logo */
  --mist-50: #f7fafc;
  --mist-100: #ebf3f8;
  --ink-900: #363c41;
  --ink-600: #5f6a72;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(23, 48, 60, 0.07);
  --shadow: 0 12px 40px rgba(23, 48, 60, 0.12);
  --shadow-lg: 0 24px 70px rgba(23, 48, 60, 0.18);

  --header-h: 92px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--mist-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal-800);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.18rem; font-weight: 600; }

h1 em, h2 em {
  font-style: italic;
  color: var(--blue-800);
  position: relative;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 100% - 3rem); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--mist-100); }
.section--dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(90, 169, 211, 0.28), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(127, 192, 224, 0.14), transparent 55%),
    var(--navy-950);
  color: #e6eef3;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark h2 em { color: var(--sky-300); }

/* ── Section heads ── */
.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-head p { margin-top: 1rem; color: var(--ink-600); font-size: 1.06rem; }
.section-head--light p { color: rgba(230, 238, 243, 0.85); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-800);
  background: var(--blue-100);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow--light { color: var(--sky-300); background: rgba(127, 192, 224, 0.14); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(46, 123, 171, 0.35);
}
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(46, 123, 171, 0.42); }

.btn--ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: rgba(46, 123, 171, 0.35);
}
.btn--ghost:hover { border-color: var(--blue-700); background: rgba(90, 169, 211, 0.08); transform: translateY(-2px); }

.btn--accent {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(63, 151, 193, 0.45);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(63, 151, 193, 0.55); }

/* ═══════════════ HEADER ═══════════════ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  height: 74px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo { display: inline-flex; align-items: center; }
.logo__img {
  height: 58px;
  width: auto;
  transition: height 0.35s ease;
}
.header.is-scrolled .logo__img { height: 46px; }
.logo__img--light {
  /* versão monocromática clara para fundos escuros */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: 0.2rem; list-style: none; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-600);
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--blue-800); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(46, 123, 171, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue-800);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.hero__blob--1 { width: 560px; height: 560px; top: -180px; right: -120px; background: var(--blue-100); }
.hero__blob--2 { width: 420px; height: 420px; bottom: -160px; left: -140px; background: #d9ecf7; }
.hero__blob--3 { width: 260px; height: 260px; top: 40%; left: 42%; background: rgba(90, 169, 211, 0.18); }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__lead {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink-600);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(46, 123, 171, 0.15);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-800);
  line-height: 1.1;
}
.hero__badges span {
  font-size: 0.82rem;
  color: var(--ink-600);
  max-width: 150px;
}

/* Arte do hero */
.hero__art { position: relative; }
.hero__illustration { width: 100%; max-width: 460px; margin-inline: auto; }

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.2rem;
  max-width: 260px;
}
.hero__card svg { width: 30px; height: 30px; color: var(--blue-700); flex-shrink: 0; }
.hero__card strong { display: block; font-size: 0.86rem; color: var(--charcoal-800); line-height: 1.3; }
.hero__card span { font-size: 0.76rem; color: var(--ink-600); }
.hero__card { top: 8%; left: -4%; }
.hero__card--2 { top: auto; bottom: 6%; left: auto; right: -2%; }
.hero__card--2 svg { color: var(--sky-500); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(46, 123, 171, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--blue-700);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0.2; }
}

/* Animações flutuantes */
.float-slow { animation: float 6s ease-in-out infinite; }
.float-slow-2 { animation: float 7s ease-in-out 1.2s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.twinkle circle { animation: twinkle 3s ease-in-out infinite; }
.twinkle circle:nth-child(2) { animation-delay: 1s; }
.twinkle circle:nth-child(3) { animation-delay: 2s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ═══════════════ A CLÍNICA ═══════════════ */
.clinic__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.clinic-card {
  flex: 1 1 240px;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 123, 171, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clinic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.clinic-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-100), #e8f3fa);
  color: var(--blue-800);
  margin-bottom: 1.2rem;
}
.clinic-card__icon svg { width: 26px; height: 26px; }
.clinic-card h3 { margin-bottom: 0.55rem; }
.clinic-card p { font-size: 0.92rem; color: var(--ink-600); }

.clinic__values { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.clinic__values blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--blue-800);
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  padding: 0 1rem;
}

/* ═══════════════ TRATAMENTOS ═══════════════ */
.treatments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-top-color: var(--tc, var(--blue-500));
}
.treatment-card:hover .treatment-card__icon { transform: scale(1.08) rotate(-4deg); }

.treatment-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tc, var(--blue-800));
  background: color-mix(in srgb, var(--tc, var(--blue-800)) 12%, white);
  margin-bottom: 1.1rem;
  transition: transform 0.3s ease;
}
.treatment-card__icon svg { width: 26px; height: 26px; }
.treatment-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.treatment-card p { font-size: 0.88rem; color: var(--ink-600); }

.treatments__note {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding: 1.2rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed rgba(46, 123, 171, 0.35);
}
.treatments__note svg { width: 24px; height: 24px; color: var(--blue-500); flex-shrink: 0; }
.treatments__note p { font-size: 0.94rem; color: var(--ink-600); }
.treatments__note a { color: var(--blue-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════ O MÉDICO ═══════════════ */
.doctor__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.doctor__portrait { position: relative; }
.doctor__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  margin-inline: auto;
}
.doctor__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.doctor__avatar { width: 100%; height: auto; }

.doctor__badge {
  position: absolute;
  bottom: -1.2rem;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 1.2rem;
}
.doctor__badge svg { width: 30px; height: 30px; color: var(--blue-700); }
.doctor__badge strong { display: block; font-size: 0.88rem; color: var(--charcoal-800); }
.doctor__badge span { font-size: 0.76rem; color: var(--ink-600); }

.doctor__content h2 { margin-bottom: 0.3rem; }
.doctor__role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 1.2rem;
}
.doctor__content > p:not(.doctor__role) { color: var(--ink-600); }

.doctor__list { margin: 1.6rem 0 2rem; display: grid; gap: 0.85rem; }
.doctor__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.doctor__list svg {
  width: 20px;
  height: 20px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.doctor__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ═══════════════ JORNADA ═══════════════ */
.journey__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.journey__step {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem 1.8rem;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.journey__step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(127, 192, 224, 0.45);
}

.journey__num {
  position: absolute;
  top: -1.1rem;
  left: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(63, 151, 193, 0.5);
}
.journey__step h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.journey__step p { font-size: 0.9rem; color: rgba(230, 238, 243, 0.8); }

.journey__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.journey__cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(230, 238, 243, 0.9);
  margin-bottom: 1.4rem;
}

/* ═══════════════ FAQ ═══════════════ */
.faq__list { display: grid; gap: 0.9rem; }

.faq__item {
  background: var(--white);
  border: 1px solid rgba(46, 123, 171, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq__item[open] { box-shadow: var(--shadow); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal-800);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg {
  width: 20px;
  height: 20px;
  color: var(--blue-500);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq__item[open] summary svg { transform: rotate(45deg); }

.faq__answer { padding: 0 1.5rem 1.4rem; }
.faq__answer p { font-size: 0.95rem; color: var(--ink-600); }

/* ═══════════════ LOCALIZAÇÃO ═══════════════ */
.location__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

.location__info { display: grid; gap: 1.2rem; align-content: start; }

.info-card {
  display: flex;
  gap: 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.info-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
}
.info-card__icon svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.info-card p { font-size: 0.92rem; color: var(--ink-600); }

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ═══════════════ CONTATO ═══════════════ */
.contact { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }

.contact__panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(90, 169, 211, 0.32), transparent 60%),
    radial-gradient(500px 300px at 0% 120%, rgba(127, 192, 224, 0.16), transparent 55%),
    var(--navy-950);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4rem);
  color: #e6eef3;
  box-shadow: var(--shadow-lg);
}
.contact__text h2 { color: var(--white); margin-bottom: 1rem; }
.contact__text h2 em { color: var(--sky-300); }
.contact__text > p { color: rgba(230, 238, 243, 0.85); max-width: 44ch; }

.contact__channels { display: grid; gap: 1rem; margin-top: 2rem; }
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.channel:hover { transform: translateX(6px); background: rgba(255, 255, 255, 0.12); border-color: rgba(127, 192, 224, 0.45); }
.channel__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(127, 192, 224, 0.16);
  color: var(--sky-300);
}
.channel__icon svg { width: 24px; height: 24px; }
.channel--whats .channel__icon { background: rgba(37, 211, 102, 0.16); color: #25d366; }
.channel small { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(230, 238, 243, 0.6); }
.channel strong { font-size: 1.05rem; color: var(--white); }

.contact__note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(230, 238, 243, 0.7);
  max-width: 46ch;
}
.contact__note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: var(--sky-300); }

/* Formulário */
.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
}
.contact__form h3 { margin-bottom: 1.4rem; font-size: 1.3rem; }

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal-800);
  margin-bottom: 0.4rem;
}
.form-field label span { font-weight: 400; color: var(--ink-600); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--mist-50);
  border: 1.5px solid rgba(46, 123, 171, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(90, 169, 211, 0.16);
}
.form-field input.is-invalid { border-color: #e76f51; box-shadow: 0 0 0 4px rgba(231, 111, 81, 0.14); }

.form-hint {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--ink-600);
  text-align: center;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--navy-950); color: rgba(230, 238, 243, 0.8); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer__brand .logo__img { height: 64px; }
.footer__brand p { margin-top: 1.2rem; font-size: 0.92rem; max-width: 34ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-300);
  margin-bottom: 1.1rem;
}

.footer__nav ul { display: grid; gap: 0.5rem; }
.footer__nav a { font-size: 0.92rem; transition: color 0.25s ease; }
.footer__nav a:hover { color: var(--sky-300); }

.footer__contact ul { display: grid; gap: 0.9rem; }
.footer__contact li { display: flex; gap: 0.7rem; font-size: 0.9rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.22rem; color: var(--sky-300); }
.footer__contact a:hover { color: var(--sky-300); }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.4rem 0; }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(230, 238, 243, 0.55);
}

/* ═══════════════ FLUTUANTES ═══════════════ */
.whats-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulseWhats 2.6s ease-in-out infinite;
}
.whats-float:hover { transform: scale(1.1); }
.whats-float svg { width: 30px; height: 30px; }
@keyframes pulseWhats {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 5.6rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue-800);
  border: 1px solid rgba(46, 123, 171, 0.2);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue-100); }
.to-top svg { width: 20px; height: 20px; }

/* ═══════════════ REVEAL (scroll) ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════ RESPONSIVO ═══════════════ */
@media (max-width: 1080px) {
  .treatments__grid, .journey__steps { grid-template-columns: repeat(2, 1fr); }
  .journey__steps { row-gap: 2.2rem; }
  .hero__card { left: 0; }
  .hero__card--2 { right: 0; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(340px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    background: var(--mist-50);
    box-shadow: var(--shadow-lg);
    padding: calc(var(--header-h) + 1rem) 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 95;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 0.3rem; width: 100%; }
  .nav__link { display: block; font-size: 1.05rem; padding: 0.6rem 0; }
  .nav__cta { margin-top: 1rem; width: 100%; }
  .nav-toggle { display: flex; z-index: 96; }

  .logo__img { height: 48px; }
  .header.is-scrolled .logo__img { height: 42px; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__art { max-width: 420px; margin-inline: auto; }
  .hero__scroll { display: none; }

  .doctor__inner { grid-template-columns: 1fr; }
  .doctor__portrait { max-width: 380px; margin-inline: auto; }
  .doctor__badge { right: 50%; transform: translateX(50%); width: max-content; }

  .location__grid, .contact__panel { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .treatments__grid, .journey__steps { grid-template-columns: 1fr; }
  .clinic-card { max-width: none; }
  .hero__badges { gap: 1.4rem; }
  .hero__badges strong { font-size: 1.6rem; }
  .hero__card { position: static; margin: 0.8rem auto 0; }
  .hero__card--2 { margin-top: 0.8rem; }
  .hero__art { display: flex; flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
}
