/* ==========================================================================
   The Ultimate Nigeria Arrival Guide, stylesheet
   Design tokens
   Color: paper #FBF6EC, ink #1B1B17, palm #0B6E4F, palm-deep #084A35,
             stamp-ink #C1440E, sun #E8A33D, line #E4DBC8
   Type: Display + Body + Utility: 'Bricolage Grotesque'
   Signature: arrival "passport stamp" motif: circular ring stamps,
             boarding-pass perforations, dashed flight paths, ink-stamp
             corner tape, mono "stamp code" labels on every section.
   ========================================================================== */

/* Fonts are loaded via <link> in index.html (faster, non-render-blocking
   with font-display: swap) rather than @import here. */

:root {
  --paper: #FBF6EC;
  --paper-raised: #FFFDF8;
  --ink: #1B1B17;
  --ink-soft: #4A4A42;
  --palm: #0B6E4F;
  --palm-deep: #084A35;
  --palm-tint: #E4EFE7;
  --stamp: #C1440E;
  --stamp-tint: #FBE7DC;
  --sun: #E8A33D;
  --sun-tint: #FBEEDA;
  --line: #E4DBC8;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'Bricolage Grotesque', sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 rgba(27,27,23,0.04), 0 12px 24px -16px rgba(27,27,23,0.25);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 480px at 8% -10%, rgba(11,110,79,0.07), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(232,163,61,0.10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palm-deep);
  background: var(--palm-tint);
  border: 1px solid var(--palm);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stamp); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2.5px solid var(--palm);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251,246,236,0.82);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(27,27,23,0.4);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  height: 32px;
  width: auto;
  display: block;
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-left: 1.5px solid var(--line);
  padding-left: 10px;
  color: var(--ink-soft);
}
.header-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.header-cta:hover { background: var(--ink); color: var(--paper-raised); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 16px 30px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--paper-raised);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 22px -12px rgba(193,68,14,0.55);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 28px -12px rgba(193,68,14,0.6); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-whatsapp {
  background: var(--palm);
  border-color: var(--palm);
  color: var(--paper-raised);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 22px -12px rgba(11,110,79,0.5);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 16px 28px -12px rgba(11,110,79,0.55); }
.btn-block { width: 100%; }

/* ---------------- scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- hero ---------------- */
.hero { padding: 56px 0 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin: 18px 0 20px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--palm);
}
.hero-copy .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-visual { position: relative; }
.hero-visual .flight-path {
  position: absolute;
  inset: -18px -18px auto auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* stacked-pages "guide preview" mockup, peeking out from the stamp art */
.guide-stack {
  position: absolute;
  left: 6%;
  bottom: -6%;
  width: 46%;
  z-index: -1;
  filter: drop-shadow(0 18px 30px rgba(27,27,23,0.18));
}
.guide-stack .page {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  aspect-ratio: 3 / 4;
}
.guide-stack .page:nth-child(1) { transform: rotate(-6deg); opacity: 0.55; }
.guide-stack .page:nth-child(2) {
  transform: rotate(3deg) translateY(-58%);
  padding: 14%;
  display: flex;
  flex-direction: column;
  gap: 10%;
}
.guide-stack .page:nth-child(2) span {
  display: block;
  height: 8%;
  border-radius: 3px;
  background: var(--line);
}
.guide-stack .page:nth-child(2) span:nth-child(1) { width: 70%; background: var(--stamp); height: 10%; }
.guide-stack .page:nth-child(2) span:nth-child(3) { width: 90%; }
.guide-stack .page:nth-child(2) span:nth-child(4) { width: 60%; }
.guide-stack .page:nth-child(2) span:nth-child(6) { width: 80%; }
.guide-stack .badge {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--sun);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  transform: rotate(6deg);
}

/* ---------------- form card ---------------- */
.form-card {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, var(--shadow-card);
  padding: 28px;
  max-width: 460px;
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(27,27,23,0.14);
  border-radius: calc(var(--radius-card) - 6px);
  pointer-events: none;
}
.form-card .ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus {
  border-color: var(--palm);
  background: var(--paper-raised);
  box-shadow: 0 0 0 4px var(--palm-tint);
}

.field-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stamp);
  margin-top: 6px;
}
.field.has-error input { border-color: var(--stamp); }
.field.has-error .field-error { display: block; }

.form-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}

.form-status {
  display: none;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 14px;
}
.form-status.show { display: block; }
.form-status.error { background: var(--stamp-tint); color: var(--stamp); }

/* success swap-in state */
.success-card {
  display: none;
  background: var(--paper-raised);
  border: 1.5px solid var(--palm);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  max-width: 460px;
  text-align: left;
}
.success-card.show { display: block; animation: stampIn .35s ease; }
@keyframes stampIn {
  from { opacity: 0; transform: scale(0.94) rotate(-2deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.success-card .stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--palm-deep);
  background: var(--palm-tint);
  border: 1px solid var(--palm);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: 14px;
}
.success-card h3 { font-size: 24px; margin-bottom: 10px; }
.success-card p { color: var(--ink-soft); margin: 0 0 18px; }
.success-card .divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 20px 0;
}
.success-card .community p { margin-bottom: 16px; }

/* ---------------- sections shared ---------------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 12px; }

/* ---------------- discover grid ---------------- */
.discover { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.discover-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.discover-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.discover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px -18px rgba(27,27,23,0.35);
}
.discover-card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--palm);
  color: var(--paper-raised);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.discover-card .icon svg { width: 24px; height: 24px; }
.discover-card h3 { font-size: 18px; margin-bottom: 8px; }
.discover-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.discover-card:nth-child(2) .icon { background: var(--stamp); }
.discover-card:nth-child(3) .icon { background: var(--sun); }
.discover-card:nth-child(4) .icon { background: var(--palm-deep); }
.discover-card:nth-child(5) .icon { background: var(--ink); }

/* ---------------- audience ---------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.audience-card {
  border-left: 3px solid var(--palm);
  padding: 4px 0 4px 20px;
}
.audience-card h3 { font-size: 18px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.audience-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------------- final cta ---------------- */
.final-cta {
  background: var(--palm-deep);
  color: var(--paper-raised);
  text-align: center;
  border-radius: 24px;
  margin: 0 24px 80px;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.final-cta h2 { color: var(--paper-raised); font-size: clamp(28px, 4vw, 42px); }
.final-cta p { color: rgba(251,246,236,0.8); max-width: 50ch; margin: 14px auto 30px; font-size: 17px; }
.final-cta .btn-primary { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.final-cta .btn-primary:hover { box-shadow: 0 10px 20px -8px rgba(232,163,61,0.6); }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .discover-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 32px auto 0; }
  .form-card, .success-card { max-width: 100%; }
  .final-cta { margin: 0 16px 64px; padding: 48px 20px; }
  .discover-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .site-header .wrap { height: 64px; }
  .brand .name { display: none; }
  .brand img { height: 26px; }
  section { padding: 56px 0; }
  .discover-grid { grid-template-columns: 1fr; }
}
