/* =====================================================================
   Hydras Sports Network — site stylesheet
   Sports-institution system: the visual language of a real league office
   or federation (masthead, official registers, squad rosters, numbered
   facts) rather than generic corporate-SaaS or gamer-product design.
   Black + red are treated as true team colors, used with confidence.
   Yellow is the secondary "special" accent (product/highlight fills only).
   No gradients, no glow, no glassmorphism, no decorative color blocks.
   ===================================================================== */

:root {
  --ink: #131110;
  --paper: #ffffff;
  --red: #ce0e1b;
  --red-dark: #a10b16;
  --yellow: #f5c400;
  --steel: #5b544e;
  --line: #dedad2;
  --line-on-ink: rgba(255, 255, 255, 0.16);
  --steel-on-ink: rgba(255, 255, 255, 0.6);

  --font: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.label--red { color: var(--red); }
.label--steel { color: var(--steel); }
.label--on-ink { color: var(--steel-on-ink); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); }
.btn-primary--red { background: var(--red); }
.btn-primary--red:hover { background: var(--red-dark); }

.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-secondary--on-ink { border-color: var(--paper); color: var(--paper); }
.btn-secondary--on-ink:hover { background: var(--paper); color: var(--ink); }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */

.header { position: sticky; top: 0; z-index: 100; background: var(--ink); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter); gap: 24px;
}

.header__logo { height: 28px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__list > li { position: relative; }

.nav__list a { color: var(--paper); font-size: 0.9rem; font-weight: 500; padding: 8px 2px; }
.nav__list > li > a:hover, .nav__list > li.is-open > a { color: var(--red); }

.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--ink); border: 1px solid var(--line-on-ink);
  border-top: 2px solid var(--red); padding: 6px 0; display: none;
}

.nav__list > li.is-open .nav-dropdown,
.nav__list > li:hover .nav-dropdown,
.nav__list > li:focus-within .nav-dropdown { display: block; }

.nav-dropdown a { display: block; padding: 12px 18px; font-size: 0.85rem; font-weight: 500; }
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); color: var(--red); }

.nav__list .nav__cta { margin-left: 8px; background: var(--red); color: var(--paper); padding: 14px 26px; font-size: 0.9rem; font-weight: 700; line-height: 1; }
.nav__list .nav__cta:hover { background: var(--red-dark); color: var(--paper); }

.nav-toggle {
  display: none; background: none; border: none; width: 34px; height: 26px; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--paper);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span { top: 12px; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------------
   Masthead — repeats on every page, like a letterhead
   --------------------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 0; flex-wrap: wrap; }
.masthead img { height: 24px; }
.masthead .label { color: var(--steel); letter-spacing: 0.14em; display: inline; padding-left: 18px; border-left: 1px solid var(--line); }
.masthead .label b { color: var(--red); }

/* ---------------------------------------------------------------------
   Page title (inner-page hero)
   --------------------------------------------------------------------- */

.page-title { padding: 56px 0; border-bottom: 1px solid var(--line); }
.page-title .label { margin-bottom: 16px; }
.page-title h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); max-width: 17ch; }
.page-title p.sub { color: var(--steel); font-size: 1.1rem; max-width: 54ch; margin: 20px 0 0; line-height: 1.6; }

/* ---------------------------------------------------------------------
   Home hero
   --------------------------------------------------------------------- */

.hero { padding: 44px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.hero-grid h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); max-width: 21ch; }
.hero-grid h1 em { font-style: normal; color: var(--red); }
.hero-grid p.sub { font-size: 1.15rem; color: var(--steel); max-width: 46ch; margin: 26px 0 0; line-height: 1.6; }

.hero-facts { display: flex; flex-direction: column; text-align: right; }
.hero-facts .fact { padding: 10px 0; border-top: 1px solid var(--line); }
.hero-facts .fact:first-child { border-top: none; }
.hero-facts .fact .v { font-family: var(--font-mono); font-weight: 600; font-size: 1.4rem; color: var(--ink); }
.hero-facts .fact .l { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-top: 2px; }

/* ---------------------------------------------------------------------
   Section rhythm
   --------------------------------------------------------------------- */

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.section-head p { color: var(--steel); font-size: 1rem; max-width: 46ch; margin: 12px 0 0; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 66ch; color: var(--ink); line-height: 1.6; }

/* ---------------------------------------------------------------------
   Verticals split-strip — the core "two verticals" duality
   --------------------------------------------------------------------- */

.strip { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-item { padding: 40px 0; }
.strip-item:first-child { border-right: 1px solid var(--line); padding-right: 56px; }
.strip-item:last-child { padding-left: 56px; }
.strip-item .label { margin-bottom: 12px; }
.strip-item h3 { font-size: 1.7rem; font-weight: 800; margin: 0 0 10px; }
.strip-item p { color: var(--steel); font-size: 0.98rem; margin: 0 0 18px; max-width: 42ch; line-height: 1.6; }
.strip-item .links { display: flex; gap: 20px; flex-wrap: wrap; }
.strip-item a.link { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.strip-item a.link:hover { color: var(--red); }
.strip-item a.link--muted { border-bottom-color: var(--line); color: var(--steel); }
.strip-item a.link--muted:hover { color: var(--ink); border-bottom-color: var(--steel); }

/* ---------------------------------------------------------------------
   Register table — the document-list pattern for anything enumerable
   (What We Do, Service Lines, Why-us benefits, Corporate Offices)
   --------------------------------------------------------------------- */

table.register { margin-top: 8px; }
table.register th {
  text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--ink);
}
table.register td { padding: 22px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.register tr:last-child td { border-bottom: 1px solid var(--ink); }
table.register td.no { font-family: var(--font-mono); font-weight: 700; color: var(--red); width: 56px; font-size: 1rem; }
table.register td.title { font-weight: 700; width: 26%; }
table.register td.desc { color: var(--steel); font-size: 0.96rem; line-height: 1.6; }

/* ---------------------------------------------------------------------
   Product callout — the one place a color fill carries real content
   --------------------------------------------------------------------- */

.callout {
  background: var(--yellow); color: var(--ink); padding: 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.callout img.product-logo { height: 36px; width: auto; }
.callout .tagline { font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
.callout p.desc { margin: 12px 0 0; font-size: 0.96rem; max-width: 54ch; }
.callout .btn-primary { background: var(--ink); }
.callout .btn-primary:hover { background: #000; }

/* ---------------------------------------------------------------------
   Full-bleed black band — one earned statement moment per page
   --------------------------------------------------------------------- */

.band { background: var(--ink); color: var(--paper); padding: 80px 0; }
.band .label { color: var(--red); margin-bottom: 18px; }
.band h2 { color: var(--paper); font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 24ch; }
.band p { color: var(--steel-on-ink); font-size: 1.08rem; max-width: 58ch; margin-top: 18px; }
.band--split { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }

/* framed alternative — a strong closing without a second full-bleed block */
.framed { border-top: 4px solid var(--ink); padding: 64px 0; }
.framed h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 20ch; }
.framed .label { margin-bottom: 16px; }

/* ---------------------------------------------------------------------
   Checklist (compact benefit list, used inline within prose sections)
   --------------------------------------------------------------------- */

.checklist { border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.checklist li .mark { font-family: var(--font-mono); font-weight: 700; color: var(--red); font-size: 0.95rem; }
.checklist strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.checklist span.desc { color: var(--steel); font-size: 0.94rem; }

/* ---------------------------------------------------------------------
   Roster (Team page) — squad cards with photo slots
   --------------------------------------------------------------------- */

.roster-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.roster-head h2 { font-size: 1.6rem; font-weight: 800; }
.roster-grid + .roster-head { margin-top: 56px; }

.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 220px)); justify-content: start; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { background: var(--paper); display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-photo { position: relative; aspect-ratio: 4 / 5; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.card-photo span.initials { font-weight: 800; font-size: 2.1rem; color: rgba(255, 255, 255, 0.92); }
.card-photo .badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 0.76rem; padding: 3px 8px; }
.card--board .card-photo { background: var(--paper); border: 2px solid var(--ink); margin: -1px; }
.card--board .card-photo span.initials { color: var(--ink); }
.card--board .card-photo .badge { background: var(--ink); color: #fff; }
.card-meta { padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.card-name { font-weight: 700; font-size: 0.96rem; }
.card-status { color: var(--steel); font-size: 0.82rem; font-style: italic; margin-top: 3px; }
.roster-note { margin-top: 24px; font-size: 0.9rem; color: var(--steel); max-width: 60ch; }

/* ---------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------- */

.reach-bar { background: var(--ink); color: var(--paper); padding: 40px 0; }
.reach-bar__inner { display: flex; flex-wrap: wrap; gap: 30px 56px; align-items: center; }
.reach-bar__item .label { color: var(--steel-on-ink); margin-bottom: 8px; }
.reach-bar__item .value { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.reach-bar__item a.value:hover { color: var(--red); }

.addr-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.addr-group h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin: 0; }
.addr-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.addr-item .addr-num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.addr-item .addr-text { margin-top: 8px; font-size: 0.98rem; line-height: 1.55; }
.addr-item .addr-map { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--red); }
.addr-item .addr-map:hover { color: var(--red-dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--ink); background: var(--paper); padding: 13px 14px; font-family: var(--font); font-size: 0.95rem; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206, 14, 27, 0.12); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 0.85rem; color: var(--steel); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.footer { background: var(--ink); color: var(--steel-on-ink); padding: 56px 0 24px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-ink); }
.footer__logo { height: 26px; margin-bottom: 16px; }
.footer__tag { font-size: 0.92rem; max-width: 30ch; }
.footer__heading { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 16px; }
.footer__list { display: flex; flex-direction: column; gap: 11px; }
.footer__list a { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.footer__list a:hover { color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-facts { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 24px; }
  .hero-facts .fact { border-top: none; padding: 0; }
  .strip { grid-template-columns: 1fr; }
  .strip-item:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .strip-item:last-child { padding-left: 0; padding-top: 32px; }
  .callout { grid-template-columns: 1fr; text-align: left; padding: 32px 26px; }
  .band--split { grid-template-columns: 1fr; text-align: left; }
  .addr-columns { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  table.register td.title { width: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav__list {
    position: fixed; inset: 62px 0 0 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; overflow-y: auto;
  }
  .nav.is-open .nav__list { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__list > li { width: 100%; border-bottom: 1px solid var(--line-on-ink); }
  .nav__list a { display: block; padding: 16px 2px; }
  .nav-dropdown { position: static; border: none; background: none; padding: 0 0 0 14px; display: none; }
  .nav__list > li.is-open .nav-dropdown { display: block; }
  .nav__cta { margin: 18px 0 0; text-align: center; justify-content: center; }
  table.register td.no { display: none; }
  table.register th:first-child { display: none; }
  .reach-bar__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .masthead { padding: 10px 0; }
  .masthead .label { border-left: none; padding-left: 0; text-align: center; }
}
