/* ==========================================================================
   The Varsity Shop: site styles ("Evolve, light")
   Navy primary + gold secondary accent. Libre Franklin UI / Source Serif 4
   leads, system fallbacks throughout. Single source of truth: design handoff.
   ========================================================================== */

:root{
  --navy:#1b3f7a;        /* primary accent */
  --navy-ink:#163464;    /* pressed/darker navy */
  --gold:#E0A11B;        /* secondary accent (from logo) */
  --gold-ink:#8a5a12;    /* gold used as text on light (AA) */
  --gold-tint:#fbeecb;   /* gold surface tint */

  --ink:#232a33;         /* body text */
  --ink-soft:#3f4854;    /* serif intro text */
  --muted:#5b6470;       /* secondary text */
  --paper:#ffffff;
  --tint:#f4f1ea;        /* warm lead-in / soft sections */
  --tint-2:#f7f5f2;      /* card-in-card surface */
  --line:#e4e0da;        /* hairlines */
  --dark:#141a22;        /* dark feature section + CTA text */
  --dark-card:#1c232d;   /* card on dark */
  --dark-line:#2b333f;
  --footer-bg:#1b2129;

  --font-ui:"Libre Franklin",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-serif:"Source Serif 4",Georgia,"Times New Roman",serif;

  --radius:12px;
  --radius-pill:999px;
  --wrap:1040px;         /* content max-width */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-ink); }

h1, h2, h3 {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(2.25rem, 4vw, 2.75rem); }   /* 36-44px section headline */
h3 { font-size: 17px; font-weight: 700; }

p { margin: 0 0 1em; }

/* Lead paragraphs ------------------------------------------------------------
   Source Serif 4 for lead/intro paragraphs only. */
.lede {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Reading measure. Used on the long-form About/Contact/Our Work paragraphs;
   it had no rule, so those paragraphs ran the full column (about 95
   characters) on desktop. */
.measure { max-width: 62ch; }

/* Eyebrow ---------------------------------------------------------------------
   Gold-ink on light; pure gold inside dark scopes (see below). */
.eyebrow {
  display: block; font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .7rem;
}

/* Skip link ------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Layout ------------------------------------------------------------------------ */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 4rem; }
.section--tint { background: var(--tint); }

/* Buttons --------------------------------------------------------------------------
   Pills everywhere. Primary navy; secondary outlined ink; on gold surfaces the
   pair flips to dark-solid / dark-outline. */
.btn {
  display: inline-block; padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-weight: 700; line-height: 1.2;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-ink); color: #fff; }
.btn--secondary { border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: rgba(35,42,51,.06); color: var(--ink); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--dark-outline { border-color: var(--dark); color: var(--dark); }
.btn--dark-outline:hover { background: rgba(20,26,34,.08); color: var(--dark); }
.btn--sm { padding: .55rem 1.15rem; font-weight: 600; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-row--stack { flex-direction: column; align-items: stretch; }

/* Header ----------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 1.1rem; min-height: 80px; }
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; margin-right: auto;
}
.brand-logo { height: 52px; width: auto; display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.15rem; }
.primary-nav a {
  font-size: 15px; font-weight: 600;
  text-decoration: none; color: var(--ink);
  padding-block: .4rem; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); padding: .45rem .6rem;
  cursor: pointer; color: var(--ink);
}
.header-cta { white-space: nowrap; }

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; width: 100%;
    border-top: 1px solid var(--line); padding-block: .75rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: .1rem; }
  .primary-nav a { display: block; padding-block: .55rem; border-bottom: none; font-size: 16px; }
  .primary-nav a[aria-current="page"] {
    border-bottom: none;
    box-shadow: inset 3px 0 0 var(--gold); padding-left: .6rem;
  }
  .header-bar { flex-wrap: wrap; }
  .header-cta { display: none; }
  .brand-logo { height: 44px; }
}

/* Lead-in band (replaces the hero) ------------------------------------------------------ */
.lead-in { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: 3.4rem 3.2rem; }
.lead-in__cols { display: grid; grid-template-columns: 1.35fr .9fr; gap: 2.5rem; align-items: end; }
@media (max-width: 52rem) { .lead-in__cols { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Credentials band ------------------------------------------------------------------------
   Full-bleed navy strip, four equal cells, translucent dividers, gold numerals. */
.cred-band { background: var(--navy); color: #fff; }
.cred-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred-cell { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .15rem; }
.cred-cell + .cred-cell { border-left: 1px solid rgba(255,255,255,.14); }
.cred-num { font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1.15; letter-spacing: -.01em; }
.cred-cap { font-size: 13.5px; color: #cdd8ea; }
@media (max-width: 56rem) {
  .cred-band__grid { grid-template-columns: 1fr 1fr; }
  .cred-cell:nth-child(3) { border-left: none; }
  .cred-cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 30rem) {
  .cred-band__grid { grid-template-columns: 1fr; }
  .cred-cell + .cred-cell { border-left: none; border-top: 1px solid rgba(255,255,255,.14); }
}

/* Category showcase -------------------------------------------------------------------------
   Image-forward cards: square media over H3 + one-line description. The
   media box is 1:1 because every tile ships a 640x640 source; declaring 4:3
   here had no effect (the image's own height won) and would have cropped
   heads off the on-model shots if a browser ever enforced it.
   Photos swap in via the picture/webp pattern. */
.showcase-head { margin-bottom: 1.75rem; }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; list-style: none; margin: 0; padding: 0;
}
@media (max-width: 64rem) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 42rem) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  scroll-margin-top: 6rem;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
  text-decoration: none; color: inherit;
}
a.cat-card:hover { border-color: var(--navy); box-shadow: 0 3px 14px rgba(20,26,34,.08); }
li.cat-card:hover { border-color: var(--navy); }

.cat-media { aspect-ratio: 1 / 1; background: var(--tint-2); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }

.cat-media--ph {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg,#f0eee8 0 13px,#e7e4dc 13px 26px);
  display: grid; place-items:center; color:#9a9284;
  font: 600 10.5px/1.4 ui-monospace,Menlo,monospace; text-align:center;
  padding: .75rem;
}

.cat-media--svc { background: #eef1f6; display: grid; place-items: center; }
.cat-media--svc svg { width: 46px; height: 46px; color: var(--navy); }

.cat-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { margin-bottom: .2rem; }
.cat-body > p { color: var(--muted); font-size: .95rem; margin-bottom: .45rem; }
.cat-items { margin: auto 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .86rem; }
.cat-items li { margin-block: .18rem; }

/* Paired wide panel closing the last grid row */
.panel-wide {
  grid-column: span 2;
  background: var(--tint-2);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  display: flex; flex-direction: column; justify-content: center;
}
.panel-wide h3 { font-size: 19px; margin-bottom: .3rem; }
.panel-wide p { color: var(--muted); margin-bottom: .4rem; }
.panel-wide p.mb-0 { margin-bottom: 0; }
@media (max-width: 42rem) { .panel-wide { grid-column: auto; } }

/* Dark feature section -------------------------------------------------------------------------- */
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }

.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: .5rem;
}
.feature {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
}
.feature .stat {
  display: block; font-size: 2.7rem; font-weight: 900;
  color: var(--gold); line-height: 1; margin-bottom: .65rem;
  letter-spacing: -.01em;
}
.feature h3 { color: #fff; }
.feature p { color: #aab2bd; margin: 0; }
.feature a { color: var(--gold); font-weight: 600; }
.feature a:hover { color: #f0b445; }

/* Page hero (inner pages, dark variant) ------------------------------------------------------------ */
.page-hero { background: var(--dark); color: #fff; padding-block: 3.4rem 3rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; }
.page-hero p.lede { color: #c4ccda; margin-bottom: 0; }

/* Compliance credential cards ------------------------------------------------------------------------- */
.cred-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
@media (max-width: 52rem) { .cred-grid { grid-template-columns: 1fr; } }
.cred-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.cred-card .chip {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: #eef1f6; color: var(--navy);
  display: grid; place-items: center;
}
.cred-card .chip svg { width: 22px; height: 22px; }
.cred-card--gold { border-color: var(--gold); }
.cred-card--gold .chip { background: var(--gold-tint); color: var(--gold-ink); }
.cred-label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: .15rem; }
.cred-value { margin: 0; color: var(--muted); font-size: .95rem; }
.cred-value strong { color: var(--ink); }

.request-note {
  margin-top: 1.75rem; padding: 1.2rem 1.4rem;
  background: var(--gold-tint); border-radius: var(--radius);
  font-size: .97rem;
}

/* Our Work placeholders (parked template) ---------------------------------------------------------------- */
.work-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.work-slot { border: 1px dashed #c9c2b8; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.work-frame {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: #a09a90; background: repeating-linear-gradient(
    45deg, transparent, transparent 12px, rgba(35,42,51,.03) 12px, rgba(35,42,51,.03) 24px);
}
.work-frame svg { width: 44px; height: 44px; opacity: .55; }
.work-cap { padding: .8rem 1rem; font-size: .9rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.work-cap strong { color: var(--ink); }

/* Contact cards --------------------------------------------------------------------------------------------- */
.contact-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; background: var(--paper);
}
.contact-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 18px; }
.contact-card h3 svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.contact-card .big { font-size: 1.05rem; }

/* Gold CTA band ------------------------------------------------------------------------------------------------ */
.cta-band { background: var(--gold); color: var(--dark); padding-block: 3rem; }
.cta-band__cols { display: grid; grid-template-columns: 1.25fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 56rem) { .cta-band__cols { grid-template-columns: 1fr; gap: 1.6rem; } }
.cta-band h2 { color: var(--dark); }
.cta-band p.support { color: #4a3a12; max-width: 46ch; margin: 0; }
.cta-band a:not(.btn) { color: var(--dark); font-weight: 600; }
.cta-band .btn-row--stack { max-width: 420px; }
@media (max-width: 56rem) { .cta-band .btn-row--stack { max-width: none; } }

/* About page two-column layout ------------------------------------------------------------------------------------ */
.about-layout { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 52rem) { .about-layout { grid-template-columns: 1fr 18rem; } }
.about-aside {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  position: sticky; top: 6rem;
}
.about-aside h3 { font-size: 16px; }
.about-aside ul { padding-left: 1.1rem; margin: 0; color: var(--muted); font-size: .93rem; }

/* Footer -------------------------------------------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg); color: #cfd4da;
  padding-block: 2.75rem 2rem; font-size: .93rem;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #cfd4da; }
.site-footer a:hover { color: #fff; }
.footer-tagline { max-width: 34ch; color: #9aa2ad; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45rem; }
.footer-brand { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.brand-logo-footer { height: 46px; width: auto; display: block; }
.footer-legal {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid #303844;
  color: #9aa2ad; font-size: .84rem;
}
.footer-reg { margin: .3rem 0 0; }

/* Focus visibility --------------------------------------------------------------------------------------------------------
   Navy outlines on light; gold inside dark/gold surfaces so they stay visible. */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.page-hero :focus-visible,
.section--dark :focus-visible,
.work-frame :focus-visible { outline-color: var(--gold); }
.cta-band :focus-visible,
.cred-band :focus-visible { outline-color: var(--dark); }

/* Utilities ------------------------------------------------------------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Print ------------------------------------------------------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .cred-band, .nav-toggle, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
}
