/* ==========================================================================
   Fabiane Wächter — Landing Page
   Mobile-first, premium, single page, CTA-focused (WhatsApp)
   ========================================================================== */

:root {
  /* Brand palette — extraída da identidade real da Dra. Fabiane */
  --mint: #a9c9b5;
  --mint-light: #e7f0e9;
  --mint-dark: #6f9781;
  --blush: #f3c9d4;
  --blush-light: #fbeef1;
  --cream: #fdfbf7;
  --gold: #c8a165;
  --gold-light: #e9d9bc;
  --ink: #2c2a26;
  --ink-soft: #5c574f;
  --white: #ffffff;

  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --shadow-soft: 0 12px 32px rgba(44, 42, 38, 0.10);
  --shadow-card: 0 8px 24px rgba(44, 42, 38, 0.08);

  --container-max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container--narrow { max-width: 640px; }

.container--split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 12px;
}

.eyebrow--center { text-align: center; }
.eyebrow--on-dark { color: var(--gold-light); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}

.section__title--center { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }

.section__subtitle {
  text-align: center;
  max-width: 480px;
  margin: -8px auto 36px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.section {
  padding: 72px 0;
}

/* ---------- Scroll-reveal motion ---------- */
/* Gated behind .js-reveal (set synchronously in <head>) so content stays
   visible if JavaScript never runs — progressive enhancement, not a hard gate. */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal [data-reveal="fade-right"] { transform: translateX(-32px); }
.js-reveal [data-reveal="fade-left"] { transform: translateX(32px); }

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 30px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  width: 100%;
  max-width: 420px;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.42); }
.btn--primary:active { transform: translateY(0); }

.btn--large { font-size: 1.05rem; padding: 18px 32px; }

.icon-whatsapp { width: 22px; height: 22px; flex-shrink: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: 48px 20px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--mint-light) 0%, var(--cream) 78%);
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}

.hero__bg-shape--1 {
  width: 260px; height: 260px;
  background: var(--blush-light);
  top: -80px; left: -90px;
}

.hero__bg-shape--2 {
  width: 220px; height: 220px;
  background: var(--gold-light);
  bottom: 40px; right: -80px;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__photo {
  width: min(78vw, 320px);
  height: auto;
  aspect-ratio: 1170 / 1346;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero__title span {
  color: var(--mint-dark);
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 400px;
}

.hero__microtext {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero__microtext--on-dark { color: rgba(255,255,255,0.75); }

.hero__scroll-cue {
  width: 2px;
  height: 40px;
  background: linear-gradient(var(--mint-dark), transparent);
  margin: 40px auto 0;
  opacity: 0.5;
}

/* ==========================================================================
   QUEM SOU EU
   ========================================================================== */

.section--about { background: var(--white); }

.about__media {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.about__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  /* aspect-ratio matches the source photo exactly so nothing gets cropped */
  aspect-ratio: 1170 / 778;
  object-fit: cover;
}

.badge-float {
  position: absolute;
  bottom: -18px;
  right: -10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: center;
  padding: 14px 18px;
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--blush-light);
}

.about__text { max-width: 560px; margin: 0 auto; }

.about__text .section__title { text-align: center; }

.about__text p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.check-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  background: var(--mint);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   GALLERY / RESULTADOS
   ========================================================================== */

.section--gallery { background: var(--mint-light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: none;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
}

.gallery-item--tall { aspect-ratio: 1 / 1.25; grid-row: span 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  text-align: left;
}

.disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 24px;
  font-style: italic;
  opacity: 0.85;
}

/* ==========================================================================
   TRUST CARDS
   ========================================================================== */

.section--trust { background: var(--white); }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}

.trust-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(169, 201, 181, 0.25);
}

.trust-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.trust-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   CTA INTERMEDIÁRIO
   ========================================================================== */

.section--cta-mid {
  background: linear-gradient(135deg, var(--mint-dark), var(--mint));
  text-align: center;
}

.cta-mid__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 14px;
}

.cta-mid__text {
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  font-size: 0.98rem;
}

.section--cta-mid .btn--primary {
  margin: 0 auto;
}

/* ==========================================================================
   COMO FUNCIONA
   ========================================================================== */

.section--steps { background: var(--blush-light); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  text-align: center;
  position: relative;
  padding-top: 8px;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-card);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

.steps__reinforce {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mint-dark);
  line-height: 2;
}

/* ==========================================================================
   BASTIDORES
   ========================================================================== */

.section--behind { background: var(--white); }

/* Slow, continuous, seamless image loop. JS duplicates .marquee__track's
   children once so translating exactly -50% loops without a visible seam. */
.marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px 24px 20px;
  animation: marquee-scroll 42s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.behind-item {
  flex: 0 0 auto;
  width: 66vw;
  max-width: 260px;
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
}

.behind-item img { width: 100%; height: 100%; object-fit: cover; }

.behind-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.section--cta-final {
  position: relative;
  background: linear-gradient(160deg, #3f5a4a, #2c2a26);
  text-align: center;
  overflow: hidden;
}

.cta-final__bg-shape {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,161,101,0.25), transparent 70%);
  top: -120px; right: -100px;
}

.cta-final__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
}

.cta-final__text {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  font-size: 0.98rem;
  position: relative;
}

.section--cta-final .btn--primary { margin: 0 auto; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  text-align: center;
}

.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.footer__role { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 8px; }

.footer__address {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer__links { display: flex; gap: 18px; margin-bottom: 24px; }

.footer__links a {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__links a:hover { opacity: 1; transform: translateY(-2px); }

.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */

.float-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 50;
  animation: pulse-wa 2.4s infinite;
  text-decoration: none;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.12); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE — tablet & desktop
   ========================================================================== */

@media (min-width: 720px) {
  .section { padding: 100px 0; }

  .hero { padding: 72px 20px 80px; }
  .hero__content { max-width: 640px; }

  .container--split {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .about__media { flex: 0 0 42%; }
  .about__text { flex: 1; text-align: left; margin: 0; }
  .about__text .section__title { text-align: left; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { flex-direction: row; max-width: none; align-items: flex-start; }
  .step { flex: 1; }

  .btn--primary { width: auto; }
}

@media (min-width: 1000px) {
  .hero__content { max-width: 720px; }
  .hero__title { font-size: 2.8rem; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-whatsapp { animation: none; }
  .marquee__track { animation: none; }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
  * { transition: none !important; }
}
