/* path: /public/css/styles.css */

/* Base */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #d4d4d4;
  --border: #222;
  --accent: #fff;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body.section-bg {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px
}

/* Ajuda: âncoras não ficarem sob a navbar fixa */
[id] {
  scroll-margin-top: 84px
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border)
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.logo {
  fill: #fff;
  height: 28px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px
}

.nav-link:hover {
  background: rgba(255, 255, 255, .08)
}

.lang-select select {
  background: #0b0b0b;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* HERO com vídeo */
.hero {
  position: relative;
  padding-top: 96px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.hero-video-wrap {
  isolation: isolate
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  filter: contrast(1.05) saturate(1.05) brightness(.65)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 50%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .75))
}

.hero-content {
  max-width: 900px;
  padding: 0 16px;
  text-align: center
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6)
}

.hero-subtitle {
  margin: 0 auto 20px;
  max-width: 900px;
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 20px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5)
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px
}

.btn-primary:hover {
  background: transparent;
  color: #fff
}

/* Cards */
.cards {
  display: grid;
  gap: 16px;
  padding: 80px 0 40px;
  grid-template-columns: repeat(3, 1fr)
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  padding: 16px
}

.card h3 {
  margin: 0 0 8px
}

.card p {
  margin: 0;
  color: var(--muted)
}

/* ===== Seção: Planeje seu dia ===== */
.section-motivation {
  padding: 70px 0;
  background: var(--bg);
  color: var(--text)
}

.motivation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center
}

.motivation-media {
  height: 50vh;                 /* desktop: 50vh como você pediu */
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.motivation-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 50%;  /* foco central no desktop */
}

.motivation-text h2 {
  font-size: 2rem;
  margin: 0 0 .8rem
}

.motivation-text p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65
}

/* ===== Seção: Avançar mais ===== */
.section-forward {
  padding: 70px 0;
  background: var(--bg);
  color: var(--text)
}

.forward-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center
}

.forward-text h2 {
  font-size: 2rem;
  margin: 0 0 .8rem
}

.forward-text p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65
}

.forward-media {
  position: relative
}

.side-video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #000
}

/* ===== Seção: Download do app ===== */
.section-download {
  padding: 70px 0;
  background: var(--bg);
  color: var(--text)
}

.download-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.download-text h2 {
  font-size: 2rem;
  margin: 0 0 .6rem
}

.download-text p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .6rem 0 1rem
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 700
}

.store-btn:hover {
  background: transparent;
  color: #fff
}

.store-btn.ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border)
}

.play-icon {
  height: 20px;
  display: inline-block
}

.download-note {
  color: #9b9b9b
}

.download-media {
  text-align: right
}

.qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
  margin-bottom: .4rem
}

.qr-caption {
  display: block;
  color: #9b9b9b;
  font-size: .95rem
}

/* ===== Animação de entrada (reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 10px;
  background: #000
}

.footer-content {
  display: flex;
  flex-direction: column;
  /* empilha logo, formulário, etc. */
  gap: 24px;
  align-items: center;
  /* centraliza horizontalmente */
  justify-content: center;
  /* centraliza verticalmente dentro do footer */
  text-align: center;
  /* centraliza texto */
}

.footer-logo img {
  height: 28px
}

.footer-form-container {
  width: 100%;
  max-width: 520px
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.input-custom {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0b0b0b;
  color: #fff;
  border: 1px solid var(--border)
}

.footer-copy {
  text-align: center;
  color: #9b9b9b;
  margin: 28px 0 0
}

.footer-copy a {
  color: #fff
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a svg {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: color 0.3s;
}

.footer-social a:hover svg {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Modais */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .6)
}

.modal.hidden {
  display: none
}

.modal-box {
  background: #0e0e0e;
  border: 1px solid var(--border);
  color: #fff;
  padding: 24px;
  border-radius: 12px
}

.btn-error {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  padding: 10px 14px;
  border-radius: 10px
}

/* Responsivo */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start
  }

  .motivation-grid,
  .forward-grid,
  .download-grid {
    grid-template-columns: 1fr
  }

  .forward-media {
    order: -1
  }

}

/* ===== Ajustes gerais ===== */

/* =====================  TABLET (769–1024px)  ===================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Hero mais contido */
  .hero { padding-top: 80px; min-height: 70vh; }

  /* Foto "man": baixa um pouco a altura e SOBE ~10% o enquadramento */
  .motivation-media { height: 44vh; }
  .motivation-media img { object-position: center 40%; } /* 50% -> 40% (sobe 10%) */

  /* Seções em 1 coluna e centradas quando fizer sentido */
  .motivation-grid,
  .forward-grid,
  .download-grid { grid-template-columns: 1fr; }

  .download-grid {
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .store-buttons { justify-content: center; }

  .section-forward { padding: 56px 0 44px; }
  .forward-media { order: -1; }       /* vídeo acima do texto no tablet */

  /* Vídeo "woman" mais contido */
  .side-video { max-height: 420px; }

  /* Respiro geral para tablet */
  .container { padding: 0 20px; }

  /* Footer garante centralização */
  .footer-content { align-items: center; text-align: center; }
}

/* =====================  MOBILE (≤768px)  ===================== */
@media (max-width: 768px) {

  /* Hero ainda menor */
  .hero { padding-top: 64px; min-height: 60vh; }

  /* Foto "man": mais compacto */
  .motivation-media { height: 38vh; }
  .motivation-media img { object-position: center 29%; }

  /* Seções empilhadas */
  .motivation-grid,
  .forward-grid,
  .download-grid { grid-template-columns: 1fr; }

  /* Cards com respiro lateral e gap maior */
  .cards { grid-template-columns: 1fr; padding: 0 16px; gap: 20px; }

  /* Download centralizado */
  .download-grid { justify-items: center; text-align: center; gap: 1.5rem; }
  .store-buttons { justify-content: center; }

  /* Forward compacto e vídeo acima do texto */
  .section-forward { padding: 48px 0 32px; }
  .forward-media { order: -1; }

  /* Vídeo "woman" menor no mobile */
  .side-video { max-height: 360px; }

  /* Footer centralizado */
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }
}