/* Thrive Abroad — landing page styles (mobile-first) */

:root {
  --color-primary: #ff6b6b;
  --color-primary-dark: #e55555;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --spacing-unit: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f0f0f0;
    --color-text-light: #b5b5b5;
    --color-bg: #161616;
    --color-surface: #1f1f1f;
    --color-border: #333;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.hidden { display: none !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Placeholder gradient until Andrew's hero creatives arrive.
   Swap .hero-media for a real <img> or background-image per cell. */
.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.placeholder-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.hero-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 8px;
  text-align: center;
  max-width: 640px;
  margin: 0 var(--spacing-unit);
}

.hero-line {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
  width: auto;
  padding: 0.85rem 2rem;
}

@media (max-width: 768px) {
  .hero { min-height: 380px; }
  .hero-line { font-size: 1.5rem; }
}

/* ---------- PROOF ---------- */
.proof {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.proof h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-size: 1.75rem;
}

.proof-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-unit);
}

.card {
  padding: calc(var(--spacing-unit) * 1.25);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  text-align: center;
}

.host-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.3rem;
}

.host-name { font-weight: 600; font-size: 1.1rem; }
.host-tenure { font-size: 0.9rem; color: var(--color-text-light); }
.host-quote { font-size: 0.9rem; margin-top: 0.5rem; font-style: italic; }

/* ---------- ASPIRATION ---------- */
.aspiration {
  padding: calc(var(--spacing-unit) * 4) 0;
  background-color: rgba(255, 107, 107, 0.05);
}

.aspiration h2 {
  text-align: center;
  margin-bottom: var(--spacing-unit);
  font-size: 1.75rem;
}

.aspiration p {
  text-align: center;
  margin-bottom: var(--spacing-unit);
  font-size: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FORM ---------- */
.form-section {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.form-section h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-size: 1.75rem;
}

#funnel-form {
  background: var(--color-surface);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  max-width: 500px;
  margin: 0 auto;
}

.form-group { margin-bottom: calc(var(--spacing-unit) * 1.5); }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

input[type="date"],
input[type="number"],
input[type="email"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover { background-color: var(--color-primary-dark); }
.btn-primary:disabled { background-color: #aaa; cursor: not-allowed; }

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

.form-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-unit);
  text-align: center;
}

.confirmation {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--spacing-unit) * 2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.confirmation h3 { margin-bottom: 0.5rem; }

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: calc(var(--spacing-unit) * 2);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- FORM EXTRAS ---------- */
input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; accent-color: var(--color-primary); }
.consent label { margin: 0; font-weight: 400; font-size: 0.9rem; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

a { color: inherit; }
footer a { color: var(--color-text-light); }

/* ---------- PRIVACY PAGE ---------- */
.legal { max-width: 680px; padding-top: calc(var(--spacing-unit) * 2); padding-bottom: calc(var(--spacing-unit) * 3); }
.legal .back { display: inline-block; margin-bottom: calc(var(--spacing-unit) * 1.5); font-size: 0.9rem; color: var(--color-text-light); }
.legal h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.4rem; }
.legal h2 { font-size: 1.2rem; margin: calc(var(--spacing-unit) * 1.75) 0 0.5rem; }
.legal p, .legal ul { margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.25rem; }
.legal .updated { color: var(--color-text-light); font-style: italic; }

/* ==========================================================
   STRUCTURE B — layout variations, toggled by body class
   (set from ?v= by js/page.js; default is v-hero)
   ========================================================== */

/* v-hero: hero-led (default source order: hero → proof → aspiration → form) */

/* v-proof: proof-first — compact hero, proof visually leads */
body.v-proof .hero { min-height: 260px; }
body.v-proof .hero-cta { display: none; }
body.v-proof .proof { padding-top: calc(var(--spacing-unit) * 3); }

/* v-form: form-forward — compact hero, form jumps above proof/aspiration */
body.v-form { display: flex; flex-direction: column; }
body.v-form .hero { min-height: 300px; order: 1; }
body.v-form .form-section { order: 2; padding-top: calc(var(--spacing-unit) * 3); }
body.v-form .proof { order: 3; }
body.v-form .aspiration { order: 4; }
body.v-form footer { order: 5; }
body.v-form .hero-cta { display: none; }
