/* ==========================================================================
   Dra. Rafaela Lauschner de Freitas — Landing Page
   Mobile-first, premium, single page, CTA-focused (WhatsApp)
   ========================================================================== */

:root {
  /* Brand palette — extraída da identidade visual real (logo bordô + dourado) */
  --wine: #6d2338;
  --wine-dark: #45111f;
  --wine-light: #f4e6ea;
  --gold: #c9a35f;
  --gold-light: #ecdcb9;
  --cream: #fdfaf6;
  --ink: #2b2420;
  --ink-soft: #5c5349;
  --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(43, 36, 32, 0.10);
  --shadow-card: 0 8px 24px rgba(43, 36, 32, 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(--wine);
  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;
}

/* ---------- 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(--wine-light) 0%, var(--cream) 78%);
  overflow: hidden;
}

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

.hero__bg-shape--1 {
  width: 260px; height: 260px;
  background: var(--gold-light);
  top: -80px; left: -90px;
  opacity: 0.45;
  animation: float-slow 9s ease-in-out infinite;
}

.hero__bg-shape--2 {
  width: 220px; height: 220px;
  background: var(--wine-light);
  bottom: 40px; right: -80px;
  opacity: 0.6;
  animation: float-slow 11s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

/* ---------- Entrada suave da hero ao carregar a página ---------- */

.hero__photo,
.hero .eyebrow,
.hero__title,
.hero__subtitle,
.hero .btn,
.hero__microtext {
  opacity: 0;
  animation: fade-up-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__photo { animation-delay: 0.05s; }
.hero .eyebrow { animation-delay: 0.28s; }
.hero__title { animation-delay: 0.38s; }
.hero__subtitle { animation-delay: 0.5s; }
.hero .btn { animation-delay: 0.62s; }
.hero__microtext { animation-delay: 0.74s; }

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.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: 4 / 5;
  object-fit: cover;
  object-position: top;
  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(--wine);
  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(--wine), transparent);
  margin: 40px auto 0;
  opacity: 0.5;
}

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

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

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

.about__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.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(--wine-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(--wine);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ==========================================================================
   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(109, 35, 56, 0.12);
}

.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(--wine-dark), var(--wine));
  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;
}

/* ==========================================================================
   AVALIAÇÕES DO GOOGLE
   ========================================================================== */

.section--reviews { background: var(--cream); }

.review-card {
  flex: 0 0 auto;
  width: 82vw;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(109, 35, 56, 0.10);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.review-author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wine);
}

.reviews__source {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 500;
}

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

.section--steps { background: var(--wine-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(--wine);
  line-height: 2;
}

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

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

/* ---------- Carrossel infinito (usado em Resultados e Bastidores) ---------- */

.marquee {
  overflow: hidden;
  margin: 40px -24px 0;
  padding: 8px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 28s;
}

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

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

.marquee__group {
  display: flex;
  gap: 16px;
  padding-left: 24px;
  flex-shrink: 0;
}

.marquee-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;
}

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

.marquee-item .item-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;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee__group:last-child { display: none; }
}

/* ---------- Carrossel manual (rolagem por toque/arraste, sem loop) ---------- */

.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin: 40px -24px 0;
  padding-left: 24px;
  padding-right: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--wine); border-radius: 10px; }

.hscroll > * { scroll-snap-align: start; }

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

.section--cta-final {
  position: relative;
  background: linear-gradient(160deg, var(--wine-dark), var(--ink));
  text-align: center;
  overflow: hidden;
}

.cta-final__bg-shape {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,163,95,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, 15, 13, 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;
}

/* ==========================================================================
   MOTION FLUIDO — revelação suave ao rolar a página
   ========================================================================== */

main .eyebrow,
main .section__title,
main .section__subtitle,
.about__media,
.about__text,
.trust-card,
.step,
.cta-mid__title,
.cta-mid__text,
.cta-final__title,
.cta-final__text,
.steps__reinforce,
.reviews__source {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

main .eyebrow.is-visible,
main .section__title.is-visible,
main .section__subtitle.is-visible,
.about__media.is-visible,
.about__text.is-visible,
.trust-card.is-visible,
.step.is-visible,
.cta-mid__title.is-visible,
.cta-mid__text.is-visible,
.cta-final__title.is-visible,
.cta-final__text.is-visible,
.steps__reinforce.is-visible,
.reviews__source.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__text { transition-delay: 0.1s; }

.trust-grid .trust-card:nth-child(1) { transition-delay: 0.02s; }
.trust-grid .trust-card:nth-child(2) { transition-delay: 0.08s; }
.trust-grid .trust-card:nth-child(3) { transition-delay: 0.14s; }
.trust-grid .trust-card:nth-child(4) { transition-delay: 0.2s; }
.trust-grid .trust-card:nth-child(5) { transition-delay: 0.26s; }
.trust-grid .trust-card:nth-child(6) { transition-delay: 0.32s; }

.steps .step:nth-child(1) { transition-delay: 0.02s; }
.steps .step:nth-child(2) { transition-delay: 0.14s; }
.steps .step:nth-child(3) { transition-delay: 0.26s; }

/* ---------- Micro-interações (hover) ---------- */

.trust-card {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease, box-shadow 0.35s ease;
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(43, 36, 32, 0.14);
}

.review-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(43, 36, 32, 0.14);
}

.marquee-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   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; }

  .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; }
  * { transition: none !important; animation: none !important; }

  main .eyebrow,
  main .section__title,
  main .section__subtitle,
  .about__media,
  .about__text,
  .trust-card,
  .step,
  .cta-mid__title,
  .cta-mid__text,
  .cta-final__title,
  .cta-final__text,
  .steps__reinforce,
  .reviews__source,
  .hero__photo,
  .hero .eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero .btn,
  .hero__microtext {
    opacity: 1 !important;
    transform: none !important;
  }
}
