/* ============================================================
   IM-PACT — Design System
   Intelligence-Led. Strategy-Driven.
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand accents — IM-PACT green / gold / silver */
  --gold:        #C9A227;   /* metallic gold (primary accent) */
  --gold-light:  #E6C766;
  --gold-muted:  #9C7B1A;
  --teal:        #1E7A4A;   /* green secondary accent */
  --sage:        #2EA866;   /* emerald highlight */

  /* Deep forest green (footer / dark bands) */
  --forest:      #0C2E1E;
  --forest-deep: #07210F;

  /* Surfaces (light / cream) */
  --ink:         #FBFAF4;   /* primary background */
  --ink-soft:    #ECF2EC;   /* soft green-tint section */
  --ink-mid:     #FFFFFF;   /* cards */
  --stone:       #F6F3EA;   /* cream */
  --border:      #E3DECD;   /* warm hairline border */

  /* Text */
  --white:       #0E261B;   /* headings (deep green-black) */
  --silver:      #36453D;   /* body copy */
  --mist:        #5E6E63;   /* secondary copy */
  --slate:       #8A938B;   /* muted copy */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container:   1200px;
  --radius:      4px;
  --radius-lg:   12px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --fast:        0.18s;
  --med:         0.35s;
  --slow:        0.6s;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--silver);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* Custom cursor removed for accessibility; legacy elements hidden */
#cursor-dot, #cursor-ring { display: none !important; }

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Typography ─────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
}
.body-lg { font-size: 1.1rem; line-height: 1.75; color: var(--mist); }
.body-md { font-size: 0.95rem; line-height: 1.7; color: var(--mist); }
.body-sm { font-size: 0.85rem; line-height: 1.6; color: var(--slate); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--ink); }
.section-soft { background: var(--ink-soft); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--med) var(--ease), padding var(--med) var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 41, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 130px;
  width: auto;
  transition: height var(--med) var(--ease);
}
.nav.scrolled .nav-logo img { height: 64px; }
.nav-logo-text { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.03em;
  transition: color var(--fast) var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--med) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--fast) var(--ease);
}
.btn-nav:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--silver);
  transition: all var(--fast) var(--ease);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--silver);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--fast);
}
.nav-mobile a:hover { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--fast) var(--ease);
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.btn svg { transition: transform var(--fast) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ── Section Labels ──────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--ink-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--med) var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,0.04), transparent);
  opacity: 0;
  transition: opacity var(--med);
}
.card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 47, 37, 0.12);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
}

/* ── Stats ───────────────────────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
}

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--forest);
  border-top: 1px solid var(--forest-deep);
  padding: 70px 0 40px;
  color: #C7D6CD;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}
.footer-brand-text {
  font-size: 0.88rem;
  color: #AFC2B8;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E6C766;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #AFC2B8;
  padding: 5px 0;
  transition: color var(--fast);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: #8DA399; }
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AFC2B8;
  font-size: 0.75rem;
  transition: all var(--fast);
}
.footer-social a:hover {
  border-color: #E6C766;
  color: #E6C766;
}

/* ── Gradient Background Effects ───────────────────────────── */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-gold {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
}
.blob-teal {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,168,102,0.06) 0%, transparent 70%);
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  background: radial-gradient(ellipse 60% 70% at 82% 12%, rgba(46,168,102,0.20), transparent 55%),
              linear-gradient(160deg, #0E3322 0%, #0C2E1E 55%, #0A2618 100%);
}
/* page-hero text reads light on green (keeps gold accent spans) */
.page-hero .display-lg, .page-hero .display-md, .page-hero h1 { color: #FFFFFF !important; }
.page-hero .body-lg, .page-hero .body-md, .page-hero p { color: #C4D2C7 !important; }
.page-hero .label { color: var(--gold-light); }
.page-hero .label, .page-hero .section-tag::before { /* keep gold accent */ }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--ink-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--slate); }
.form-select option { background: var(--ink-mid); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .container { padding: 0 24px; }
  .nav-links, .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
