/* =========================================
   MEVAM TRÊS LAGOAS — v3 Mobile-First
   Hero layout, fullscreen, premium feel
   ========================================= */

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

:root {
  --navy:        #102b52;
  --navy-deep:   #0a1e3a;
  --cream:       #f5ede0;
  --gold:        #cbb994;
  --muted:       #8fa5c5;
  --light:       #e8dcc0;
  --input-bg:    #0d2240;
  --input-border:#1e3f6a;
  --whatsapp:    #25D366;
}

html { height: 100%; }

body {
  min-height: 100%;
  background: var(--navy);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ============================================
   SCREENS — fullscreen layout
   ============================================ */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--navy);
}
.screen.active { display: flex; }

/* ============================================
   HOME SCREEN — V1 Hero + bottom CTAs
   ============================================ */
#screen-home {
  background: radial-gradient(ellipse at 50% 30%, #1a3d6e 0%, var(--navy) 65%);
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  text-align: center;
}

.logo {
  width: 220px;
  max-width: 60%;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}

.slogan {
  font-size: 10.5px;
  letter-spacing: 3.5px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin: 28px 0;
}

.headline {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 8px;
}

.subheadline {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--light);
}

/* Bottom CTA area */
.hero-bottom {
  padding: 24px 28px 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.12) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, opacity 0.15s ease;
  line-height: 1.2;
}
.btn:active {
  transform: scale(0.97);
  opacity: 0.88;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(245, 237, 224, 0.2);
}

.btn-ghost {
  background: rgba(245, 237, 224, 0.07);
  color: var(--cream);
  border: 1.5px solid rgba(245, 237, 224, 0.2);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(203, 185, 148, 0.25);
  padding: 18px;
  font-size: 17px;
  margin-top: 8px;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  padding: 18px;
  font-size: 17px;
}

/* ============================================
   INNER SCREENS (forms + success)
   ============================================ */
.screen-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px 0;
  text-align: center;
}

.logo-sm {
  width: 120px;
  max-width: 35%;
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.25));
}

.slogan-sm {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

.screen-body {
  flex: 1;
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen-body--center {
  justify-content: center;
  padding-top: 0;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================================
   FORMS
   ============================================ */
form {
  width: 100%;
  max-width: 360px;
}

.form-group {
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--cream);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder {
  color: var(--muted);
  opacity: 0.55;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(203, 185, 148, 0.15);
}

/* ============================================
   SUCCESS
   ============================================ */
.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.success-msg {
  font-size: 16px;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 28px;
}

.success-extra {
  font-size: 14px;
  color: var(--gold);
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 20px 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
}

/* ============================================
   SPINNER
   ============================================ */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--navy);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 360px) {
  .headline { font-size: 32px; }
  .subheadline { font-size: 16px; }
  .logo { width: 180px; }
  .btn { font-size: 16px; padding: 16px; }
  .hero-bottom { padding: 20px 24px 32px; }
}

@media (min-height: 800px) {
  .divider { margin: 36px 0; }
  .hero-bottom { padding-top: 32px; }
}
