/* ============================================================
   INCUSA Kaduna Campus — Theme Override
   ------------------------------------------------------------
   Loaded AFTER style.css. Overrides design tokens and adds a
   Kaduna-specific visual identity:
     - Warmer Northern Nigeria palette: terracotta + sahel gold
       + deep forest green for the primary
     - More architectural display font (Fraunces) paired with Inter
     - Subtle "kente weave" texture on hero overlay
     - Slightly tighter rounded corners and stronger drop shadows
   ============================================================ */

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

:root, [data-theme="light"] {
  /* Typography (override) */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Background system — warm sand */
  --color-bg: #FBF7EF;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5EFE2;
  --color-surface-offset: #EFE6D2;

  /* Brand: deep forest green primary, sahel gold accent, terracotta secondary */
  --color-primary: #1F4A33;          /* deep forest green */
  --color-primary-hover: #163A26;
  --color-secondary: #B8552B;        /* terracotta */
  --color-secondary-hover: #9D4622;
  --color-accent: #D9A441;           /* sahel gold */
  --color-accent-hover: #C28E2D;
  --color-accent-light: rgba(217, 164, 65, 0.16);

  --color-text: #1A1F1B;
  --color-text-muted: #5C5849;
  --color-text-faint: #948C75;
  --color-text-inverse: #FBF7EF;

  --color-border: #DDD3BB;
  --color-divider: #E8E0CC;

  --color-success: #2F7D4F;
  --color-error: #C4452B;

  --shadow-sm: 0 1px 3px rgba(31, 74, 51, 0.08);
  --shadow-md: 0 6px 18px rgba(31, 74, 51, 0.10);
  --shadow-lg: 0 16px 44px rgba(31, 74, 51, 0.14);
  --shadow-xl: 0 24px 64px rgba(31, 74, 51, 0.18);

  /* Hero gets a warm forest-to-terracotta gradient with a faint diagonal weave */
  --hero-overlay: linear-gradient(135deg, rgba(31, 74, 51, 0.85) 0%, rgba(184, 85, 43, 0.62) 100%);

  /* Slightly tighter radii for a more architectural feel */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

[data-theme="dark"] {
  --color-bg: #0F1A14;
  --color-surface: #16241B;
  --color-surface-2: #1C2D22;
  --color-surface-offset: #11211A;

  --color-primary: #8FCDA8;
  --color-primary-hover: #B0DEC1;
  --color-secondary: #E89473;
  --color-secondary-hover: #F0AC91;
  --color-accent: #E8BD66;
  --color-accent-hover: #F0CD83;
  --color-accent-light: rgba(232, 189, 102, 0.18);

  --color-text: #E8E4D8;
  --color-text-muted: #A39E8E;
  --color-text-faint: #6E6A5C;
  --color-text-inverse: #0F1A14;

  --color-border: #2A3A30;
  --color-divider: #1F2D24;

  --hero-overlay: linear-gradient(135deg, rgba(15, 26, 20, 0.90) 0%, rgba(184, 85, 43, 0.55) 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0F1A14;
    --color-surface: #16241B;
    --color-surface-2: #1C2D22;
    --color-surface-offset: #11211A;
    --color-primary: #8FCDA8;
    --color-primary-hover: #B0DEC1;
    --color-secondary: #E89473;
    --color-secondary-hover: #F0AC91;
    --color-accent: #E8BD66;
    --color-accent-hover: #F0CD83;
    --color-accent-light: rgba(232, 189, 102, 0.18);
    --color-text: #E8E4D8;
    --color-text-muted: #A39E8E;
    --color-text-faint: #6E6A5C;
    --color-text-inverse: #0F1A14;
    --color-border: #2A3A30;
    --color-divider: #1F2D24;
    --hero-overlay: linear-gradient(135deg, rgba(15, 26, 20, 0.90) 0%, rgba(184, 85, 43, 0.55) 100%);
  }
}

/* ============================================================
   Hero — add subtle diagonal weave pattern over the overlay
   ============================================================ */
.hero, [class*="hero"] {
  position: relative;
}
.hero::after, [class*="hero"]::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(217, 164, 65, 0.05) 0 2px,
      transparent 2px 14px),
    repeating-linear-gradient(-45deg,
      rgba(184, 85, 43, 0.04) 0 2px,
      transparent 2px 18px);
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ============================================================
   Display headings — let Fraunces show its character
   ============================================================ */
h1, h2, h3, .hero__title, .section__title {
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
}
h1, .hero__title { font-weight: 700; font-style: normal; }
h2 { font-weight: 600; }

/* ============================================================
   Buttons — slightly square + warm shadow
   ============================================================ */
.btn, .header-cta, button.btn-primary, .cta-button, [class*="cta"] {
  border-radius: var(--radius-md);
}
.header-cta, .btn-primary {
  box-shadow: 0 4px 16px rgba(184, 85, 43, 0.22);
}

/* ============================================================
   Section accents — Kaduna gold rule under section titles
   ============================================================ */
.section__title::after,
section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
}

/* ============================================================
   Campus banner (top strip identifying this campus)
   ============================================================ */
.campus-banner {
  background: linear-gradient(90deg, var(--color-primary), #2A6444 60%, var(--color-secondary));
  color: #FFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.campus-banner__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.campus-banner__pill {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.campus-banner__divider { opacity: 0.55; }
.campus-banner__link {
  color: #FFF;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.55);
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
}
.campus-banner__link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   Cards — slight terra-warm border highlight on hover
   ============================================================ */
[class*="card"]:hover {
  border-color: var(--color-accent);
}

/* ============================================================
   Footer accent
   ============================================================ */
.footer, footer {
  border-top: 3px solid var(--color-accent);
}
