/* ─────────────────────────────────────────────────────────────
   Spirit Wear — Wes Hosford Elementary
   Palette: royal #1541B0 / #1A4ED0 · yellow #FFC629 · ink #14181F
   Type: Oswald (display) + Manrope (body)
   ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0E1116;
  -webkit-font-smoothing: antialiased;
}
a { color: #1541B0; }
a:hover { color: #0E2E80; }

.page {
  min-height: 100vh;
  background: #F4F5F7;
  font-family: Manrope, system-ui, sans-serif;
  color: #14181F;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  background: #0E1116;
  padding: 14px 20px;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
}
.header-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-school {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.header-society {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B93A1;
}
.header-flag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFC629;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, #1541B0 0%, #1A4ED0 55%, #1541B0 100%);
  padding: 0 20px;
  overflow: hidden;
  position: relative;
}
.hero-orb {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 198, 41, 0.10);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 0 60px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #FFC629;
  color: #14181F;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 3px;
}
.hero-title {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 700;
  font-size: 66px;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero-title span { color: #FFC629; }
.hero-lede {
  margin: 20px 0 0;
  max-width: 460px;
  font-size: 18px;
  line-height: 1.55;
  color: #D6E0F7;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFC629;
  color: #14181F;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 4px;
  text-decoration: none;
  min-height: 48px;
  transition: background 140ms ease, transform 140ms ease;
}
.btn-primary:hover {
  background: #FFD75E;
  color: #14181F;
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 4px;
  text-decoration: none;
  min-height: 48px;
  transition: background 140ms ease, transform 140ms ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 20px 22px;
}
.hero-card-label {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFC629;
}
.hero-colours {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hero-colour {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}
.hero-colour .dot {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  flex: none;
}
.dot-royal  { background: #1A4ED0; border: 1px solid rgba(255,255,255,0.5); }
.dot-yellow { background: #FFC629; }
.dot-white  { background: #FFFFFF; }
.dot-black  { background: #14181F; border: 1px solid rgba(255,255,255,0.4); }
.hero-card-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #B9C7E8;
}
.hero-card-body {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #E4EBFA;
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 20px 0;
}
.section-head {
  border-bottom: 3px solid #14181F;
  padding-bottom: 12px;
}
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.section-title {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.section-note {
  font-size: 13px;
  font-weight: 600;
  color: #5A6472;
}

/* ── Gear grid ──────────────────────────────────────────── */

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.gear-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #DDE1E8;
  border-radius: 6px;
  overflow: hidden;
}
.gear-figure {
  position: relative;
  height: 300px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #DDE1E8;
  padding: 14px;
}
/* Shrinks to the photo so the logo can be positioned against the garment */
.gear-photo {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}
.gear-photo-img {
  display: block;
  max-width: 100%;
  max-height: 270px;
  width: auto;
  object-fit: contain;
}
/* Logo placement preview — illustrative, not the printer's final artwork */
.gear-logo {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.96;
  height: auto;
}
/* Fallback slot used when a product photo is missing */
.gear-figure--empty {
  background: repeating-linear-gradient(135deg, #EDEFF3 0 11px, #E4E7ED 11px 22px);
}
.gear-slot {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6C7684;
  background: #FFFFFF;
  border: 1px dashed #B6BEC9;
  padding: 8px 12px;
  border-radius: 3px;
  text-align: center;
  max-width: 84%;
}
/* Front / back toggle, only shown when a back shot exists */
.gear-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #DDE1E8;
  border-radius: 4px;
  padding: 3px;
}
.view-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6C7684;
  background: transparent;
  border: none;
  border-radius: 3px;
  padding: 6px 10px;
  cursor: pointer;
  min-height: 30px;
  transition: background 120ms ease, color 120ms ease;
}
.view-btn:hover { color: #14181F; }
.view-btn[aria-pressed="true"] {
  background: #14181F;
  color: #FFFFFF;
}
.view-btn:focus-visible {
  outline: 3px solid #FFC629;
  outline-offset: 1px;
}

.gear-code {
  position: absolute;
  left: 12px;
  top: 12px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #14181F;
  padding: 5px 9px;
  border-radius: 3px;
}
.gear-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.gear-headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gear-name {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.gear-fit {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1541B0;
}
.gear-spec {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4A5462;
  text-wrap: pretty;
}
.gear-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gear-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6C7684;
}
.gear-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px 6px 7px;
  border-radius: 4px;
  cursor: pointer;
  background: #FFFFFF;
  min-height: 36px;
  border: 1px solid #D3D8E0;
  color: #4A5462;
  transition: border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.swatch:hover { border-color: #A8B2C0; }
.swatch[aria-pressed="true"] {
  border: 2px solid #1541B0;
  color: #14181F;
  box-shadow: 0 0 0 3px rgba(21, 65, 176, 0.14);
}
.swatch-chip {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  flex: none;
  border: 1px solid rgba(20, 24, 31, 0.28);
}
.chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  min-width: 46px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #D3D8E0;
  background: #FFFFFF;
  color: #14181F;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.chip:hover { border-color: #A8B2C0; }
.chip[aria-pressed="true"] {
  border: 2px solid #1541B0;
  background: #1541B0;
  color: #FFFFFF;
}
.swatch:focus-visible,
.chip:focus-visible {
  outline: 3px solid #FFC629;
  outline-offset: 2px;
}
.gear-colour-note {
  font-size: 12px;
  line-height: 1.5;
  color: #8A5A00;
  background: #FFF6DF;
  border-left: 3px solid #FFC629;
  padding: 7px 10px;
}
.gear-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.gear-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #E7EAEF;
  padding-top: 14px;
}
.gear-summary {
  font-size: 13px;
  font-weight: 700;
  color: #14181F;
}
.gear-price {
  font-family: Oswald, Impact, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #6C7684;
  white-space: nowrap;
}
/* Prices are set, so they carry real weight in the card. */
.gear-price--set {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #14181F;
}
.gear-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1541B0;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 18px;
  border-radius: 4px;
  text-decoration: none;
  min-height: 48px;
  transition: background 140ms ease;
}
.gear-buy:hover {
  background: #0E2E80;
  color: #FFFFFF;
}
.gear-buy .arrow {
  font-size: 17px;
  line-height: 1;
}
/* Shown until the Square link is added to config.js */
.gear-buy--pending {
  background: #E7EAEF;
  color: #6C7684;
  cursor: not-allowed;
  pointer-events: none;
  border: 1px dashed #B6BEC9;
}
.gear-fineprint {
  font-size: 12px;
  line-height: 1.45;
  color: #6C7684;
}
.gear-fineprint strong { color: #14181F; }

.gear-disclaimer {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7A838F;
}

/* ── Sizing ─────────────────────────────────────────────── */

.sizing-lede {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  color: #4A5462;
  text-wrap: pretty;
}
.size-table {
  margin-top: 22px;
  background: #FFFFFF;
  border: 1px solid #DDE1E8;
  border-radius: 6px;
  overflow: hidden;
}
.size-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 20px;
  border-bottom: 1px solid #EDEFF3;
}
.size-row:last-child { border-bottom: none; }
.size-id {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.size-name {
  font-weight: 800;
  font-size: 15px;
}
.size-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6C7684;
}
.size-values {
  flex: 0 1 200px;
  font-size: 14px;
  font-weight: 600;
  color: #14181F;
}
.size-chart {
  flex: 0 1 170px;
}
.size-chart a {
  font-size: 13px;
  font-weight: 700;
  color: #1541B0;
  text-decoration: none;
}
.size-chart a:hover { text-decoration: underline; }

/* ── How ordering works ─────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.step {
  background: #FFFFFF;
  border: 1px solid #DDE1E8;
  border-radius: 6px;
  padding: 22px;
}
.step-num {
  font-family: Oswald, Impact, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #FFC629;
  line-height: 1;
}
.step-title {
  font-weight: 800;
  font-size: 16px;
  margin-top: 10px;
}
.step-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4A5462;
  text-wrap: pretty;
}

/* ── Contact ────────────────────────────────────────────── */

.contact-card {
  background: #FFFFFF;
  border: 1px solid #DDE1E8;
  border-radius: 6px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.contact-eyebrow {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6C7684;
}
.contact-heading {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  margin-top: 8px;
}
.contact-body {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4A5462;
  text-wrap: pretty;
}
.contact-people {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-name {
  font-weight: 800;
  font-size: 16px;
}
.contact-role {
  font-size: 14px;
  color: #6C7684;
}
.contact-link {
  font-size: 16px;
  font-weight: 700;
  color: #1541B0;
  text-decoration: none;
  word-break: break-all;
}
.contact-link:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  margin-top: 56px;
  background: #0E1116;
  padding: 26px 20px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #8B93A1;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero-inner { padding: 48px 0 44px; gap: 32px; }
  .hero-title { font-size: 46px; }
  .hero-lede { font-size: 17px; }
  .section-title { font-size: 26px; }
  .contact-card { padding: 24px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 38px; }
  .header-flag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
