/* ============================================================
   EVERKIND AFRICA — DESIGN SYSTEM
   "Nature's touch. Everyday."
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── COLOR TOKENS ─────────────────────────────────────────── */
:root {
  --forest:       #1B3A2D;
  --forest-deep:  #0E1E16;
  --forest-mid:   #244D3C;
  --gold:         #C5973B;
  --gold-dark:    #B8942A;
  --gold-light:   #D4AF6A;
  --cream:        #F5F0E8;
  --cream-dark:   #EDE6D8;
  --offwhite:     #FAFAF7;
  --ink:          #0E1E16;
  --muted:        #6B7C74;
  --muted-light:  #9AAD9F;
  --border:       rgba(27, 58, 45, 0.12);
  --border-gold:  rgba(197, 151, 59, 0.25);
  --overlay:      rgba(14, 30, 22, 0.60);
  --overlay-soft: rgba(14, 30, 22, 0.35);

  /* Gradients */
  --grad-forest:  linear-gradient(160deg, #0E1E16 0%, #1B3A2D 100%);
  --grad-gold:    linear-gradient(135deg, #C5973B 0%, #D4AF6A 50%, #B8942A 100%);
  --grad-cream:   linear-gradient(180deg, #F5F0E8 0%, #FAFAF7 100%);
  --grad-hero:    linear-gradient(to bottom, rgba(14,30,22,0.5) 0%, rgba(14,30,22,0.3) 60%, rgba(14,30,22,0.7) 100%);
}

/* ── TYPOGRAPHY TOKENS ────────────────────────────────────── */
:root {
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --text-hero:  clamp(56px, 9vw, 128px);
  --text-h1:    clamp(40px, 6vw, 80px);
  --text-h2:    clamp(30px, 4vw, 56px);
  --text-h3:    clamp(22px, 2.5vw, 36px);
  --text-h4:    clamp(18px, 1.8vw, 26px);
  --text-lg:    clamp(17px, 1.3vw, 20px);
  --text-base:  clamp(15px, 1.1vw, 17px);
  --text-sm:    14px;
  --text-label: 11px;

  --track-hero:  -0.04em;
  --track-tight: -0.02em;
  --track-label: 0.14em;
  --track-wide:  0.08em;

  --lead-hero:  1.02;
  --lead-tight: 1.2;
  --lead-body:  1.68;
  --lead-loose: 1.85;
}

/* ── SPACING ──────────────────────────────────────────────── */
:root {
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;
  --sp-24: 192px;

  --section-y:  clamp(80px, 12vw, 160px);
  --section-x:  clamp(24px, 6vw, 80px);
  --container:  1280px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;
}

/* ── BASE STYLES ──────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lead-body);
  color: var(--ink);
  background: var(--offwhite);
  overflow-x: hidden;
}

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--section-x);
}

.section-pad {
  padding-block: var(--section-y);
}

/* ── TYPOGRAPHY HELPERS ───────────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}

.display-serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-tight);
  line-height: var(--lead-tight);
}

.body-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lead-body);
  color: var(--muted);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197, 151, 59, 0.35);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 240, 232, 0.5);
}
.btn-outline-cream:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--gold);
  padding-left: 0;
  padding-right: 0;
  gap: 6px;
}
.btn-text::after {
  content: '→';
  display: inline-block;
  transition: transform 220ms ease;
}
.btn-text:hover::after { transform: translateX(4px); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* delay helpers */
.d-100 { transition-delay: 0.1s; }
.d-200 { transition-delay: 0.2s; }
.d-300 { transition-delay: 0.3s; }
.d-400 { transition-delay: 0.4s; }
.d-500 { transition-delay: 0.5s; }

/* ── GOLD SHIMMER TEXT ────────────────────────────────────── */
.gold-shimmer {
  background: linear-gradient(90deg, #C5973B 0%, #F0D48A 40%, #B8942A 70%, #C5973B 100%);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

/* ── GRAIN OVERLAY ────────────────────────────────────────── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* ── WHATSAPP FLOAT BUTTON ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.40);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--forest-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── SELECTION ────────────────────────────────────────────── */
::selection { background: var(--gold); color: #fff; }
