/* ==============================================================
   ALAWEE · MAIN STYLES
   ==============================================================
   Design tokens, reset, typography, components, utilities.
   Used by every page on alawee.ng.
   ============================================================== */

:root {
  --forest: #0F3D2E;
  --forest-2: #1F5C44;
  --forest-dk: #0A2A1E;
  --moss: #4A7C59;
  --ochre: #C39B3F;
  --ochre-lt: #E6C773;
  --ochre-pale: #F0DEB4;
  --terra: #B85042;
  --butter: #F5E6C8;
  --cream: #FBF6EA;
  --cream-2: #F2EDDB;
  --paper: #FBF8F1;
  --ink: #17201B;
  --ink-soft: #2B302D;
  --muted: #6B7770;
  --line: #D9D1BC;
  --border: #D8D5CB;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ========== GRAIN TEXTURE OVERLAY ========== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ========== TYPOGRAPHY ========== */
.serif { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; }
.hand  { font-family: "Caveat", cursive; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 1.0; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

p { line-height: 1.6; }

a { color: var(--forest); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ochre); }

.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  display: inline-block;
}
.eyebrow.ink { color: var(--forest); }
.eyebrow.muted { color: var(--muted); }

.italic-accent { font-style: italic; color: var(--ochre); }

/* ========== LAYOUT ========== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 880px; }
.wrap.tight { max-width: 720px; }

section { position: relative; padding: 100px 0; }
section.compact { padding: 70px 0; }
@media (max-width: 640px) {
  section { padding: 60px 0; }
  section.compact { padding: 40px 0; }
}

.dark { background: var(--forest); color: var(--cream); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--cream); }
.dark p { color: rgba(251, 246, 234, 0.78); }
.dark a { color: var(--ochre); }
.dark a:hover { color: var(--ochre-lt); }

.cream-2 { background: var(--cream-2); }
.paper { background: var(--paper); }

/* ========== NAV ========== */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
nav.topnav.on-dark { background: transparent; }
nav.topnav.on-light {
  background: rgba(251, 246, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 209, 188, 0.4);
}
nav.topnav.scrolled {
  padding: 12px 0;
}
nav.topnav.on-dark.scrolled {
  background: rgba(15, 61, 46, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 162, 76, 0.15);
}
nav.topnav.on-light.scrolled {
  background: rgba(251, 246, 234, 0.95);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--cream);
}
nav.topnav.on-light .logo { color: var(--forest); }
.logo .dot-mark { color: var(--ochre); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: rgba(251, 246, 234, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
nav.topnav.on-light .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ochre); }
.nav-links a.active { color: var(--ochre); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--ochre);
  border-radius: 1px;
}
.nav-cta {
  padding: 10px 20px;
  background: var(--ochre);
  color: var(--forest) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ochre-lt); color: var(--forest) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(251, 246, 234, 0.3);
  color: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
nav.topnav.on-light .nav-toggle { border-color: rgba(15, 61, 46, 0.2); color: var(--ink-soft); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 30px 28px;
    background: var(--forest);
    gap: 18px;
    border-bottom: 1px solid rgba(212, 162, 76, 0.2);
  }
  nav.topnav.on-light .nav-links.mobile-open { background: var(--cream); }
  .nav-links.mobile-open a { font-size: 16px; }
  .nav-links.mobile-open .nav-cta { align-self: flex-start; }
  .nav-toggle { display: inline-block; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; border: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--ochre); color: var(--forest); }
.btn-primary:hover { background: var(--ochre-lt); color: var(--forest); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(251, 246, 234, 0.28);
}
.btn-ghost:hover { border-color: var(--ochre); color: var(--ochre); }
.btn-ghost.on-light {
  color: var(--forest);
  border-color: rgba(15, 61, 46, 0.25);
}
.btn-ghost.on-light:hover { border-color: var(--ochre); color: var(--ochre); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-lg { padding: 18px 32px; font-size: 15px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== HERO (reusable across pages) ========== */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero.dark::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(212, 162, 76, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero.dark::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 5px;
  background: var(--ochre);
}
.hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.hero .hero-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px; background: var(--ochre);
}
.hero h1 { margin-bottom: 24px; font-weight: 500; }
.hero h1 .accent { font-style: italic; color: var(--ochre); font-weight: 400; }
.hero h1 .strike {
  position: relative; display: inline-block;
}
.hero h1 .strike::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 52%;
  height: 3px; background: var(--ochre);
  transform: rotate(-2deg);
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(251, 246, 234, 0.78);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero.on-light p.lede { color: var(--ink-soft); }
.hero p.lede strong { color: var(--cream); font-weight: 600; }
.hero.on-light p.lede strong { color: var(--forest); font-weight: 600; }

/* Simple hero (no image, content-centered) */
.hero-simple {
  padding: 180px 0 90px;
  text-align: left;
}
.hero-simple h1 { max-width: 920px; margin-bottom: 28px; }
.hero-simple .lede { max-width: 720px; font-size: 18px; }

/* ========== CARDS ========== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 2px 0 var(--cream-2), 0 20px 40px rgba(15, 61, 46, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card.dark { background: var(--forest); color: var(--cream); border-color: var(--forest-2); }
.card.hover:hover { transform: translateY(-3px); box-shadow: 0 2px 0 var(--cream-2), 0 28px 50px rgba(15, 61, 46, 0.1); }

/* ========== FORMS ========== */
.field { display: block; margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ochre); }
.field textarea { min-height: 140px; resize: vertical; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* Inline waitlist form */
.waitlist-form {
  display: flex; gap: 10px;
  max-width: 520px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212, 162, 76, 0.22);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  align-items: center;
  transition: border-color .2s;
}
.on-light .waitlist-form {
  background: var(--white);
  border-color: var(--border);
}
.waitlist-form:focus-within { border-color: var(--ochre); }
.waitlist-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 0;
  outline: none;
  min-width: 0;
}
.on-light .waitlist-form input { color: var(--ink); }
.waitlist-form input::placeholder { color: rgba(251, 246, 234, 0.42); }
.on-light .waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form .btn { padding: 13px 22px; font-size: 14px; }

.form-success {
  margin-top: 18px; font-size: 14px;
  color: var(--ochre);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.form-success.show { opacity: 1; transform: translateY(0); }

/* ========== FAQ ACCORDION ========== */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  padding: 22px 0;
  background: transparent; border: none;
  text-align: left;
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.faq-q:hover { color: var(--forest); }
.faq-q .ic {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 300; font-size: 18px;
  transition: transform .25s ease, background .2s;
  color: var(--forest);
  font-family: "DM Sans", sans-serif;
}
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--ochre); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 24px; }
.faq-a p {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 15px;
  padding-right: 40px;
  margin-bottom: 10px;
}
.faq-a p:last-child { margin-bottom: 0; }

/* ========== FOOTER ========== */
footer.site-footer {
  background: var(--forest-dk);
  color: rgba(251, 246, 234, 0.55);
  padding: 70px 0 40px;
  font-size: 14px;
  border-top: 1px solid rgba(212, 162, 76, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(212, 162, 76, 0.08);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { color: var(--cream); display: block; margin-bottom: 12px; }
.footer-brand p { max-width: 280px; line-height: 1.6; }
.footer-brand .social {
  display: flex; gap: 12px; margin-top: 20px;
}
.footer-brand .social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(212, 162, 76, 0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ochre);
  transition: background .2s, color .2s;
}
.footer-brand .social a:hover { background: var(--ochre); color: var(--forest); }
.footer-col h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ochre);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(251, 246, 234, 0.65);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--ochre); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(251, 246, 234, 0.4);
}
.footer-bottom .hand-note {
  color: var(--ochre);
  font-family: "Caveat", cursive;
  font-size: 18px;
}
.footer-regulatory {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 162, 76, 0.05);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(251, 246, 234, 0.42);
  max-width: 840px;
}
.footer-regulatory strong { color: rgba(251, 246, 234, 0.72); }

/* ========== FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.in { opacity: 1; transform: translateY(0); }

/* ========== REUSABLE SECTIONS ========== */
.section-head { text-align: center; margin-bottom: 60px; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 20px; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.section-head.left { text-align: left; margin-left: 0; }

/* Stat grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px 40px;
}
.stat {
  border-left: 2px solid var(--ochre);
  padding-left: 22px;
}
.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--ochre);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 14px;
  color: rgba(251, 246, 234, 0.7);
  line-height: 1.5;
  max-width: 230px;
}
.on-light .stat-label { color: var(--ink-soft); }

/* Product grid (for products page etc) */
.prod-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.prod-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212, 162, 76, 0.14);
  border-radius: 18px;
  padding: 34px 28px;
  transition: transform .3s, border-color .3s, background .3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.prod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 162, 76, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.on-light .prod-card {
  background: var(--white);
  border-color: var(--border);
  box-shadow: 0 2px 0 var(--cream-2), 0 20px 40px rgba(15, 61, 46, 0.04);
}
.on-light .prod-card:hover { border-color: var(--ochre); }
.prod-card h3 { color: var(--cream); font-size: 22px; margin-bottom: 10px; }
.on-light .prod-card h3 { color: var(--ink); }
.prod-card .prod-sub {
  font-size: 14px; color: rgba(251, 246, 234, 0.62);
  line-height: 1.55; margin-bottom: 20px;
}
.on-light .prod-card .prod-sub { color: var(--muted); }
.prod-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(212, 162, 76, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.prod-icon svg { width: 26px; height: 26px; color: var(--ochre); }
.on-light .prod-icon { background: var(--butter); }
.prod-card .prod-stat {
  padding-top: 18px;
  border-top: 1px solid rgba(212, 162, 76, 0.12);
  font-size: 11px;
  color: var(--ochre);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.prod-card .prod-stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 24px;
  color: var(--cream);
  margin-top: 4px;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-transform: none;
}
.on-light .prod-card .prod-stat strong { color: var(--ink); }

/* Callout box (used across pages) */
.callout {
  background: var(--forest);
  color: var(--cream);
  padding: 28px 32px;
  border-radius: 16px;
  position: relative;
  max-width: 560px;
}
.callout::before {
  content: '"'; position: absolute; top: -14px; left: 24px;
  font-family: "Fraunces", serif;
  font-size: 80px; color: var(--ochre); line-height: 1;
}
.callout p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  margin-top: 10px;
  color: var(--cream);
}
.callout .attribution {
  display: block;
  margin-top: 14px;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-size: 12px;
  color: rgba(251, 246, 234, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "Next page" link (used at the bottom of content pages) */
.next-page {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 0; margin-top: 60px;
  border-top: 1px solid var(--border);
  gap: 20px; flex-wrap: wrap;
}
.next-page .np-label { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.next-page .np-title { font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; color: var(--ink); }
.next-page a { color: var(--forest); font-weight: 600; }

/* Utility */
.max-prose { max-width: 720px; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 60px; }
.mb-lg { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.rule {
  height: 2px; background: var(--ochre); width: 60px; margin: 20px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }
