/* =================================================================
   DR. PEDRO IZIDORO — Landing Page
   Paleta: navy profundo + dourado · Tipografia editorial
   Mobile-first · Alta conversão
================================================================== */

:root {
  /* Brand */
  --navy-900: #07171F;
  --navy-800: #0A1F2A;
  --navy-700: #0E2A38;
  --navy-600: #123544;
  --navy-line: rgba(201, 162, 75, 0.18);

  --gold-100: #F2E2BC;
  --gold-300: #E8C879;
  --gold-400: #D6B25E;
  --gold-500: #C9A24B;
  --gold-600: #A9853A;
  --gold-grad: linear-gradient(135deg, #B8923F 0%, #EBCE86 45%, #C9A24B 100%);

  --cream-50: #FBF8F1;
  --cream-100: #F5F0E6;
  --cream-200: #ECE4D4;

  --ink-900: #11212A;
  --ink-700: #2C3B43;
  --ink-500: #5A6A72;

  --wa-green: #25D366;
  --wa-green-d: #1ebe5a;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 50px -20px rgba(7, 23, 31, 0.45);
  --shadow-gold: 0 14px 40px -14px rgba(201, 162, 75, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(54px, 8.5vw, 104px); }

/* --------------------------- Typography -------------------------- */
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.section__title em { color: var(--gold-600); }

.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__lead {
  margin-top: 18px;
  color: var(--ink-500);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 20px;
}
.eyebrow--center { justify-content: center; display: flex; }
.eyebrow--light { color: var(--gold-300); }
.eyebrow__line { width: 34px; height: 1px; background: currentColor; opacity: 0.6; }

/* ----------------------------- Buttons --------------------------- */
.btn {
  --btn-py: 15px;
  --btn-px: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
  text-align: center;
  line-height: 1.1;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: var(--gold-grad);
  background-size: 180% 180%;
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 50px -14px rgba(201, 162, 75, 0.7); }

.btn--green { background: var(--wa-green); color: #fff; box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.6); }
.btn--green:hover { background: var(--wa-green-d); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink-700);
}
.hero .btn--ghost { color: var(--cream-100); border-color: rgba(245, 240, 230, 0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--gold-500); color: var(--gold-400); }
.hero .btn--ghost:hover { color: var(--gold-300); border-color: var(--gold-400); }

.btn--sm { --btn-py: 11px; --btn-px: 20px; font-size: 0.88rem; }
.btn--lg { --btn-py: 17px; --btn-px: 34px; font-size: 1.04rem; }
.btn--xl { --btn-py: 20px; --btn-px: 42px; font-size: 1.12rem; }

.ico-wa { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* ------------------------------ Hero ----------------------------- */
/* Estilo "Linktree": foto nítida no topo, fade suave para o navy,
   conteúdo numa área sólida e 100% legível. */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--cream-50);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* brilho dourado sutil de fundo */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(90% 55% at 50% 92%, rgba(201,162,75,0.10), transparent 70%);
  pointer-events: none;
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  height: clamp(330px, 56svh, 600px);
  z-index: 0;
}
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
  filter: contrast(1.05) brightness(1.04);
}
/* fade da foto para o fundo navy */
.hero__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 30%, rgba(7,23,31,0.35) 62%, var(--navy-900) 99%),
    radial-gradient(120% 80% at 50% 0%, transparent 60%, rgba(7,23,31,0.45));
}
.hero--nophoto .hero__photo-wrap {
  background: radial-gradient(110% 90% at 50% 15%, var(--navy-600), var(--navy-900));
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-top: clamp(-90px, -13vw, -64px); /* conteúdo sobe sobre o fade */
  padding-bottom: clamp(56px, 10vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .eyebrow {
  color: var(--gold-300); margin-bottom: 18px;
  font-size: clamp(0.66rem, 2.3vw, 0.78rem);
  letter-spacing: clamp(0.1em, 0.5vw, 0.24em);
  gap: 10px;
}
.hero .eyebrow .eyebrow__line { width: clamp(20px, 5vw, 34px); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 11vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero__title em { color: var(--gold-300); font-weight: 400; }
.hero__sub {
  font-size: clamp(1.02rem, 2.7vw, 1.2rem);
  color: rgba(245, 240, 230, 0.82);
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 44px; width: 100%; }
.hero__cta .btn { flex: 1 1 240px; max-width: 320px; }

.hero__trust {
  list-style: none; padding: 26px 0 0; margin: 0; width: 100%;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  border-top: 1px solid var(--navy-line);
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-size: 0.96rem; color: var(--gold-100); font-weight: 600; }
.hero__trust span { font-size: 0.82rem; color: rgba(245,240,230,0.58); }

/* ---------------------------- Services --------------------------- */
.services { background: var(--cream-50); position: relative; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: 14px;
  padding: 22px 20px 18px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -24px rgba(7,23,31,0.4); border-color: var(--gold-300); }

.card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em; margin-bottom: 6px; padding-right: 70px; }
.card:not(.card--feature) .card__title { padding-right: 0; }
.card__text { color: var(--ink-500); font-size: 0.88rem; line-height: 1.55; margin-bottom: 13px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.01em; color: var(--gold-600); transition: gap 0.3s, color 0.3s; }
.card__link span { transition: transform 0.3s var(--ease); }
.card__link:hover { color: var(--gold-500); }
.card__link:hover span { transform: translateX(4px); }

/* destaque: tom quente discreto + selo dourado (sem bloco escuro) */
.card--feature {
  background: linear-gradient(165deg, #fff 0%, var(--cream-100) 100%);
  border-color: var(--gold-300);
}
.card__tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-600); background: rgba(201,162,75,0.12);
  border: 1px solid rgba(201,162,75,0.35);
  padding: 4px 10px; border-radius: 100px;
}
.card--cta {
  background: var(--navy-900);
  border-color: var(--navy-700);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 4px;
}
.card--cta .card__title { color: #fff; font-size: 1.3rem; }
.card--cta .card__text { color: rgba(245,240,230,0.7); }
.card--cta .btn { margin-top: 8px; --btn-py: 12px; --btn-px: 22px; font-size: 0.9rem; }

/* ----------------------------- About ----------------------------- */
.about { background: linear-gradient(180deg, var(--cream-50), var(--cream-100)); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.about__media--nophoto { aspect-ratio: 4/5; background: radial-gradient(120% 100% at 70% 20%, var(--navy-600), var(--navy-900)); }
.about__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(7,23,31,0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--navy-line); border-radius: var(--radius-sm);
  padding: 12px 18px; display: flex; flex-direction: column;
}
.about__badge strong { font-family: var(--font-display); color: var(--gold-300); font-size: 1.1rem; }
.about__badge span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,230,0.7); }

/* mobile: conteúdo centralizado (como na hero), mesma formatação da seção Tratamentos */
.about__content { text-align: center; }
.about__content .eyebrow { justify-content: center; }
.about__text {
  margin: 18px auto 28px;
  max-width: 46ch;
  color: var(--ink-500);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.about__features {
  list-style: none; padding: 0; margin: 4px 0 30px;
  display: grid; gap: 10px;
}
.about__features li {
  display: flex; align-items: center; gap: 11px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 500; font-size: 0.95rem; color: var(--ink-900);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.about__features li:hover { border-color: var(--gold-300); box-shadow: 0 12px 28px -22px rgba(7,23,31,0.4); transform: translateY(-2px); }
.about__features svg {
  width: 17px; height: 17px; flex-shrink: 0; color: var(--navy-800);
  background: var(--gold-grad); border-radius: 6px; padding: 4px; box-sizing: content-box;
}

/* -------------------------- Testimonials ------------------------- */
.testimonials { background: var(--cream-100); overflow: hidden; }

/* carrossel */
.testi-carousel { margin-top: clamp(34px, 5vw, 54px); }
.testi-track {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--pad-x);
  padding: 6px var(--pad-x) 22px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 4px; border-radius: 8px; }

.testi {
  scroll-snap-align: start;
  flex: 0 0 84%;
  max-width: 384px;
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: 16px;
  padding: 26px 26px 28px;
  box-shadow: 0 1px 2px rgba(7,23,31,0.04), 0 16px 40px -32px rgba(7,23,31,0.5);
  display: flex; flex-direction: column; gap: 16px;
}
.testi__head { display: flex; align-items: center; gap: 13px; }
.testi__avatar {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
}
.testi__avatar::before {
  content: attr(data-initials);
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-300); letter-spacing: 0.02em;
}
.testi__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testi__who { display: flex; flex-direction: column; line-height: 1.3; }
.testi__who strong { font-weight: 600; color: var(--ink-900); font-size: 1rem; }
.testi__who span { font-size: 0.82rem; color: var(--ink-500); }
.testi__stars { color: var(--gold-500); letter-spacing: 2px; font-size: 0.88rem; }
.testi blockquote {
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.96rem; line-height: 1.65; color: var(--ink-700);
  margin: 0;
}

/* controles — apenas pontinhos, centralizados */
.testi-controls { display: flex; justify-content: center; margin-top: 8px; }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--cream-200); cursor: pointer; transition: all 0.35s var(--ease);
}
.testi-dots button:hover { background: var(--gold-300); }
.testi-dots button.is-active { background: var(--gold-grad); width: 26px; border-radius: 5px; }

/* --------------------------- Location ---------------------------- */
.location { background: var(--cream-50); }
.location__inner { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 56px); align-items: center; }

/* mobile: mesmo padrão das outras seções (centralizado, lead consistente) */
.location__text { text-align: center; }
.location__text .eyebrow { justify-content: center; }
.location__lead {
  margin: 18px auto 24px;
  max-width: 46ch;
  color: var(--ink-500);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}
.location__address {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 auto 28px;
  text-align: left;
  font-weight: 400; font-size: 0.9rem; color: var(--ink-500); line-height: 1.45;
}
.location__address svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-500); }
.location__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 11;
}
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.02); }

/* --------------------------- Final CTA --------------------------- */
.final-cta { position: relative; color: var(--cream-50); text-align: center; overflow: hidden; isolation: isolate; }
.final-cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 50% 0%, var(--navy-700) 0%, var(--navy-900) 60%),
    var(--navy-900);
}
.final-cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(201,162,75,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
}
.final-cta__inner { max-width: 720px; margin-inline: auto; }
.final-cta__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 7vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; }
.final-cta__title em { color: var(--gold-300); font-weight: 400; }
.final-cta__sub { color: rgba(245,240,230,0.8); font-size: clamp(1rem, 2.6vw, 1.16rem); max-width: 540px; margin: 0 auto 38px; }
.final-cta__micro { margin-top: 18px; font-size: 0.85rem; color: rgba(245,240,230,0.55); }

/* ----------------------------- Footer ---------------------------- */
.footer { background: var(--navy-900); color: rgba(245,240,230,0.7); padding-top: clamp(50px, 8vw, 80px); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 38px; padding-bottom: 44px; }
.footer__wordmark { font-family: var(--font-display); font-size: 1.55rem; color: var(--gold-300); letter-spacing: 0.01em; margin-bottom: 10px; }
.footer__tag { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 8px; }
.footer__motto { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream-50); }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { transition: color 0.3s; width: fit-content; }
.footer__nav a:hover { color: var(--gold-300); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__line { font-size: 0.9rem; }
.footer__line span { color: var(--gold-300); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--navy-line); padding-block: 24px;
  font-size: 0.8rem; color: rgba(245,240,230,0.45);
}

/* ----------------------- Floating WhatsApp ----------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  bottom: max(18px, env(safe-area-inset-bottom));
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; z-index: 2; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__pulse {
  position: absolute; inset: 0; border-radius: 50%; background: var(--wa-green);
  z-index: 1; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ----------------------- Reveal animation ------------------------ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* =============================================================
   RESPONSIVE — Tablet & Desktop
============================================================== */
@media (min-width: 600px) {
  .hero__trust { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testi { flex-basis: 48%; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }

  /* espaçamento vertical um pouco menor entre seções (só desktop) */
  .section { padding-block: clamp(64px, 6.5vw, 84px); }

  /* header: sobe o conteúdo para a barra de confiança aparecer sem rolar */
  .hero__photo-wrap { height: clamp(320px, 42svh, 450px); }
  .hero__inner { margin-top: clamp(-150px, -11vh, -96px); padding-bottom: clamp(26px, 4vh, 52px); }
  .hero__sub { margin-bottom: 26px; }
  .hero__cta { margin-bottom: 32px; }
  .hero__trust { padding-top: 20px; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .card--cta { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; padding: 26px 30px; }
  .card--cta .card__title { margin-bottom: 4px; }
  .card--cta .card__text { margin-bottom: 0; }
  .card--cta > .btn { margin-top: 0; flex-shrink: 0; }
  .about__grid { grid-template-columns: 0.95fr 1.05fr; }
  .about__content { text-align: left; }
  .about__content .eyebrow { justify-content: flex-start; }
  .about__content .eyebrow .eyebrow__line:last-child { display: none; }
  .about__text { margin-inline: 0; }
  .testi { flex-basis: 31.5%; }
  .location__inner { grid-template-columns: 0.92fr 1.08fr; }
  .location__text { text-align: left; }
  .location__text .eyebrow { justify-content: flex-start; }
  .location__text .eyebrow .eyebrow__line:last-child { display: none; }
  .location__lead { margin-inline: 0; }
  .location__address { margin-inline: 0; }
}

@media (min-width: 1100px) {
  .hero__photo-wrap { height: clamp(360px, 46svh, 500px); }
}

/* Reduz o espaçamento entre seções no mobile */
@media (max-width: 899px) {
  .services { padding-bottom: 30px; }
  .about { padding-block: 34px; }
  .testimonials { padding-top: 36px; }
}

/* Larger tap targets on touch */
@media (hover: none) {
  .card:hover { transform: none; }
  .btn--gold:hover, .btn--green:hover { transform: none; }
}
