/* ==========================================================================
   Hammond Boxing Club — site.css
   Heavy, honest, photo-forward. Tokens & rules from design-spec.md.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink: #111111;
  --ink-soft: #1C1C1C;
  --concrete: #F2F1EF;
  --concrete-alt: #E7E5E1;
  --white: #FFFFFF;
  --red: #C8102E;
  --red-hi: #E23048;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --text-on-dark: #F2F1EF;
  --line: rgba(17, 17, 17, 0.14);
  --line-dark: rgba(242, 241, 239, 0.18);

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing scale: 8 / 16 / 24 / 40 / 64 / 96 / 120 */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px;
  --s-5: 64px; --s-6: 96px; --s-7: 120px;

  --wrap: 1200px;
  --gutter: 24px;
  --section-pad: 96px;      /* desktop vertical section padding (80–120 range) */
  --section-pad-m: 64px;    /* mobile vertical section padding (56–72 range) */

  --header-h: 76px;
}

/* ---- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Visible focus states everywhere */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.section--dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--red-hi); }

.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---- Layout ------------------------------------------------------------ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-pad) 0; }
.section--light { background: var(--concrete); color: var(--text); }
.section--light + .section--light { background: var(--concrete-alt); } /* alt panel rhythm */
.section--dark { background: var(--ink); color: var(--text-on-dark); }

/* ---- Typography -------------------------------------------------------- */
.hero__title, .page-title, .section__title, .card__title, .event__name,
.legacy__pull, .wordmark, .sched__program, .sched__time {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.0;
  overflow-wrap: break-word;
}

.page-title {
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: var(--s-3);
}
.section__title {
  font-size: clamp(1.8rem, 4.6vw, 3.5rem);
  line-height: 0.98;
  margin-bottom: var(--s-3);
  color: var(--text);
}
.section__title--dark { color: var(--text-on-dark); }

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  font-weight: 400;
  max-width: 62ch;
  color: var(--text);
  margin-bottom: var(--s-3);
}
.lede--dark { color: var(--text-on-dark); }
.section--dark p { color: var(--text-on-dark); }
.section--dark .text-muted, .text-muted { color: var(--text-muted); }

.section p { max-width: 68ch; }

/* Label = red overline + short red rule */
.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.label--dark { color: var(--red-hi); }
.label__rule { display: inline-block; width: 40px; height: 2px; background: currentColor; }

.section__cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }

/* ---- Wordmark (typographic) ------------------------------------------- */
.wordmark { display: inline-flex; flex-direction: column; line-height: 0.88; color: inherit; }
.wordmark__rule { width: 34px; height: 3px; background: var(--red); margin-bottom: 6px; }
.wordmark__l1 { font-size: 1.9rem; letter-spacing: 0.02em; }
.wordmark__l2 { font-size: 1.02rem; letter-spacing: 0.235em; }
.wordmark--sm .wordmark__l1 { font-size: 1.5rem; }
.wordmark--sm .wordmark__l2 { font-size: 0.8rem; letter-spacing: 0.2em; }
.wordmark--hero .wordmark__l1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.wordmark--hero .wordmark__l2 { font-size: clamp(0.85rem, 1.5vw, 1.25rem); letter-spacing: 0.26em; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { padding: 11px 18px; font-size: 0.9rem; }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--concrete); }
.btn--outline-light { background: transparent; color: var(--concrete); border-color: var(--concrete); }
.btn--outline-light:hover { background: var(--concrete); color: var(--ink); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: var(--header-h);
}
.site-header__brand { text-decoration: none; color: inherit; flex: 0 0 auto; }
.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: var(--s-3); align-items: center; }
.nav__link {
  font-family: var(--font-body);
  text-transform: uppercase; font-size: 13px; letter-spacing: 0.1em; font-weight: 600;
  color: var(--text-on-dark); text-decoration: none; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { border-bottom-color: var(--line-dark); }
.nav__link.is-active { color: var(--red-hi); border-bottom-color: var(--red-hi); }
.site-header__cta { display: flex; align-items: center; gap: var(--s-2); flex: 0 0 auto; }
.site-header__phone {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-on-dark); text-decoration: none; font-size: 1.05rem;
}
.site-header__phone:hover { color: var(--red-hi); }

.nav__toggle { display: none; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--text-on-dark); padding-top: var(--section-pad); }
.site-footer__inner {
  display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: var(--s-5);
  padding-bottom: var(--s-5);
}
.site-footer__tag { color: var(--text-on-dark); margin-top: var(--s-3); max-width: 34ch; }
.site-footer a { color: var(--text-on-dark); }
.site-footer a:hover { color: var(--red-hi); }
.site-footer__address { font-style: normal; margin: var(--s-2) 0 var(--s-3); line-height: 1.9; font-size: 1.05rem; }
.site-footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s-3); }
.site-footer__nav a {
  text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; font-weight: 600; text-decoration: none;
}
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
  border-top: 1px solid var(--line-dark); padding-top: var(--s-3); padding-bottom: var(--s-4);
  font-size: 13px; color: var(--text-on-dark);
}
.site-footer__legal p { margin: 0; opacity: 0.8; }

/* ---- Credential strip -------------------------------------------------- */
.credential { background: var(--ink-soft); border-block: 1px solid var(--line-dark); }
.credential__inner {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  padding: var(--s-3) var(--gutter); text-align: center;
}
.credential__badge { width: 96px; height: auto; flex: 0 0 auto; }
.credential__badge--lg { width: 150px; }
.credential__text {
  margin: 0; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: clamp(0.95rem, 1.4vw, 1.2rem); color: var(--text-on-dark);
}
.credential { }
.credential--footer { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); }
.credential--footer .credential__badge { width: 64px; }
.credential--footer span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.85rem; color: var(--text-on-dark); max-width: 22ch;
}
.credential-strip {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; justify-content: center; text-align: center;
}
.credential-strip__text {
  margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--text-on-dark);
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.25) 40%, rgba(17,17,17,0.85) 100%);
}
.hero__inner { position: relative; padding-top: var(--s-6); padding-bottom: var(--s-6); width: 100%; }
.hero__title {
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 0.95; margin: var(--s-3) 0 var(--s-2);
  color: #fff; max-width: 16ch;
}
.hero .wordmark__l1, .hero .wordmark__l2 { color: #fff; }
.hero__lede { font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 48ch; margin-bottom: var(--s-4); color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }

/* ---- Split (text + media) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
.split__text p:last-child { margin-bottom: 0; }

/* ---- Cards & frames ---------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.section--dark .card { background: var(--ink-soft); border-color: var(--line-dark); }
.card__frame { position: relative; overflow: hidden; background: var(--concrete-alt); }
.section--dark .card__frame { background: #000; }
.card__frame--portrait { aspect-ratio: 4 / 5; }      /* people / coaches */
.card__frame--wide { aspect-ratio: 3 / 2; }           /* events / gallery / media */
.card__frame--natural { aspect-ratio: 3 / 4; background: var(--ink); } /* flyers, natural */
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__img--contain { object-fit: contain; }
.card:hover .card__img,
.gallery__item:hover .card__img { transform: scale(1.045); } /* single consistent hover device */
.card__body { padding: var(--s-3); }
.card__title { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 6px; color: var(--text); }
.section--dark .card__title { color: var(--text-on-dark); }
.card__kicker {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; font-weight: 600; color: var(--red); margin: 0 0 6px;
}
.section--dark .card__kicker { color: var(--red-hi); }
.card__facts { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-2); }
.card__facts li { position: relative; padding-left: 16px; font-size: 15px; color: var(--text-muted); line-height: 1.4; }
.card__facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--red); }

/* ---- Grids ------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--coaches { grid-template-columns: repeat(5, 1fr); }
.grid--events { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }

/* ---- Schedule block ---------------------------------------------------- */
.sched { border-top: 3px solid var(--red); }
.sched__days {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.1rem; margin: var(--s-2) 0 var(--s-2); color: var(--text);
}
.sched--dark .sched__days { color: var(--text-on-dark); }
.sched__list { display: flex; flex-direction: column; }
.sched__row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "prog time" "meta time";
  align-items: center; gap: 2px var(--s-4);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
}
.sched--dark .sched__row { border-bottom-color: var(--line-dark); }
.sched__program { grid-area: prog; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; color: var(--text); }
.sched--dark .sched__program { color: var(--text-on-dark); }
.sched__meta { grid-area: meta; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sched--dark .sched__meta { color: #b9b7b3; }
.sched__time {
  grid-area: time; text-align: right; font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.sched--dark .sched__time { color: var(--red-hi); }
.sched__note { margin: var(--s-3) 0 0; font-size: 14px; color: var(--text-muted); }
.sched--dark .sched__note { color: #b9b7b3; }

/* ---- Legacy band ------------------------------------------------------- */
.legacy__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: center; }
.legacy__quote { margin: 0; border-left: 3px solid var(--red-hi); padding-left: var(--s-3); }
.legacy__pull {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.05; color: var(--text-on-dark); margin-bottom: var(--s-3);
}
.legacy__quote p { color: var(--text-on-dark); }
.legacy__cite { display: block; margin-top: var(--s-3); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-hi); font-size: 1.2rem; font-style: normal; }
.legacy__source, .legacy__quote + .legacy__source { margin-top: var(--s-3); font-size: 13px; color: #b9b7b3; }

/* ---- Events ------------------------------------------------------------ */
.events { display: flex; flex-direction: column; gap: var(--s-5); }
.event { display: grid; grid-template-columns: 340px 1fr; gap: var(--s-4); align-items: start; }
.event__flyer { background: var(--ink); }
.event__img { width: 100%; height: 100%; object-fit: contain; }
.card__frame--natural.event__flyer { aspect-ratio: 3 / 4; position: relative; }
.event__flyer .event__img { position: absolute; inset: 0; }
.event__kind {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; font-weight: 600; color: var(--red); margin: 0 0 var(--s-1);
}
.event__name { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--s-2); color: var(--text); }
.event__blurb { font-size: 1.1rem; margin-bottom: var(--s-3); }
.event__details { margin: 0; display: grid; gap: 0; }
.event__row { display: grid; grid-template-columns: 130px 1fr; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.event__row dt { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; color: var(--text-muted); }
.event__row dd { margin: 0; color: var(--text); }

.upcoming__status {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--red); color: #fff; padding: 8px 16px; margin: 0 0 var(--s-3); font-size: 1.05rem;
}
.upcoming__hold { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; color: #b9b7b3; font-size: 1.1rem; }

/* ---- Gallery ----------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.gallery__item { margin: 0; }
.gallery--full { gap: var(--s-3); }

/* ---- Sponsors coming-soon --------------------------------------------- */
.comingsoon { display: flex; justify-content: center; }
.comingsoon__card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: clamp(var(--s-4), 6vw, var(--s-6)); max-width: 760px; text-align: center;
}
.comingsoon__eyebrow {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600;
  color: var(--red); font-size: 13px; margin: 0 0 var(--s-2);
}
.comingsoon__card .lede { margin: 0 auto; }

/* ---- Rates / centered CTA blocks -------------------------------------- */
.rates__inner { max-width: 760px; }
.callout { font-size: 1.15rem; }
.callout--lg { font-size: clamp(1.4rem, 2.4vw, 2rem); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.callout a, .callout--lg a { color: var(--red); text-decoration: none; border-bottom: 2px solid var(--red); }
.section--dark .callout a { color: var(--red-hi); border-bottom-color: var(--red-hi); }
.rates-note { color: var(--text-muted); font-style: italic; }

/* ---- Find us / contact ------------------------------------------------- */
.find__address { font-style: normal; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: var(--s-3); }
.find__address a { text-decoration: none; }
.find__hours { font-size: 1.05rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.contact-block { border-top: 3px solid var(--red); padding-top: var(--s-3); }
.contact-block__address, .contact-block__phone { font-family: var(--font-display); text-transform: uppercase; font-style: normal; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; margin-bottom: var(--s-3); }
.contact-block__address a, .contact-block__phone a { text-decoration: none; }
.contact-block__hours li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-block__hours li span:first-child { font-family: var(--font-display); text-transform: uppercase; }
.contact-block__hours li span:last-child { color: var(--red); font-family: var(--font-display); }

.contact-list { display: flex; flex-direction: column; gap: var(--s-2); max-width: 640px; }
.contact-list li { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-2) 0; border-bottom: 1px solid var(--line-dark); }
.contact-list__role { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-on-dark); }
.contact-list a { font-family: var(--font-display); color: var(--red-hi); text-decoration: none; font-size: 1.2rem; }

.page-head { padding-bottom: var(--s-4); }

.find__text { max-width: 760px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--coaches { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --section-pad: var(--section-pad-m); }
  .split { grid-template-columns: 1fr; gap: var(--s-4); }
  .split__media { order: -1; }
  .legacy__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--coaches { grid-template-columns: repeat(2, 1fr); }
  .grid--events { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 220px 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-3); }

  /* Mobile nav: full-screen ink menu toggled by JS */
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-dark); cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--concrete); position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .nav__toggle-bars::before { position: absolute; top: -7px; left: 0; }
  .nav__toggle-bars::after { position: absolute; top: 7px; left: 0; }
  .site-header.is-open .nav__toggle-bars { background: transparent; }
  .site-header.is-open .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav__list {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: var(--s-3); padding: var(--s-5) var(--gutter); display: none;
    border-top: 1px solid var(--line-dark);
  }
  .site-header.is-open .nav__list { display: flex; }
  .nav__link { font-size: 1.4rem; padding: 8px 0; }
  .site-header__cta .site-header__phone { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3, .grid--coaches, .gallery { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .event__flyer { max-width: 320px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .site-footer__nav ul { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 70vh; }
  .site-header__cta .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
