/* ============================================================
   FANSHARDHAT — "jobsite spec-plate" design system
   Palette: iron / concrete / hi-vis amber + per-team hero colors
   Type: Barlow Condensed (display) · Barlow (body) · IBM Plex Mono (spec)
   Signature: caution-stripe seam + corner-notched spec-plate cards
   ============================================================ */

:root {
  --iron: #1c1f26;
  --iron-2: #2a2e38;
  --concrete: #eef0f2;
  --plate: #ffffff;
  --hivis: #ffb700;
  --safety: #e8541d;
  --steel: #5b6472;
  --line: #d4d8dd;
  --seam: repeating-linear-gradient(-45deg, var(--hivis) 0 14px, var(--iron) 14px 28px);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --notch: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--iron);
  background: var(--concrete);
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- seam: the one loud stripe per page ---------- */
.seam { height: 10px; background: var(--seam); }

/* ---------- header ---------- */
.site-head { background: var(--iron); color: #fff; }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 26px; height: 20px; background: var(--hivis);
  clip-path: polygon(15% 100%, 15% 45%, 30% 10%, 70% 10%, 85% 45%, 85% 100%);
  border-radius: 2px;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; }
.brand-name .brand-hl { color: var(--hivis); font-weight: 700; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; padding: 8px 12px; border-radius: 3px;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--iron-2); color: var(--hivis); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }

/* ---------- team hero ---------- */
.team-hero { background: var(--tp, var(--iron)); color: #fff; position: relative; }
.team-hero.hero-dark-text { color: var(--iron); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero-eyebrow, .spec-eyebrow, .hub-eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em;
}
.hero-eyebrow { opacity: .85; margin-bottom: 14px; }
.team-hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .95; letter-spacing: .01em;
}
.hero-sub-line { color: var(--ts, var(--hivis)); }
.hero-dark-text .hero-sub-line { color: var(--iron-2); }
.hero-lede { max-width: 46ch; margin-top: 18px; font-size: 1.1rem; opacity: .92; }
.btn-hero {
  display: inline-block; margin-top: 26px; padding: 12px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--hivis); color: var(--iron); text-decoration: none; clip-path: var(--notch);
}
.btn-hero:hover { background: #ffc733; }
.hero-photo img { border: 4px solid rgba(255,255,255,.85); border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); rotate: 1.5deg; background: #fff; }

/* ---------- sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: .02em; margin-bottom: 8px;
}
.section-lede { color: var(--steel); margin-bottom: 8px; }
.band-alt { background: #e2e5e9; }

/* ---------- spec-plate cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 26px; }
.spec-card {
  background: var(--plate); border: 2px solid var(--iron); clip-path: var(--notch);
  padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,31,38,.18); }
.spec-card-primary { border-color: var(--hivis); border-width: 3px; background: linear-gradient(180deg, #fffdf4, #fff); }
.spec-eyebrow { color: var(--steel); }
.spec-card-primary .spec-eyebrow { color: #8a6400; }
.spec-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.spec-blurb { font-size: .95rem; color: #3a4048; flex: 1; }
.spec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tier { font-family: var(--font-mono); font-weight: 500; color: var(--steel); letter-spacing: .1em; }
.btn-buy {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; background: var(--iron); color: #fff; padding: 8px 14px; border-radius: 3px;
}
.btn-buy:hover { background: var(--iron-2); color: var(--hivis); }
.spec-card-primary .btn-buy { background: var(--hivis); color: var(--iron); }
.spec-card-primary .btn-buy:hover { background: #ffc733; }
.card-grid-primary { grid-template-columns: 1.35fr 1fr 1fr; }
.variant-note { margin-top: 22px; font-size: 1rem; }
.variant-note a { font-weight: 600; }

/* ---------- prose / guides ---------- */
.prose-block { max-width: 760px; }
.prose-block h2, .prose-block h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 28px 0 10px; }
.prose-block h2 { font-size: 1.8rem; } .prose-block h3 { font-size: 1.35rem; }
.prose-block p, .prose-block li { margin-bottom: 12px; color: #2c313a; }
.prose-block ul, .prose-block ol { padding-left: 22px; }
.prose-block table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; background: var(--plate); font-size: .95rem; }
.prose-block th, .prose-block td { border: 1.5px solid var(--iron); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose-block th { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); background: #f6f7f8; white-space: nowrap; }
.hub-intro { margin-bottom: 12px; }
.hub-intro p { max-width: 76ch; }

/* ---------- FAQ ---------- */
.faq-block { max-width: 760px; }
.faq-block details { background: var(--plate); border: 2px solid var(--iron); margin-top: 12px; padding: 14px 18px; clip-path: var(--notch); }
.faq-block summary { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.faq-block details p { margin-top: 10px; color: #2c313a; }

/* ---------- related ---------- */
.related-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related-list a {
  display: inline-block; padding: 7px 14px; background: var(--plate); border: 1.5px solid var(--iron);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem;
}
.related-list a:hover { background: var(--iron); color: var(--hivis); }

/* ---------- home hero ---------- */
.home-hero { background: var(--iron); color: #fff; }
.home-hero-inner { padding-top: 72px; padding-bottom: 64px; }
.home-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-stack { position: relative; min-height: 380px; }
.hero-stack img {
  position: absolute; width: 72%; background: #fff; border: 4px solid rgba(255,255,255,.9);
  border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.hero-stack img:first-child { top: 0; left: 0; rotate: -3.5deg; }
.hero-stack img:last-child { bottom: 0; right: 0; rotate: 2.5deg; }
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .hero-stack { min-height: 0; margin-top: 28px; }
  .hero-stack img { position: static; width: 82%; }
  .hero-stack img:first-child { rotate: -2deg; }
  .hero-stack img:last-child { display: none; }
}
.home-hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 6.5rem); line-height: .92; letter-spacing: .01em;
}
.home-hero h1 .accent { color: var(--hivis); }
.home-lede { max-width: 54ch; margin-top: 20px; font-size: 1.2rem; opacity: .9; }
.home-cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-block; padding: 12px 26px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid #fff; color: #fff; clip-path: var(--notch);
}
.btn-ghost:hover { border-color: var(--hivis); color: var(--hivis); }

/* ---------- team chip wall ---------- */
.chip-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 26px; }
.team-chip {
  display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 12px; border-radius: 4px;
  background: var(--chip, var(--iron)); color: #fff; border-left: 6px solid var(--chip2, var(--hivis));
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .12s ease;
}
.chip-logo {
  width: 34px; height: 34px; flex: none; background: #fff; border-radius: 50%;
  padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.chip-text { display: block; line-height: 1.15; min-width: 0; font-size: .98rem;  }
.team-chip:hover { transform: translateY(-2px) scale(1.02); }
.team-chip .chip-city { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .62rem; letter-spacing: .12em; opacity: .8; text-transform: uppercase; }
.team-chip.chip-dark-text { color: var(--iron); }

/* ---------- hub pages ---------- */
.hub-hero { background: var(--iron); color: #fff; }
.hub-hero-inner { padding-top: 48px; padding-bottom: 40px; }
.hub-eyebrow { color: var(--hivis); margin-bottom: 10px; }
.hub-hero h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .95; }
.hub-lede { max-width: 60ch; margin-top: 14px; opacity: .9; }
.division-title { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .16em; color: var(--steel); margin: 34px 0 4px; text-transform: uppercase; }

/* ---------- footer ---------- */
.site-foot { background: var(--iron); color: #c9ced6; margin-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 28px; padding: 44px 20px; }
.foot-brand { font-size: 1.2rem; color: #fff; }
.foot-tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hivis); margin-top: 6px; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: #c9ced6; text-decoration: none; }
.site-foot a:hover { color: var(--hivis); }
.foot-legal { font-size: .8rem; line-height: 1.55; opacity: .75; }
.foot-legal p + p { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .card-grid-primary { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-head-inner { flex-direction: column; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .card-grid, .card-grid-primary { grid-template-columns: 1fr; }
  .section { padding-top: 40px; padding-bottom: 40px; }
}
