/* Spartan Sports Ohio: simple version, keeping the site's own look.
   Colors read from the live Wix theme: black and white, forest green #3f7652,
   light green #7dcb7d, grey #626262 buttons. Headings bold italic caps, nav widely letter-spaced. */
:root {
  color-scheme: dark;
  --black: #000;
  --ink: #0a0a0a;
  --panel: #121212;
  --line: #2b2b2b;
  --white: #fff;
  --mute: #b0b0b0;
  --green: #3f7652;
  --green-hi: #7dcb7d;
  --grey: #626262;
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(18px, 5vw, 48px);
  --maxw: 960px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--white);
  font: 400 1.0625rem/1.7 var(--font); -webkit-font-smoothing: antialiased;
  background-color: var(--black);
  background-image: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82)), url("/img/hero-bg.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 760px) {
  /* iOS Safari handles fixed backgrounds poorly; scroll with the page there instead. */
  body { background-attachment: scroll; }
}
body.home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)), url("/img/hero-spartan-crest.jpg");
  background-position: center 15%;
}
body.scholarship {
  background-image: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)), url("/img/scholarship-bg.jpg");
  background-position: center 30%;
}
body.scholarship .page-head h1 {
  white-space: nowrap;
  font-size: clamp(0.85rem, 4.3vw, 2.5rem);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-hi); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green-hi); color: #000; padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--line); }
.site-header .wrap { max-width: 1160px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a {
  font: 600 0.92rem/1 var(--font); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--white); text-decoration: none; padding: 12px 11px; white-space: nowrap;
}
.nav a:hover { background: var(--green); color: var(--white); }
.nav a[aria-current="page"] { background: var(--green); }
.menu-btn { display: none; background: transparent; color: var(--white); border: 1px solid var(--grey); padding: 10px 14px; font: 500 0.78rem/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 1260px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--black); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
}

/* Type */
h1, h2, h3 { font-family: var(--font); text-transform: uppercase; margin: 0 0 0.5em; line-height: 1.1; text-wrap: balance; }
h1 { font-weight: 800; font-style: italic; font-size: clamp(2.2rem, 7vw, 4.2rem); }
h2 { font-weight: 800; font-style: italic; font-size: clamp(1.5rem, 4vw, 2.3rem); }
h3 { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; }
p { margin: 0 0 1.1em; max-width: 66ch; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; }
.muted { color: var(--mute); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Buttons */
.btn { display: inline-block; background: var(--green-hi); color: #000; text-decoration: none; font: 700 0.85rem/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 28px; border: 0; cursor: pointer; }
.btn:hover { background: var(--white); color: #000; }
.btn.alt { background: var(--grey); color: var(--white); }
.btn.alt:hover { background: var(--white); color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .btn-row, .hero .btn-row { justify-content: center; }

/* Layout blocks */
.section { padding-block: clamp(40px, 7vw, 80px); }
.section + .section { border-top: 1px solid var(--line); }
.hero { padding-block: clamp(32px, 6vw, 72px); text-align: center; }
.hero img, .crest-fallback { width: 100%; max-width: 860px; margin: 0 auto clamp(24px, 4vw, 44px); }
.crest-fallback { display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--panel); border: 1px solid var(--line); font: 800 clamp(1.6rem, 5vw, 3rem)/1 var(--font); font-style: italic; text-transform: uppercase; padding: 16px; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { margin-inline: auto; }
.page-head { padding-block: clamp(36px, 6vw, 64px) 8px; }
.page-head h1 { margin-bottom: 0.2em; }
.page-head p { color: var(--mute); }

/* Simple list of links/rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; color: var(--white); }
.row:hover { color: var(--green-hi); }
.row h3 { margin: 0 0 6px; }
.row p { margin: 0; color: var(--mute); font-size: 0.98rem; line-height: 1.55; }
.row .end { font: 500 0.78rem var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-hi); white-space: nowrap; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.three h3 { color: var(--green-hi); }
.three p { color: var(--mute); }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 8px; } }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }
.people h3 { margin-bottom: 2px; }
.people .role { display: block; color: var(--green-hi); font: 500 0.75rem/1.4 var(--font); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.people p { color: var(--mute); margin: 0; }

.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list-plain b { color: var(--green-hi); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; display: block; }

.subhead { color: var(--green-hi); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; font-weight: 700; margin: 32px 0 14px; }
.subhead:first-of-type { margin-top: 6px; }
.three + .note { margin-top: -4px; }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.poster-grid img { border: 1px solid var(--line); }
.poster { max-width: 480px; margin: 0 auto; border: 1px solid var(--line); }

.promo-flank { display: grid; grid-template-columns: 1fr minmax(260px, 380px) 1fr; gap: 32px; align-items: center; }
.promo-col h3 { color: var(--green-hi); }
.promo-col p { color: var(--mute); margin: 0; }
.promo-img { width: 100%; border: 1px solid var(--line); }
@media (max-width: 820px) {
  .promo-flank { grid-template-columns: 1fr; text-align: center; }
  .promo-img { order: -1; max-width: 420px; margin: 0 auto; }
}

.note { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; color: var(--mute); }

.feature-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--green-hi); padding: clamp(26px, 4vw, 44px); }
.feature-card h2 { margin-bottom: 0.35em; }
.feature-card .lede { color: var(--mute); margin-bottom: 0; }
.feature-card .btn-row { margin-top: 24px; }

/* ScoreStream widget: the widget's own docs say its height comes from the container it's
   placed in, so we set one explicitly here rather than leaving it to collapse to 0. */
.scorestream-widget-container { margin-top: 4px; background: var(--panel); border: 1px solid var(--line); }
.scorestream-widget-container .scorestreamIframe,
.scorestream-widget-container iframe { display: block; width: 100%; height: 170px; border: 0; }
@media (max-width: 560px) {
  .scorestream-widget-container .scorestreamIframe,
  .scorestream-widget-container iframe { height: 320px; }
}

/* Forms */
form { display: grid; gap: 16px; max-width: 560px; }
label { display: grid; gap: 6px; font: 500 0.78rem/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; }
input, textarea { width: 100%; background: var(--panel); color: var(--white); border: 1px solid var(--grey); padding: 13px 14px; font: 400 1rem var(--font); border-radius: 0; }
input:focus, textarea:focus { border-color: var(--green-hi); outline: none; }
textarea { min-height: 150px; resize: vertical; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.contacts { display: grid; gap: 4px; margin: 20px 0 0; }
.contacts b { font-weight: 700; }
.contacts a { word-break: break-word; }
.form-msg { border-left: 3px solid var(--green-hi); padding-left: 12px; margin: 0; color: var(--mute); }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 0.85rem; letter-spacing: 0.22em; color: var(--green-hi); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--green-hi); }
.site-footer p { color: var(--mute); }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.85rem; }

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