/* ══════════════════════════════════════
   LANDING PAGE — FAMILYFLOW
══════════════════════════════════════ */

:root {
  --cream:       #faf6f0;
  --sand:        #f0e8d8;
  --terracotta:  #c9714a;
  --terra-dark:  #a85a35;
  --forest:      #2d4a3e;
  --forest-light:#3d6254;
  --text:        #1e2a24;
  --muted:       #7a8c84;
  --white:       #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVBAR ── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 240, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ede8e0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-logo {
  width: 200px;
  height: auto;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-login {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.nav-login:hover { color: var(--forest); }

.btn-nav {
  background: var(--forest);
  color: var(--white);
  padding: .6rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s;
}

.btn-nav:hover { background: var(--forest-light); }

/* ------- HERO ------- */
.hero {
  padding: 5rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: #e8f5ee;
  color: #2d7a4f;
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-primary-lg {
  background: var(--forest);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background .2s, box-shadow .2s;
  display: inline-block;
}

.btn-primary-lg:hover {
  background: var(--forest-light);
  box-shadow: 0 6px 20px rgba(45, 74, 62, .25);
}

.btn-ghost-lg {
  color: var(--forest);
  padding: .9rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  border: 1.5px solid #ddd6c8;
  transition: all .2s;
  display: inline-block;
}

.btn-ghost-lg:hover {
  border-color: var(--forest);
  background: var(--white);
}

.hero-note {
  font-size: .8rem;
  color: var(--muted);
}

/* ==================
 PREVIEW DO DASHBOARD 
 ================= */
.hero-preview {
  display: flex;
  justify-content: center;
}

.hero-preview-desktop { display: block; }
.hero-preview-mobile  { display: none; }

/* ── CARROSSEL ── */
.hero-carousel {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.carousel-slides {
  width: 100%;
}

.carousel-slide {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  opacity: 0;
  height: 0;
  overflow: hidden;
  display: block;
  transition: opacity .8s ease;
}

.carousel-slide.active {
  opacity: 1;
  height: auto;
}

.carousel-dots {
  display: flex;
  gap: .5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd6c8;
  transition: all .3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--forest);
  width: 24px;
  border-radius: 99px;
}

/* ==================
 SEÇÕES GERAIS
 ================= */
section {
  padding: 5rem 0;
}

.section-badge {
  display: inline-block;
  background: var(--sand);
  color: var(--forest);
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --------- PROBLEMA ---------- */
.problem {
  background: var(--forest);
  padding: 5rem 0;
}

.problem .section-title {
  color: var(--white);
  text-align: center;
}

.problem .section-subtitle {
  color: rgba(255,255,255,.7);
  text-align: center;
  margin: 0 auto 3rem;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.problem-card p {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  line-height: 1.6;
}

/* ------ FEATURES ------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1.5px solid #ede8e0;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(45, 74, 62, .1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ------ COMO FUNCIONA ------ */
.how-it-works {
  background: var(--sand);
}

.how-it-works .section-title,
.how-it-works .section-badge {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.step-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .5rem;
}

.step-content p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-divider {
  font-size: 1.5rem;
  color: var(--muted);
  margin-top: 1rem;
  flex-shrink: 0;
}

/* ------ DEPOIMENTOS ------ */
.testimonials {
  text-align: center;
}

.testimonials .section-badge,
.testimonials .section-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-placeholder {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  border: 1.5px dashed #ddd6c8;
  margin-top: 3rem;
}

.testimonial-placeholder p {
  font-size: 1rem;
  color: var(--muted);
}

/* ── FAQ ── */
.faq {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.faq-list {
  max-width: 720px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid #ede8e0;
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color .2s;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--forest);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--forest);
  transition: transform .3s ease;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid #ede8e0;
  padding-top: 1rem;
}

/* ------ CTA FINAL ------ */
.cta {
  background: var(--forest);
  text-align: center;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta .btn-primary-lg {
  background: var(--white);
  color: var(--forest);
}

.cta .btn-primary-lg:hover {
  background: var(--cream);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* --------- RODAPÉ ---------- */
.footer {
  background: #111a16;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.footer-brand .nav-name {
  color: var(--white);
}

.footer .nav-logo {
  width: 150px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

/* ------ RESPONSIVO ------ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .hero-subtitle        { margin: 0 auto; }
  .hero-preview-desktop { display: none; }
  .hero-preview-mobile  { display: flex; justify-content: center; }
  .hero-actions         { justify-content: center; }
  .hero-note            { text-align: center; }

  .hero-carousel { max-width: 100%; }

  .nav-actions .nav-login { display: none; }

  .problem-cards  { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }

  .step-divider { display: none; }
  .steps { flex-direction: column; align-items: center; }

  .footer-links { flex-direction: column; gap: .75rem; }
}

/* ── DEPOIMENTOS ── */
.testimonials {
  text-align: center;
}

.testimonials .section-badge,
.testimonials .section-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-scroll {
  display: flex;
  gap: 1.5rem;
  padding: 2rem .5rem 1rem;
  scrollbar-width: none;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid #ede8e0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 340px;
  max-width: 400px;
  scroll-snap-align: start;
  flex-shrink: 0;
  text-align: left;
}

.testimonial-stars {
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ede8e0;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 500;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

.testimonial-location {
  font-size: .78rem;
  color: var(--muted);
}

/* ── CTA DOS DEPOIMENTOS ── */
.testimonials-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.testimonials-cta p {
  font-size: 1rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .testimonial-card {
    min-width: 280px;
  }
}