/* =============================================================
   Hopewell MSP — Colors & Type Foundations
   Source of truth for tokens used across all Hopewell sites.
   ============================================================= */

/* ----- Webfont (self-hosted InterVariable) -----
   Single variable file covers weights 100–900 + roman/italic.       */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2-variations'),
       url('fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable-Italic.woff2') format('woff2-variations'),
       url('fonts/InterVariable-Italic.woff2') format('woff2');
}

:root {
  /* ---------- BRAND COLORS ----------
     Anchored on the Hopewell teal + gold pair from the logo.        */
  --teal:           #004360;   /* primary, dark teal — logo wordmark */
  --teal-light:     #005a80;
  --teal-dark:      #002e42;

  --gold:           #fdb912;   /* accent — logo emblem               */
  --gold-light:     #fdc73f;
  --gold-dark:      #e5a510;

  --navy:           #0a1628;   /* default page background            */
  --navy-light:     #121f36;

  --slate:          #94a3b8;   /* secondary text on navy             */
  --slate-light:    #cbd5e1;   /* primary body text on navy          */
  --off-white:      #f8fafc;
  --light-gray:     #e2e8f0;
  --white:          #ffffff;

  /* ---------- SEMANTIC FOREGROUNDS / BACKGROUNDS ----------
     Dark-first: site is navy by default, white text on top.         */
  --bg-page:        var(--navy);
  --bg-elevated:    var(--navy-light);
  --bg-section:     var(--teal-dark);     /* alternating section fill */
  --bg-band:        var(--teal);          /* CTA / case-study bands   */

  --fg-1:           var(--white);         /* primary heading text     */
  --fg-2:           var(--slate-light);   /* body, lead paragraphs    */
  --fg-3:           var(--slate);         /* meta, captions, dividers */
  --fg-muted:       rgba(255, 255, 255, 0.4);
  --fg-on-gold:     var(--navy);          /* black text on gold CTA   */

  --accent:         var(--gold);
  --accent-hover:   var(--gold-light);

  --border-hairline: rgba(255, 255, 255, 0.05);
  --border-soft:     rgba(255, 255, 255, 0.10);
  --border-strong:   rgba(255, 255, 255, 0.20);
  --border-accent:   rgba(253, 185, 18, 0.30);

  /* ---------- GLASS / CARD SURFACES ---------- */
  --card-bg:        linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --card-bg-hover:  linear-gradient(145deg, rgba(253,185,18,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --card-border:    var(--border-soft);
  --card-border-hover: var(--border-accent);

  --gradient-dark:   linear-gradient(160deg, #0a1628 0%, #002e42 50%, #004360 100%);
  --gradient-band:   linear-gradient(180deg, var(--navy) 0%, var(--teal-dark) 100%);

  /* ---------- TYPE SYSTEM ---------- */
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — driven by the marketing site, where hero is the
     biggest single piece of type and step-down lands at small caps. */
  --fs-display: clamp(2.5rem, 4vw + 1rem, 4.5rem);   /* hero h1     ~72px */
  --fs-h1:      clamp(2rem, 2.5vw + 1rem, 3rem);     /* page h1     ~48px */
  --fs-h2:      clamp(1.75rem, 1.5vw + 1rem, 2.25rem);/* section    ~36px */
  --fs-h3:      1.25rem;                              /* card title  20px */
  --fs-lead:    1.125rem;                             /* lead p      18px */
  --fs-body:    1rem;                                 /* default     16px */
  --fs-sm:      0.875rem;                             /* meta        14px */
  --fs-xs:      0.75rem;                              /* eyebrow     12px */

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extrabold:800;

  --lh-tight:   1.08;       /* hero / display */
  --lh-snug:    1.2;        /* h2 / h3        */
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;       /* body, lists    */

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide:  0.05em;
  --tracking-wider: 0.1em;  /* eyebrow uppercase */

  /* ---------- SPACING / RADII / SHADOWS ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;       /* section vertical rhythm */

  --radius-sm: 6px;
  --radius-md: 8px;        /* buttons, small cards */
  --radius-lg: 12px;       /* feature cards        */
  --radius-xl: 16px;       /* CTA blocks           */
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-glow-gold: 0 10px 30px -10px rgba(253, 185, 18, 0.20);
  --shadow-card:      0 8px 24px -8px rgba(0, 0, 0, 0.45);
  --shadow-lift:      0 16px 40px -12px rgba(0, 0, 0, 0.55);

  /* ---------- MOTION ----------
     The site uses fade-up scroll-in (700ms), button hovers (200ms)  */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    150ms;
  --dur-base:    300ms;
  --dur-slow:    700ms;

  /* ---------- LAYOUT ---------- */
  --container-max:   72rem;     /* 1152px == max-w-6xl */
  --container-pad:   24px;
  --nav-height:      64px;
}

/* =============================================================
   SEMANTIC ELEMENT STYLES
   Use these directly on tags, or as @apply targets in components.
   ============================================================= */

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.display {                              /* hero headlines */
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

p, .p {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.eyebrow {                              /* uppercase label above headlines */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.meta, small {
  font-size: var(--fs-sm);
  color: var(--fg-3);
}

code, kbd, pre, samp { font-family: var(--font-mono); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }

/* =============================================================
   CORE COMPONENT CLASSES (matched 1:1 with the marketing site)
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: var(--fs-body);
}
.btn-primary {
  background: var(--gold);
  color: var(--fg-on-gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-glow-gold);
  color: var(--fg-on-gold);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--dur-base) var(--ease-out);
}
.card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
}

.icon-tile {                            /* 48px gold-tinted square behind icons */
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(253, 185, 18, 0.10);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.divider-rule {                         /* tiny gold rule used in eyebrows */
  width: 48px; height: 1px; background: var(--gold);
}

/* Fade-in scroll animation, mirrored from global.css */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
