/* ===========================
   AtlasPath — Warm Editorial Theme
   Palette: Cream / Terracotta / Forest Green / Espresso
   Typography: Fraunces (headings) + Figtree (body)
   =========================== */

/* --- Variables --- */
:root {
  --bg: #F9F5EF;
  --bg-alt: #F2EDE4;
  --accent: #C4622D;
  --accent-light: #E8933A;
  --green: #2D4A3E;
  --green-light: #3D6B58;
  --text: #1E0F0A;
  --text-mid: #4A3228;
  --text-light: #7A6258;
  --white: #FFFFFF;
  --border: rgba(30, 15, 10, 0.12);
  --radius: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.15;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  font-family: 'Figtree', sans-serif;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(249, 245, 239, 0.92);
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  font-family: 'Fraunces', serif;
}

.btn-quiz-nav {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-quiz-nav:hover {
  background: var(--green);
  color: white;
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-hero-quiz {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--green);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 2.5rem;
  font-family: 'Figtree', sans-serif;
}

.btn-hero-quiz:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,74,62,0.3);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* --- Globe Visual (CSS only) --- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.globe-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

.globe {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 40% at 38% 35%, rgba(196,98,45,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 65% 60%, rgba(45,74,62,0.12) 0%, transparent 60%),
    radial-gradient(circle at 30% 30%, #E8D5C4 0%, #D4BFA8 30%, #C4A882 50%, #B8956E 70%, #A07850 100%);
  box-shadow:
    inset -20px -20px 60px rgba(30,15,10,0.25),
    inset 8px 8px 24px rgba(255,255,255,0.15),
    0 20px 60px rgba(30,15,10,0.18),
    0 4px 20px rgba(30,15,10,0.1);
  position: relative;
  overflow: hidden;
}

/* Continent shapes using pseudo-elements */
.globe::before {
  content: '';
  position: absolute;
  top: 22%;
  left: 18%;
  width: 35%;
  height: 28%;
  background: rgba(45, 74, 62, 0.55);
  border-radius: 40% 60% 50% 40%;
  transform: rotate(-15deg);
}

.globe::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 22%;
  width: 22%;
  height: 35%;
  background: rgba(196, 98, 45, 0.45);
  border-radius: 50% 40% 45% 55%;
  transform: rotate(10deg);
}

/* Globe grid lines */
.globe-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(45,74,62,0.06) 50%, transparent 52%),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(45,74,62,0.04) 40%, transparent 42%);
  pointer-events: none;
}

/* Pins */
.globe-pins { position: absolute; inset: 0; }
.pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.2);
}
.pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
}
.pin-1 { top: 28%; left: 35%; }
.pin-2 { top: 38%; right: 30%; }
.pin-3 { bottom: 35%; left: 28%; }
.pin-4 { bottom: 25%; right: 35%; }

.hero-deco-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.hero-deco-text span {
  font-family: 'Fraunces', serif;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  position: relative;
  padding-left: 1rem;
}

.hero-deco-text span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Match Section --- */
.match {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.match-text em {
  font-style: italic;
  color: var(--green);
}

.btn-start-quiz-section {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: white;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  font-family: 'Figtree', sans-serif;
}

.btn-start-quiz-section:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Quiz Card */
.quiz-preview { padding-top: 0.5rem; }

.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(30,15,10,0.06);
}

.quiz-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.quiz-card-q {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
}

.quiz-option:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(45, 74, 62, 0.04);
}

.quiz-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  flex-shrink: 0;
}

.quiz-progress {
  margin-top: 1.5rem;
}

.quiz-progress-bar {
  height: 3px;
  background: var(--bg-alt);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.quiz-progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background: var(--green);
  border-radius: 2px;
}

.quiz-progress-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- Prepare Section --- */
.prepare {
  padding: 5rem 0;
}

.prepare-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.prepare-icon {
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.checklist-preview {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.check-item.pending { color: var(--text-light); }

.check-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--green);
  flex-shrink: 0;
  position: relative;
}

.check-item.pending .check-dot {
  border-color: var(--text-light);
  border-style: dashed;
}

.check-item:not(.pending) .check-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 7px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

/* --- Discover Section --- */
.discover {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.discover-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.country-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

.country-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}

.country-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.75rem;
}

.country-info { flex: 1; }
.country-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.country-detail { font-size: 0.8rem; color: var(--text-light); }
.country-cost {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

.country-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
  background: rgba(196, 98, 45, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.discover-data {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.data-block { display: flex; flex-direction: column; gap: 0.4rem; }

.data-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.data-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.data-value {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- Journey Section --- */
.journey {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.journey-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.journey-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.journey-body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Compass (CSS only) */
.compass-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.compass {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--green);
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(45, 74, 62, 0.08), 0 8px 32px rgba(30,15,10,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.compass-needle {
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, var(--accent) 50%, rgba(45,74,62,0.3) 50%);
  border-radius: 2px;
  transform: rotate(25deg);
  transform-origin: center;
}

.compass-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--green);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(249,245,239,0.7);
  margin-bottom: 0.75rem;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(249,245,239,0.4);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-grid,
  .match-grid,
  .prepare-grid,
  .discover-grid,
  .journey-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual { display: none; }
  .prepare-icon { display: none; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
}
