/* =========================================================================
   Sorteio Cartão DVA — Landing Page
   Paleta: azul-marinho #082B4C | laranja #FFA744 | off-white #F4F1E9
   ========================================================================= */

:root {
  --navy: #082B4C;
  --navy-dark: #051d33;
  --navy-light: #14456f;
  --orange: #FFA744;
  --orange-dark: #e88f2a;
  --off-white: #F4F1E9;
  --white: #ffffff;
  --text-main: #1b2a36;
  --text-muted: #5a6b78;
  --success: #1f8a4c;
  --error: #c62828;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(8, 43, 76, 0.12);
  --font-title: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--orange-dark); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--navy);
  margin: 0 0 .5em 0;
  line-height: 1.2;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-badge {
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-name {
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}
.brand-name strong { color: var(--orange); }

.btn-outline-header {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-header:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(255, 167, 68, 0.4);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-large { width: 100%; padding: 16px 28px; font-size: 16px; letter-spacing: .3px; }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, var(--off-white) 0%, #efe9d8 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--orange);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .6px;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 12px;
}
.hero-microtext {
  color: var(--text-muted);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}
.hero-microtext i { color: var(--orange-dark); }

.hero-copy .btn-large { max-width: 420px; }

/* Product image blocks */
.hero-product-desktop,
.hero-product-mobile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin-bottom: 20px;
}
.hero-product-desktop img,
.hero-product-mobile img {
  margin: 0 auto;
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
}
.hero-product-mobile { display: none; }
.image-swap-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.image-swap-note .hint { display: block; margin-top: 2px; }
.image-swap-note code {
  background: #eee;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--orange);
}
.form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.form-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-alert.error { background: #fdecea; color: var(--error); border: 1px solid #f5c6c1; }
.form-alert.info { background: #eaf3fb; color: var(--navy); border: 1px solid #cfe0ee; }
.form-alert.warning { background: #fff3cd; color: #6b4a00; border: 1px solid #f0c36d; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy);
}
.field .required { color: var(--error); }
.field .optional { color: var(--text-muted); font-weight: 400; font-size: 12.5px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid #d8dbe0;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  font-family: var(--font-body);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8,43,76,0.12);
}
.field input.invalid, .field select.invalid {
  border-color: var(--error);
}
.field-error {
  display: block;
  color: var(--error);
  font-size: 12.5px;
  margin-top: 4px;
  min-height: 1px;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.field-checkbox label {
  font-weight: 400;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 0;
}
.field-checkbox-marketing label { color: var(--text-muted); }

.btn-submit { margin-top: 6px; position: relative; }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-spinner i { margin-right: 4px; }

.form-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Success message */
.form-success {
  text-align: center;
  padding: 20px 10px;
}
.form-success i {
  font-size: 46px;
  color: var(--success);
  margin-bottom: 12px;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { color: var(--text-main); font-size: 15px; }

/* ---------- Section titles ---------- */
.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 34px;
}

/* ---------- Benefits ---------- */
.benefits { padding: 60px 0; background: var(--white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid #eae5d5;
}
.benefit-icon {
  width: 56px; height: 56px;
  background: var(--navy);
  color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

.benefits-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 32px;
  font-style: italic;
}

/* ---------- How it works ---------- */
.how-it-works { padding: 60px 0; background: var(--off-white); }
.steps {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  display: flex;
  gap: 14px;
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(8,43,76,0.06);
}
.step-number {
  width: 38px; height: 38px;
  background: var(--orange);
  color: var(--navy-dark);
  font-family: var(--font-title);
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.rules-summary {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin-bottom: 34px;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e7ecf1;
}
.rule-item i {
  color: var(--orange);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
}
.rule-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3px;
}
.rule-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}
.rule-value a { color: var(--orange); text-decoration: underline; }
.rule-value em { font-weight: 400; font-style: italic; color: rgba(255,255,255,0.65); font-size: 12.5px; }

.cta-center { text-align: center; }
.cta-center .btn { min-width: 260px; }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0; background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto 36px; }
.faq-item {
  background: var(--off-white);
  border-radius: 10px;
  padding: 4px 20px;
  margin-bottom: 12px;
  border: 1px solid #eae5d5;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 14px 0;
  font-size: 15.5px;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\002B';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 20px;
  color: var(--orange-dark);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  margin: 0 0 16px;
  color: var(--text-main);
  font-size: 14.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}
.footer-inner p { margin: 6px 0; }
.footer-links a { color: var(--orange); text-decoration: underline; margin: 0 4px; }
.footer-links span { color: rgba(255,255,255,0.4); }
.footer-note { color: rgba(255,255,255,0.5); font-size: 11.5px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 28px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-product-desktop { display: none; }
  .hero-product-mobile { display: block; padding: 14px; }
  .hero-product-mobile img { max-width: 220px; }
  .hero-copy .btn-large { max-width: none; margin-top: 4px; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.55rem; }

  .header-inner { flex-wrap: wrap; }
  .brand-name { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .hero h1 { font-size: 1.5rem; }
  .btn-outline-header { display: none; }
}
