/* ============================================================
   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; }


/* ============================================================
   PHASE 5 — HYBRID MOTION + NEW COMPONENTS
   Organic particles · kinetic type · clip-path reveals ·
   counters · CTA pulse · card lift
   ============================================================ */

/* ── MOTION TOKENS ────────────────────────────────────────── */
:root {
  --ease-organic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 220ms;
  --dur-med: 560ms;
  --dur-slow: 900ms;
}

/* ── CLIP-PATH SECTION REVEAL (T11) ────────────────────────── */
.clip-reveal {
  clip-path: inset(12% 0 12% 0 round 14px);
  opacity: 0.92;
  will-change: clip-path, opacity;
}
.clip-reveal.in-view {
  clip-path: inset(0 0 0 0 round 0);
  opacity: 1;
  transition: clip-path 1.1s var(--ease-organic),
              opacity 1.1s var(--ease-organic);
}

/* ── KINETIC TYPOGRAPHY (T04) ──────────────────────────────── */
.kinetic-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 110%, 0) rotate(6deg);
  will-change: transform, opacity;
}
.kinetic-char.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: transform 0.9s var(--ease-expo-out),
              opacity 0.9s var(--ease-expo-out);
}
.kinetic-wrap {
  display: inline-block;
  overflow: hidden;
  line-height: var(--lead-tight);
  padding-bottom: 0.08em;
}
.hero-word em.gold-shimmer-inline {
  background: linear-gradient(90deg, #C5973B 0%, #F0D48A 45%, #B8942A 70%, #C5973B 100%);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5.5s ease-in-out infinite;
  animation-delay: 1.4s;
  font-style: italic;
}

/* ── CTA PULSE (heartbeat glow) ────────────────────────────── */
.btn-gold {
  animation: cta-pulse 3.2s var(--ease-gentle) infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(197, 151, 59, 0.22); }
  50%      { box-shadow: 0 6px 22px rgba(197, 151, 59, 0.42); }
}
.btn-gold:hover { animation: none; }

/* ── STAT COUNTER ANIMATION ────────────────────────────────── */
[data-counter] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}

/* ── BENTO TAGS (new row under each tile body) ─────────────── */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.82);
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(197, 151, 59, 0.25);
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.bento-tag:hover {
  background: rgba(197, 151, 59, 0.12);
  border-color: rgba(197, 151, 59, 0.45);
}
/* Cream-text bento tile tags (tile 4) */
.bento-tile--cream-text .bento-tag {
  color: rgba(27, 58, 45, 0.78);
  background: rgba(27, 58, 45, 0.04);
  border-color: rgba(27, 58, 45, 0.18);
}
.bento-tile--cream-text .bento-tag:hover {
  background: rgba(197, 151, 59, 0.08);
  border-color: rgba(197, 151, 59, 0.4);
}
/* Gold-tile tags (tile 3) */
.bento-tags--on-gold .bento-tag {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.bento-tags--on-gold .bento-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── BENTO TILE HOVER LIFT ─────────────────────────────────── */
.bento-tile {
  transition: transform var(--dur-med) var(--ease-expo-out),
              box-shadow var(--dur-med) var(--ease-expo-out),
              border-color var(--dur-med) var(--ease-expo-out);
  will-change: transform;
}
.bento-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(14, 30, 22, 0.25),
              0 0 0 1px rgba(197, 151, 59, 0.35);
}

/* ── COUNTDOWN FOOTNOTE ────────────────────────────────────── */
.countdown-footnote {
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.55);
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

/* ── FOOTER LOCATION LINE ──────────────────────────────────── */
.footer-location {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.78;
}

/* ── INSTAGRAM SECTION (S7) ────────────────────────────────── */
.s-instagram {
  padding-block: var(--section-y);
  background: linear-gradient(180deg, var(--cream) 0%, var(--offwhite) 100%);
  text-align: center;
}
.s-instagram .container { max-width: 720px; }
.instagram-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.instagram-headline {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 300;
  letter-spacing: var(--track-tight);
  line-height: var(--lead-tight);
  color: var(--ink);
  margin-bottom: 24px;
}
.instagram-headline em {
  font-style: italic;
  color: var(--gold);
}
.instagram-copy {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: var(--lead-body);
  max-width: 520px;
  margin: 0 auto 32px;
}
.s-instagram .btn-gold {
  margin: 0 auto;
}

/* ── ORIGIN PULL QUOTE + SIGNATURE (about page) ────────────── */
.origin-signature {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-gold);
  text-align: left;
}
.origin-signature-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  margin-bottom: 4px;
}
.origin-signature-name strong { font-weight: 500; }
.origin-signature-role {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── MISSION ATTRIBUTION ───────────────────────────────────── */
.mission-attribution {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
  text-align: center;
}

/* ── KINDRED CARD TAGLINE (italic refinement) ──────────────── */
.kindred-card-tagline em {
  font-style: italic;
  color: var(--gold-light);
}

/* ── MOBILE / RESPONSIVE TUNING ────────────────────────────── */
@media (max-width: 768px) {
  .bento-tile:hover { transform: translateY(-4px); }
  .clip-reveal { clip-path: inset(6% 0 6% 0 round 10px); }
  .countdown-footnote { font-size: 12px; }
  .instagram-headline { font-size: clamp(28px, 8vw, 44px); }
}

/* ── BRAND MARQUEE STRIP (between hero and Cotique) ────────── */
.s-marquee {
  background: var(--forest-deep);
  border-top: 1px solid rgba(197, 151, 59, 0.18);
  border-bottom: 1px solid rgba(197, 151, 59, 0.18);
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 32px) 0;
  position: relative;
}
.s-marquee::before,
.s-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}
.s-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--forest-deep), transparent);
}
.s-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--forest-deep), transparent);
}
.marquee-track {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: var(--track-tight);
  line-height: 1;
  color: var(--cream);
  white-space: nowrap;
}
.marquee-item em {
  font-style: italic;
  color: var(--gold-light);
}
.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(197, 151, 59, 0.5);
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ── ANIMATED H2 UNDERLINE (draws on view) ────────────────── */
.h2-underline {
  display: inline-block;
  height: 2px;
  width: 64px;
  background: var(--gold);
  margin-top: 18px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-expo-out);
}
.h2-underline.in {
  transform: scaleX(1);
}

/* ── HERO PARALLAX LAYER ──────────────────────────────────── */
.hero-overlay {
  will-change: transform;
}

/* ── BENTO REVEAL AMPLIFIED ───────────────────────────────── */
.bento-tile {
  perspective: 1200px;
}
.bento-tile.bento-in {
  animation: bento-pop 0.95s var(--ease-expo-out) both;
}
@keyframes bento-pop {
  0%   { opacity: 0; transform: translate3d(0, 60px, 0) rotateX(8deg) scale(0.96); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0deg) scale(1); }
}

/* ── BIGGER COUNTER NUMBERS (when used as feature stat) ───── */
.bento-stat-num {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── MARQUEE MOBILE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .marquee-item { font-size: clamp(22px, 7vw, 32px); }
  .marquee-track { animation-duration: 28s; }
}

/* ── REDUCED MOTION — respect user preference ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn-gold { animation: none; }
  .kinetic-char { opacity: 1; transform: none; }
  .clip-reveal { clip-path: none; opacity: 1; }
  .gold-shimmer, .hero-word em.gold-shimmer-inline {
    animation: none;
    -webkit-text-fill-color: var(--gold);
    background: none;
  }
  .marquee-track { animation: none; }
  .bento-tile.bento-in { animation: none; opacity: 1; }
  .h2-underline { transform: scaleX(1); }
}
