@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ================================================================
   TROOPAC — style.css
   Responsibilities:
     1  Design Tokens  (CSS custom properties / variables)
     2  Reset & Base   (*, html, body, img, a)
     3  Keyframe Animations
     4  Scroll Reveal System
================================================================ */


/* ================================================================
   1. DESIGN TOKENS
================================================================ */

:root {
  /* ── Brand Colours (Restored for premium organic contrast) ── */
  --color-primary: #0B3D2E;
  /* Rich forest green */
  --color-primary-mid: #1A5C3A;
  /* Mid green */
  --color-primary-light: #E6F4EC;
  /* Light mint green tint */
  --color-accent: #22C55E;
  /* Vibrant accent green */
  --color-gold: #C8922F;
  /* Gold */

  /* ── Dark Palette ── */
  --color-dark: #060E0A;
  /* Deep dark charcoal */
  --color-dark-alt: #0E1F16;
  /* Deep dark green-charcoal */

  /* ── Light Palette (Warm Oatmeals & Soft Creams for backgrounds) ── */
  --color-bg: #FAF6EE;
  /* Warm soft cream */
  --color-bg-alt: #F2EBE0;
  /* Warm oatmeal */
  --color-surface: #FFFFFF;
  /* White surface */

  /* ── Text ── */
  --color-text: #0F1A13;
  /* Deep charcoal-green text */
  --color-text-mid: #2D4A39;
  /* Muted dark green-charcoal */
  --color-muted: #677A6E;
  /* Muted grey-green */

  /* ── UI ── */
  --color-border: #E6E1D8;
  /* Warm oatmeal border */
  --color-wa: #25D366;
  /* Vibrant WhatsApp brand green */

  /* ── Typography ── */
  --font-serif: 'Playfair Display', 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --font-heading: var(--font-sans);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* ── Radius Scale ── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 24px;

  /* ── Elevation ── */
  --shadow-sm: 0 4px 16px rgba(28, 32, 29, .06);
  --shadow-lg: 0 12px 40px rgba(28, 32, 29, .1);

  /* ── Spacing Scale (Increased by ~20% for breathing space) ── */
  --space-xs: 0.3rem;
  /* ~5px */
  --space-sm: 0.6rem;
  /* ~10px */
  --space-md: 1.2rem;
  /* ~19px */
  --space-lg: 1.8rem;
  /* ~29px */
  --space-xl: 2.4rem;
  /* ~38px */
  --space-2xl: 3.6rem;
  /* ~58px */
  --space-3xl: 6rem;
  /* ~96px */
}


/* ================================================================
   2. RESET & BASE
================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Smooth page entry — eliminates the hard white flash on navigation */
  animation: page-enter .28s cubic-bezier(.22, .61, .36, 1) both;
}

/* Fade out before leaving — applied by JS on link click */
body.is-leaving {
  animation: none;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

h1,
h2,
.h1,
.h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

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

a {
  color: inherit;
}


/* ================================================================
   3. KEYFRAME ANIMATIONS
================================================================ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes anim-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.8);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pop-up {
  from {
    opacity: 0;
    transform: scale(.7) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ================================================================
   4. SCROLL REVEAL SYSTEM
================================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .65s cubic-bezier(.22, .61, .36, 1),
    transform .65s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}