/* ==========================================================================
   The Public Health Club — Color & Type Foundations
   ==========================================================================
   Source of truth. Import this wherever you need brand tokens.
   Fonts: Playfair Display (serif) + Inter (sans).
   ⚠ NOTE: Official PHC font files were not provided. Playfair Display is a
   close match to the serif used for "PHC" and "Title / Heading / Quote"
   in the brand sheet; Inter is a close match to the sans used for
   "Subtitle / Section header / Body". Flagged for the user to confirm
   or supply official .ttf/.woff files (drop them in fonts/).
   ========================================================================== */

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

:root {
  /* ------- PHC Brand Colors 2025 (from official brand sheet) ------- */
  --phc-navy:        #0f1c48;  /* primary brand / text on cream */
  --phc-gold:        #e7d17f;  /* primary accent / CTAs on navy */
  --phc-cream:       #f8edc2;  /* warm background / section wash */
  --phc-powder:      #d4deef;  /* cool background / secondary wash */
  --phc-white:       #ffffff;

  /* ------- Tints & shades (derived, for hovers/borders/subtle fills) ------- */
  --phc-navy-900:    #0a1433;
  --phc-navy-800:    #0f1c48;  /* = brand navy */
  --phc-navy-700:    #1c2d6b;
  --phc-navy-600:    #33478f;
  --phc-navy-300:    #7b8cc1;
  --phc-navy-100:    #e6ebf5;

  --phc-gold-700:    #c9ae5b;
  --phc-gold-600:    --phc-gold;
  --phc-gold-300:    #f0df9e;

  --phc-cream-200:   #fdf7de;
  --phc-cream-600:   --phc-cream;

  --phc-powder-600:  --phc-powder;
  --phc-powder-200:  #eaf0fb;

  /* ------- Semantic surfaces ------- */
  --bg-page:         var(--phc-cream);          /* warm default page bg */
  --bg-page-cool:    var(--phc-powder);         /* alternate section bg */
  --bg-page-dark:    var(--phc-navy);           /* inverted sections */
  --bg-card:         var(--phc-white);
  --bg-card-warm:    #fdf7de;                   /* cream-200 */
  --bg-card-dark:    var(--phc-navy);

  /* ------- Semantic text ------- */
  --fg-1:            var(--phc-navy);           /* primary text */
  --fg-2:            #3a4472;                   /* secondary text */
  --fg-3:            #6b73a0;                   /* muted text */
  --fg-on-dark:      var(--phc-cream);          /* body on navy */
  --fg-on-dark-soft: #d4deef;                   /* muted on navy */
  --fg-accent:       var(--phc-gold-700);       /* gold text on cream */
  --fg-link:         var(--phc-navy);

  /* ------- Borders & dividers ------- */
  --border-soft:     rgba(15, 28, 72, 0.12);
  --border-med:      rgba(15, 28, 72, 0.24);
  --border-strong:   var(--phc-navy);
  --border-gold:     var(--phc-gold);

  /* ------- Typography families ------- */
  --font-serif:      'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:       ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ------- Type scale (fluid-ish, but fixed for predictability) ------- */
  --fs-display:      clamp(3rem, 6vw, 5rem);    /* ~48–80px */
  --fs-h1:           clamp(2.25rem, 4vw, 3.5rem); /* ~36–56 */
  --fs-h2:           clamp(1.75rem, 3vw, 2.5rem); /* ~28–40 */
  --fs-h3:           1.5rem;                     /* 24 */
  --fs-h4:           1.25rem;                    /* 20 */
  --fs-subtitle:     1.125rem;                   /* 18 */
  --fs-body:         1rem;                       /* 16 */
  --fs-small:        0.875rem;                   /* 14 */
  --fs-eyebrow:      0.75rem;                    /* 12 */

  /* ------- Weights ------- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* ------- Line heights ------- */
  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.45;
  --lh-relaxed: 1.6;

  /* ------- Tracking ------- */
  --ls-eyebrow: 0.18em;   /* "CAREER & CONSULTING" style caps */
  --ls-caps:    0.08em;
  --ls-tight:   -0.01em;

  /* ------- Spacing scale ------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* ------- Radii ------- */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* ------- Shadows (soft, warm-toned) ------- */
  --shadow-xs: 0 1px 2px rgba(15, 28, 72, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 28, 72, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 28, 72, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 28, 72, 0.18);
  --shadow-gold: 0 10px 30px rgba(231, 209, 127, 0.35);
}

/* ==========================================================================
   Base semantic typography
   ========================================================================== */

.phc-display {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}

h1, .phc-h1 {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}

h2, .phc-h2 {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);   /* "Heading" in brand sheet is regular serif */
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

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

.phc-subtitle {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.phc-section-header,
.phc-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-accent);
}

body, p, .phc-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
}

.phc-small {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--fg-2);
}

.phc-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: 1.375rem;
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
}

/* ==========================================================================
   Primitive components (buttons, pills) — the brand basics
   ========================================================================== */

.phc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.phc-btn:active { transform: translateY(1px); }

.phc-btn--primary {
  background: var(--phc-navy);
  color: var(--phc-cream);
}
.phc-btn--primary:hover { background: var(--phc-navy-700); box-shadow: var(--shadow-md); }

.phc-btn--gold {
  background: var(--phc-gold);
  color: var(--phc-navy);
}
.phc-btn--gold:hover { background: var(--phc-gold-300); box-shadow: var(--shadow-gold); }

.phc-btn--ghost {
  background: transparent;
  color: var(--phc-navy);
  border-color: var(--phc-navy);
}
.phc-btn--ghost:hover { background: var(--phc-navy); color: var(--phc-cream); }

.phc-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--phc-cream-200);
  color: var(--phc-navy);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  border: 1px solid var(--border-soft);
}

/* ==========================================================================
   Backgrounds & surfaces
   ========================================================================== */

.phc-surface-cream { background: var(--phc-cream);   color: var(--phc-navy); }
.phc-surface-white { background: var(--phc-white);   color: var(--phc-navy); }
.phc-surface-navy  { background: var(--phc-navy);    color: var(--phc-cream); }
.phc-surface-gold  { background: var(--phc-gold);    color: var(--phc-navy); }
.phc-surface-powder{ background: var(--phc-powder);  color: var(--phc-navy); }
