/* ============================================================
   DR. FERNANDO BEMFICA — LANDING PAGE
   CSS organizado em: Tokens > Reset > Base > Layout > Componentes
   > Seções > Animações > Responsividade
============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
------------------------------------------------------------ */
:root {
  /* Paleta */
  --off-white: #F8F5F0;
  --beige: #EFE7DB;
  --gold: #B89055;
  --gold-deep: #8C6B3E;
  --black: #161616;
  --gray: #6B645C;
  --gray-light: #9C9488;
  --white: #FFFFFF;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento */
  --section-padding: 140px;
  --section-padding-mobile: 72px;
  --container-width: 1180px;

  /* Transições */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s var(--ease);
  --transition-medium: 0.6s var(--ease);

  /* Sombras discretas */
  --shadow-soft: 0 20px 60px -30px rgba(22, 22, 22, 0.25);
  --shadow-card: 0 10px 40px -20px rgba(22, 22, 22, 0.18);

  /* Raio de borda */
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* ------------------------------------------------------------
   2. RESET
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }

ul { list-style: none; }

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   3. BASE
------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 560px;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   4. BOTÕES
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 36px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--off-white);
}
.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(22, 22, 22, 0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-2px);
}

.btn-small {
  padding: 11px 24px;
  font-size: 0.82rem;
}

.btn-gold-large {
  background: var(--gold);
  color: var(--black);
  padding: 22px 52px;
  font-size: 1rem;
}
.btn-gold-large:hover {
  background: var(--off-white);
  transform: translateY(-3px);
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.4);
}

/* ------------------------------------------------------------
   5. HEADER
------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(248, 245, 240, 0);
  transition: background var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(22,22,22,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.logo span { color: var(--gold-deep); font-style: italic; }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width var(--transition-fast);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ------------------------------------------------------------
   6a. BOTÃO DE MÚSICA (flutuante, discreto)
------------------------------------------------------------ */
.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--black);
  border: 1px solid rgba(22,22,22,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.music-toggle svg { width: 18px; height: 18px; }
.music-toggle svg[hidden] { display: none; }
.music-toggle:hover {
  background: var(--gold);
  transform: scale(1.06);
}
.music-toggle.playing {
  background: var(--gold);
}

/* ------------------------------------------------------------
   6b. WHATSAPP FLUTUANTE
------------------------------------------------------------ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--black);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover {
  background: var(--gold-deep);
  transform: scale(1.08);
}

/* ------------------------------------------------------------
   7. HERO
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 110px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(184,144,85,0.14), rgba(22,22,22,0.04)),
    repeating-linear-gradient(45deg, rgba(22,22,22,0.035) 0 2px, transparent 2px 14px),
    var(--beige);
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  border: 1px solid rgba(22,22,22,0.08);
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,0.06) 0%, rgba(22,22,22,0.55) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: var(--off-white);
}

.hero .eyebrow { color: var(--gold); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin-bottom: 26px;
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }

.hero-subtitle {
  max-width: 480px;
  font-size: 1.08rem;
  color: rgba(248,245,240,0.85);
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  border-color: rgba(248,245,240,0.4);
  color: var(--off-white);
}
.hero-actions .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Assinatura visual — linha de sorriso */
.smile-line {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 60px;
  z-index: 2;
}
.smile-line path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.smile-line.in-view path { stroke-dashoffset: 0; }

/* ------------------------------------------------------------
   8. SEÇÕES GERAIS
------------------------------------------------------------ */
.section {
  padding: var(--section-padding) 0;
}
.section-alt { background: var(--beige); }

/* ------------------------------------------------------------
   9. CARDS DE TRATAMENTOS
------------------------------------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(22,22,22,0.06);
  border-radius: var(--radius-lg);
  padding: 42px 30px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(184,144,85,0.35);
}

.card-icon {
  width: 52px; height: 52px;
  margin-bottom: 26px;
  color: var(--gold-deep);
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--gray);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------
   10. SOBRE O DOUTOR
------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-media { border-radius: var(--radius-lg); overflow: visible; box-shadow: var(--shadow-card); position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-lg);
  display: block;
}
.about-accent-photo {
  position: absolute;
  width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  right: -8%;
  bottom: -10%;
  border-radius: var(--radius-md);
  border: 6px solid var(--off-white);
  box-shadow: var(--shadow-soft);
}

.about-content p { color: var(--gray); margin-bottom: 24px; max-width: 480px; }

.check-list {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--black);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.text-link {
  font-weight: 600;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity var(--transition-fast);
}
.text-link:hover { opacity: 0.7; }

/* ------------------------------------------------------------
   10b. BASTIDORES — faixa de vídeo curta
------------------------------------------------------------ */
.bastidores-strip {
  padding: 0 0 96px;
  background: var(--off-white);
}
.bastidores-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 240px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.bastidores-media video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   11. POR QUE ESCOLHER
------------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(22,22,22,0.08);
  border: 1px solid rgba(22,22,22,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-item {
  background: var(--off-white);
  padding: 44px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--transition-fast);
}
.why-item:hover { background: var(--white); }
.why-item svg { width: 30px; height: 30px; color: var(--gold-deep); }
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ------------------------------------------------------------
   12. SLIDER ANTES/DEPOIS
------------------------------------------------------------ */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform var(--transition-medium);
}
.slide { min-width: 100%; }
.slide-placeholder { aspect-ratio: 16 / 8; border-radius: var(--radius-lg); }

.compare {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 8;
}
.compare-half {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.compare-half img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.compare-tag {
  position: absolute;
  top: 18px; left: 18px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(22,22,22,0.55);
  color: var(--off-white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.compare-tag-gold {
  background: var(--gold);
  color: var(--black);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(248,245,240,0.85);
  color: var(--black);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.slider-arrow:hover { background: var(--gold); transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(248,245,240,0.6);
}
.slider-dots button.active { background: var(--gold); }

/* ------------------------------------------------------------
   13. DEPOIMENTOS
------------------------------------------------------------ */
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform var(--transition-medium);
}
.testimonial {
  min-width: 100%;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonial-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  border: 1px solid rgba(184,144,85,0.35);
}
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 24px;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  font-size: 0.9rem;
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testi-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(22,22,22,0.18);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.testi-dots button.active { background: var(--gold-deep); transform: scale(1.3); }

/* ------------------------------------------------------------
   14. LOCALIZAÇÃO
------------------------------------------------------------ */
.skyline {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  background: linear-gradient(180deg, rgba(184,144,85,0.06), rgba(184,144,85,0.02));
  border: 1px solid rgba(22,22,22,0.06);
}
.skyline-svg {
  width: 100%;
  height: 230px;
  display: block;
}
.skyline-peaks {
  fill: rgba(22,22,22,0.9);
  fill-opacity: 0.06;
  stroke: var(--gold-deep);
  stroke-width: 1.4;
}
.skyline-horizon {
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.5;
}
.skyline-sun {
  fill: var(--gold);
  opacity: 0.8;
}
.skyline-wave {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1;
  opacity: 0.3;
}
.skyline-wave-soft { opacity: 0.15; }

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.location-info .section-title { margin-bottom: 16px; }
.location-info p { color: var(--gray); margin-bottom: 34px; }

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.location-map iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(0.25) contrast(1.02);
}

/* ------------------------------------------------------------
   15. CTA FINAL
------------------------------------------------------------ */
.cta-final {
  position: relative;
  background: var(--black);
  color: var(--off-white);
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
}
.cta-final .smile-line-alt path { stroke: var(--gold); }
.cta-final .smile-line-alt { top: -1px; bottom: auto; }

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}
.cta-final p {
  color: rgba(248,245,240,0.75);
  margin-bottom: 44px;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   16. RODAPÉ
------------------------------------------------------------ */
.site-footer {
  background: var(--beige);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(22,22,22,0.1);
}
.footer-brand p:last-child { color: var(--gray); margin-top: 6px; font-size: 0.9rem; }
.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--gold-deep); }
.footer-copy {
  text-align: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--gray-light);
}

/* ------------------------------------------------------------
   17. ANIMAÇÕES DE SCROLL (fade + slide discreto)
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   18. RESPONSIVIDADE
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .location-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 420px; }
}

@media (max-width: 860px) {
  :root { --section-padding: var(--section-padding-mobile); }

  .nav-links { display: none; }
  .header-inner .btn-small { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--off-white);
    flex-direction: column;
    padding: 20px 32px 28px;
    gap: 18px;
    box-shadow: 0 12px 30px -12px rgba(22,22,22,0.15);
  }

  .hero { padding-bottom: 80px; align-items: flex-end; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .cta-final { padding: 100px 0; }
}
