/* ==========================================================
   SWALOS v3 — dark cinematic hero → cream editorial body
   Palette: Ghana Green, Kente Gold, Cream, Ink
   ========================================================== */

:root {
  --ink: #14100b;
  --ink-2: #1c1811;
  --ink-3: #2a221a;
  --cream: #f5ebd5;
  --paper: #fbf7ed;
  --paper-2: #f3ead4;
  --paper-3: #e8dcc0;
  --green: #1b5e3f;
  --green-deep: #0f4128;
  --gold: #d4a017;
  --gold-warm: #e5b83a;
  --maroon: #7a2e1a;
  --muted: #6b5f4c;
  --line: rgba(20, 16, 11, 0.14);
  --line-light: rgba(245, 235, 213, 0.14);

  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 76px;
  --max: 1240px;
  --narrow: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: var(--narrow); }
.narrow-p { max-width: 620px; }

/* ============ TYPE ============ */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.display em { font-style: italic; color: var(--gold); font-weight: 400; }

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.h2 em { font-style: italic; color: var(--green); font-weight: 400; }
.h2.light { color: var(--paper); }
.h2.light em { color: var(--gold); }

.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.section-label.light { color: var(--gold); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(245, 235, 213, 0.85);
  max-width: 540px;
  margin-bottom: 34px;
}
.lead.light { color: rgba(245, 235, 213, 0.85); }
.lead-dark {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 620px;
  margin-bottom: 28px;
}

.micro {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 18px;
}

/* ============ BUTTONS ============ */
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-warm); transform: translateY(-1px); }
.btn-primary.light { background: var(--gold); color: var(--ink); }

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  font-size: 14px;
}
.btn-outline:hover { background: var(--gold); color: var(--ink); }

.btn-ghost {
  color: var(--paper);
  border: 1px solid rgba(245, 235, 213, 0.3);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-dark {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost-dark:hover { border-color: var(--green); color: var(--green); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--paper);
  transition: color 0.35s ease;
}
.brand-mark {
  width: 32px; height: 32px;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  color: var(--paper);
  transition: color 0.35s ease;
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--gold); }

/* Nav scrolled state (over cream body) */
.nav.scrolled {
  background: rgba(251, 247, 237, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav.scrolled .brand,
.nav.scrolled .nav-links { color: var(--ink); }
.nav.scrolled .brand-mark { color: var(--green); }
.nav.scrolled .nav-links a:hover { color: var(--green); }
.nav.scrolled .btn-outline { border-color: var(--green); color: var(--green); }
.nav.scrolled .btn-outline:hover { background: var(--green); color: var(--paper); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background: url('images/hero-dark.png') center/cover no-repeat;
  transform: scale(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,11,0.75) 0%, rgba(20,16,11,0.4) 40%, rgba(20,16,11,0.55) 75%, rgba(20,16,11,0.85) 100%),
    linear-gradient(90deg, rgba(20,16,11,0.6) 0%, rgba(20,16,11,0) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 32px 120px;
  width: 100%;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-strip {
  list-style: none;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 235, 213, 0.18);
  max-width: 640px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 235, 213, 0.85);
}
.hero-strip li {
  position: relative;
  padding-left: 16px;
}
.hero-strip li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}
.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 235, 213, 0.7);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-cue svg { animation: scrollBob 2.4s ease-in-out infinite; }
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ============ TRANSITION ============ */
.fade-to-cream {
  height: 120px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--paper) 100%);
  margin-top: -80px;
  position: relative;
  z-index: 3;
}

/* ============ STORY ============ */
.story {
  padding: 40px 0 120px;
  background: var(--paper);
}
.story-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 28px;
}
.story-cols p { margin-bottom: 20px; font-size: 17px; color: var(--ink-2); }
.story-cols .pull {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--green);
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin-top: 12px;
  font-style: italic;
}

/* ============ PRODUCT ============ */
.product {
  padding: 100px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.product-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pack-wrap {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--paper-3) 0%, var(--paper-2) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow:
    0 30px 60px -30px rgba(20, 16, 11, 0.28),
    0 12px 24px -12px rgba(20, 16, 11, 0.12);
}
.pack-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(20, 16, 11, 0.2));
}
.product-copy .h2 { margin-bottom: 20px; }
.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.spec dd {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
}
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ FORMULATION ============ */
.formulation {
  padding: 120px 0;
  background: var(--paper);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 50px;
  margin-bottom: 50px;
}
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(20, 16, 11, 0.18);
}
.form-num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}
.form-card h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}
.form-card p { font-size: 16px; color: var(--ink-2); margin-bottom: 20px; }
.form-list {
  list-style: none;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-list li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0 6px 20px;
  position: relative;
}
.form-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 1px;
  background: var(--green);
}
.claims-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 28px;
  background: var(--paper-2);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.claims-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.check::after {
  content: '';
  position: absolute;
  left: 5px; top: 8px;
  width: 4px; height: 8px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(45deg);
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  font-style: italic;
}

/* ============ RITUAL ============ */
.ritual {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  overflow: hidden;
}
.ritual-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.ritual-media {
  min-height: 640px;
  position: relative;
  overflow: hidden;
}
.ritual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ritual-copy {
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ritual-copy .h2 { margin-bottom: 40px; }
.ritual-steps {
  list-style: none;
  margin-bottom: 40px;
}
.ritual-steps li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line-light);
}
.ritual-steps li:last-child { border-bottom: 1px solid var(--line-light); }
.ritual-steps span {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  min-width: 40px;
  flex-shrink: 0;
}
.ritual-steps h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 4px;
}
.ritual-steps p {
  font-size: 15px;
  color: rgba(245, 235, 213, 0.7);
  line-height: 1.5;
}

/* ============ ORIGIN ============ */
.origin {
  padding: 120px 0;
  background: var(--paper);
  text-align: center;
}
.origin .section-label { display: inline-block; }
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 50px 0 30px;
  text-align: left;
}
.origin-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
  position: relative;
}
.origin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 2px;
  background: var(--gold);
}
.origin-city {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 4px;
  margin-top: 10px;
}
.origin-role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  font-weight: 500;
}
.origin-card p:last-child {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
}
.origin-note {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--muted);
  font-style: italic;
  margin-top: 20px;
}

/* ============ RESERVE ============ */
.reserve {
  background: var(--green-deep);
  color: var(--paper);
  padding: 120px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.reserve::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 160, 23, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(212, 160, 23, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.reserve-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.reserve .section-label { display: inline-block; }
.reserve .h2 { margin-bottom: 20px; }
.reserve-form {
  display: flex;
  gap: 10px;
  margin: 34px auto 20px;
  max-width: 520px;
  background: rgba(245, 235, 213, 0.08);
  border: 1px solid rgba(245, 235, 213, 0.25);
  padding: 8px;
  border-radius: 999px;
  transition: border-color 0.2s ease;
}
.reserve-form:focus-within { border-color: var(--gold); }
.reserve-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.reserve-form input::placeholder { color: rgba(245, 235, 213, 0.5); }
.reserve-note {
  font-size: 13px;
  color: rgba(245, 235, 213, 0.65);
  margin-top: 24px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(245, 235, 213, 0.7);
  padding: 80px 0 40px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 235, 213, 0.12);
}
.footer-brand .brand-mark {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer-brand .brand-word {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--paper);
  margin-bottom: 12px;
}
.footer-brand .tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  max-width: 280px;
}
.footer-col a,
.footer-col .footer-line {
  display: block;
  padding: 6px 0;
  color: rgba(245, 235, 213, 0.7);
  transition: color 0.2s ease;
  font-size: 14px;
}
.footer-col a:hover { color: var(--gold); }
.footer-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-base {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.footer-base .fine {
  color: rgba(245, 235, 213, 0.45);
  max-width: 720px;
  font-style: italic;
  line-height: 1.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn-outline) { display: none; }

  .hero-content { padding: calc(var(--nav-h) + 20px) 24px 100px; }
  .hero-strip { gap: 20px; font-size: 11px; }
  .scroll-cue { display: none; }

  .container { padding: 0 24px; }

  .story { padding: 20px 0 80px; }
  .story-cols { grid-template-columns: 1fr; gap: 24px; }

  .product { padding: 70px 0; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .pack-wrap { max-width: 340px; margin: 0 auto; }

  .formulation { padding: 80px 0; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-card { padding: 32px 26px; }

  .ritual-inner { grid-template-columns: 1fr; }
  .ritual-media { min-height: 380px; }
  .ritual-copy { padding: 60px 24px; }

  .origin { padding: 80px 0; }
  .origin-grid { grid-template-columns: 1fr; }

  .reserve { padding: 80px 24px; }
  .reserve-form { flex-direction: column; background: transparent; border: none; padding: 0; }
  .reserve-form input {
    background: rgba(245, 235, 213, 0.08);
    border: 1px solid rgba(245, 235, 213, 0.25);
    border-radius: 999px;
    padding: 14px 22px;
  }
  .reserve-form button { padding: 15px 30px; }

  .footer { padding: 60px 0 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 20px; padding-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost, .btn-ghost-dark { text-align: center; }
  .spec { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============ REVEAL (progressive enhancement) ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* When JS is disabled, no .reveal class exists on elements — they render normally.
   The JS adds .is-visible via IntersectionObserver, with a 3s safety net. */

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