/* ─────────────────────────────────────────────────────────────────────────
   Montessori Makers Group — Foundations (Leadership Meridian — Dark Theme)
   Color + Type tokens. Import this file and use the variables.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'TheSeasons';
  src: url('./fonts/TheSeasons-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  /* ── Brand colors ──────────────────────────────────────────────── */
  --navy:           #0e1a7a;
  --navy-deep:      #080e4a;
  --navy-hover:     #162270;
  --navy-card:      #1a2a8a;
  --white:          #ffffff;
  --black:          #000000;
  --gold:           #d6a758;
  --gold-hover:     #c09240;
  --gold-mid:       #e1be7a;
  --gold-soft:      #f0d9a1;
  --gold-dark:      #e1be7a;
  --gold-deep:      #d6a758;

  /* ── Surfaces (dark theme) ─────────────────────────────────────── */
  --bg:             #0e1a7a;
  --bg-cream:       rgba(255,255,255,0.04);
  --bg-white:       rgba(255,255,255,0.06);
  --border:         rgba(255,255,255,0.10);
  --border-soft:    rgba(255,255,255,0.06);
  --border-strong:  rgba(255,255,255,0.15);

  /* ── Text (dark theme) ─────────────────────────────────────────── */
  --fg:             #f0eeea;
  --fg-body:        rgba(255,255,255,0.82);
  --fg-secondary:   rgba(255,255,255,0.65);
  --fg-muted:       rgba(255,255,255,0.45);
  --fg-soft:        rgba(255,255,255,0.35);
  --fg-on-navy:     #FFFFFF;
  --fg-footer:      rgba(255,255,255,0.45);
  --fg-footer-hover:rgba(255,255,255,0.7);
  --fg-footer-label:rgba(255,255,255,0.4);

  /* ── Type families ─────────────────────────────────────────────── */
  --font-heading:   'TheSeasons', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Montserrat', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* ── Type scale ────────────────────────────────────────────────── */
  --t-display-xl:   5.75rem;
  --t-display-lg:   4.5rem;
  --t-display:      3.5rem;
  --t-h1:           3rem;
  --t-h2:           2.25rem;
  --t-h3:           1.5rem;
  --t-h4:           1.25rem;
  --t-body-lg:      1.125rem;
  --t-body:         1rem;
  --t-body-sm:      0.875rem;
  --t-caption:      0.75rem;
  --t-eyebrow:      0.6875rem;

  --tracking-eyebrow: 0.24em;
  --tracking-tight:   -0.01em;
  --tracking-button:  0.07em;

  /* ── Spacing (8px base) ────────────────────────────────────────── */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.25rem;  --s-6: 1.5rem;  --s-8: 2rem;     --s-10: 2.5rem;
  --s-12: 3rem;    --s-16: 4rem;   --s-20: 5rem;    --s-24: 6rem;
  --s-32: 8rem;    --s-40: 10rem;

  /* ── Section padding ──────────────────────────────────────────── */
  --section-y-sm: 5rem;
  --section-y-md: 7rem;
  --section-y-lg: 10rem;
  --gutter:       1.5rem;
  --gutter-lg:    2.5rem;
  --max-w:        80rem;

  /* ── Radii ─────────────────────────────────────────────────────── */
  --radius-0: 0;
  --radius-sm: 2px;

  /* ── Shadows / elevation ───────────────────────────────────────── */
  --shadow-card:    0 12px 32px rgba(0,0,0,0.25);
  --shadow-hover:   0 16px 40px rgba(0,0,0,0.30);
  --shadow-image:   0 8px 40px rgba(0,0,0,0.40);

  /* ── Motion ────────────────────────────────────────────────────── */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --d-fast:         0.18s;
  --d-base:         0.22s;
  --d-slow:         0.55s;
}

/* ── Semantic element styles ─────────────────────────────────────── */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  line-height: 1.05;
}
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h1); }
h3 { font-size: var(--t-h3); line-height: 1.3; }
h4 { font-size: var(--t-h4); line-height: 1.35; }

p  { font-family: var(--font-sans); color: var(--fg-body); line-height: 1.75; }

a  { color: var(--gold); transition: color var(--d-fast) ease, opacity var(--d-fast) ease; }
a:hover { color: var(--gold-mid); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--gold);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-sans);
  font-size: 13px; letter-spacing: var(--tracking-button);
  padding: 1rem 2.25rem;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background var(--d-fast) ease, color var(--d-fast) ease, border-color var(--d-fast) ease;
}
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: var(--gold-hover); color: var(--navy); }
.btn-accent { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-accent:hover { background: var(--gold-hover); }
.btn-ghost-light { background: transparent; color: var(--fg); border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }

/* Card — dark card on dark bg */
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  padding: 2.25rem; border-radius: 0;
  transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease, transform var(--d-fast) var(--ease-out);
}
.card:hover { border-color: rgba(214,167,88,0.45); box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Grain */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px; opacity: 0.03; mix-blend-mode: soft-light;
}
