/* Hi Plains Youth 6-Man Football — theme
   Palette: red / blue / black. Structure mirrors the Pasture Tech site
   (header + scrolling bar + hero + card grid + CTA + footer). */

:root {
  --red:        #d5202e;
  --red-dark:   #a8121e;
  --blue:       #12377a;
  --blue-light: #1e56c8;
  --black:      #0d0f14;
  --ink:        #14161c;
  --gray:       #5b6270;
  --light:      #f4f6fa;
  --white:      #ffffff;
  --shadow:     0 6px 22px rgba(0,0,0,.18);
  --radius:     12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
#site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; max-width: 1120px; margin: 0 auto; padding: 10px 18px;
}
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-brand img { height: 46px; width: auto; border-radius: 6px; }
.header-brand img.brand-logo { height: 52px; }
.header-brand .brand-text { font-weight: 800; letter-spacing: .5px; color: var(--white); font-size: 1.05rem; }
.header-brand .brand-text span { color: var(--red); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--white); font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.main-nav a:hover { background: var(--blue); text-decoration: none; }

/* scrolling team ticker (like pasturetech summary-bar) */
.summary-bar { background: var(--red); color: var(--white); overflow: hidden; white-space: nowrap; }
.summary-bar-inner {
  display: inline-block; padding: 6px 0; font-weight: 700; font-size: .85rem;
  letter-spacing: .3px; animation: scroll 30s linear infinite;
}
.summary-bar-inner a { margin: 0 22px; color: var(--white); text-decoration: none; }
.summary-bar-inner a:hover { text-decoration: underline; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ----------
   .hero-media is an absolutely-positioned background layer; .hero-content
   flows normally, so the section is always exactly as tall as its content
   (title/subtitle/buttons) needs — nothing can overflow past the image. */
.hero { position: relative; color: var(--white); text-align: center; overflow: hidden; min-height: 460px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.hero-content {
  position: relative; z-index: 1; min-height: 460px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 20px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin: 0; text-shadow: 0 3px 18px rgba(0,0,0,.6); }
.hero-title span { color: var(--red); }
/* Logo-style hero title: cropped "Hi Plains 6-MAN" art + block "Football" */
.hero-title-logo { margin: 0 0 6px; display: flex; flex-direction: column; align-items: center; }
.hero-title-logo img { width: min(88%, 620px); height: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.7)); }
.hero-title-football {
  font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  font-weight: 900; text-transform: uppercase; color: var(--red);
  font-size: clamp(1.6rem, 4.4vw, 3rem); letter-spacing: .12em; line-height: 1;
  margin-top: -.1em; -webkit-text-stroke: 2px #0d0f14;
  text-shadow: 0 3px 14px rgba(0,0,0,.7);
}
.hero-subtitle { max-width: 680px; font-size: clamp(1rem, 2vw, 1.2rem); margin: 14px 0 22px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-logo-wrap { margin: 0 0 8px; }
.hero-logo-wrap img { width: min(80%, 480px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.55)); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- buttons ---------- */
.button-primary, .button-secondary {
  display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: 13px 26px; border-radius: 40px; text-decoration: none; font-size: .95rem; transition: transform .1s, box-shadow .1s;
}
.button-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.button-primary:hover { background: var(--red-dark); text-decoration: none; transform: translateY(-2px); }
.button-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.button-secondary:hover { background: var(--white); color: var(--black); text-decoration: none; }

/* ---------- key dates stickers ---------- */
.key-dates { padding: 46px 0 6px; text-align: center; }
.key-dates-eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-weight: 800;
  color: var(--gray); font-size: .82rem; margin: 0 0 26px;
}
.sticker-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 22px; }
.sticker {
  --tilt: 0deg;
  position: relative; flex: 0 0 auto;
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; color: var(--white);
  border: 5px solid var(--white);
  box-shadow: var(--shadow), 0 2px 0 rgba(0,0,0,.18) inset;
  transform: rotate(var(--tilt));
  transition: transform .15s ease, box-shadow .15s ease;
}
.sticker::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.55); pointer-events: none;
}
.sticker:hover { transform: rotate(0deg) scale(1.07); box-shadow: 0 14px 28px rgba(0,0,0,.3); text-decoration: none; }
.sticker-red   { background: var(--red); }
.sticker-blue  { background: var(--blue); }
.sticker-black { background: var(--black); }
.sticker-label {
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; line-height: 1.15; opacity: .92;
}
.sticker-date {
  font-size: 1.3rem; font-weight: 900; letter-spacing: .5px;
  margin-top: 3px; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .sticker { width: 100px; height: 100px; }
  .sticker-date { font-size: 1.02rem; }
  .sticker-label { font-size: .58rem; }
  .sticker-row { gap: 22px 14px; }
}

/* ---------- card grid ---------- */
.section { padding: 54px 0; }
.section h2 { text-align: center; font-size: 2rem; text-transform: uppercase; letter-spacing: 1px; }
.section h2 span { color: var(--red); }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 34px; color: var(--gray); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border-top: 5px solid var(--blue);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.feature-card:nth-child(odd) { border-top-color: var(--red); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.22); text-decoration: none; }
.feature-card .card-image { width: 100%; height: 150px; object-fit: cover; }
.feature-card .card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.feature-card h3 { color: var(--blue); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .3px; }
.feature-card p { color: var(--gray); margin: 0 0 14px; font-size: .95rem; }
.feature-card .card-link { margin-top: auto; color: var(--red); font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .5px; }

.cta-band { background: var(--blue); color: var(--white); text-align: center; padding: 44px 18px; }
.cta-band h2 { color: var(--white); }
.cta-band .button-primary { margin-top: 10px; }

/* ---------- teams grid ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.team-tile {
  display: block; text-align: center; background: var(--light); border-radius: var(--radius);
  padding: 20px 12px; border-bottom: 4px solid var(--red); text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s;
}
.team-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.team-tile img { height: 92px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.team-tile .team-town { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .3px; }
.team-tile .team-mascot { color: var(--gray); font-size: .88rem; }
.team-tile-inactive { border-bottom-color: #ccd1db; opacity: .7; }
.team-tile-inactive:hover { opacity: 1; }

/* ---------- generic page content ---------- */
.page { padding: 46px 0 60px; }
.page h1 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 4px solid var(--red); display: inline-block; padding-bottom: 6px; }
.page table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.page th { background: var(--blue); color: var(--white); text-align: left; padding: 10px 12px; text-transform: uppercase; font-size: .85rem; letter-spacing: .3px; }
.page td { padding: 10px 12px; border-bottom: 1px solid #e4e8ef; }
.page tr:nth-child(even) td { background: var(--light); }

/* ---------- gallery ---------- */
.gallery-section { padding: 10px 0 54px; }
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 22px; }
.gallery-strip > img { width: 100%; height: 320px; object-fit: cover; display: block; border-radius: var(--radius); }

/* sponsor tile — sized to match a photo tile so it sits naturally in the mix */
.ad-tile {
  height: 320px; border-radius: var(--radius); background: var(--white);
  border-top: 5px solid var(--red); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-decoration: none; text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.ad-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.22); text-decoration: none; }
.ad-tile-eyebrow {
  color: var(--red); font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .75rem;
}
.ad-tile-logo { max-width: 82%; max-height: 110px; width: auto; height: auto; min-width: 0; object-fit: contain; }
.ad-tile-tagline { color: var(--gray); font-size: 1rem; font-weight: 600; }
.team-tile img.logo-placeholder { height: 84px; opacity: .92; }

/* ---------- footer ---------- */
footer { background: var(--black); color: #aeb4c0; text-align: center; padding: 30px 18px; font-size: .9rem; }
footer a { color: var(--white); }

/* ---------- responsive ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 720px) {
  .header-container { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 14px; }
  .header-brand img.brand-logo { height: 40px; }
  .main-nav { width: 100%; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 7px 9px; font-size: .86rem; }
  .summary-bar-inner { font-size: .78rem; }

  .hero { min-height: 380px; }
  .hero-content { min-height: 380px; padding: 30px 16px; }
  .hero-title-logo img { width: min(94%, 420px); }
  .hero-subtitle { margin: 10px 0 18px; }
  .hero-actions { width: 100%; }
  .hero-actions a { flex: 1 1 auto; text-align: center; }

  .section { padding: 38px 0; }
  .section h2 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card .card-image { height: 170px; }

  .gallery-section { padding: 6px 0 38px; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 16px; }
  .gallery-strip > img { height: 170px; }
  .ad-tile { height: 170px; padding: 12px; gap: 6px; }
  .ad-tile-logo { max-height: 60px; }
  .ad-tile-tagline { font-size: .8rem; }

  .cta-band { padding: 34px 16px; }

  .page { padding: 30px 0 44px; }
  .page h1 { font-size: 1.7rem; }
  .page table { font-size: .88rem; }
  .page th, .page td { padding: 8px; }

  .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-tile img { height: 70px; }

  .team-header { gap: 14px; }
  .team-header img { height: 80px; }
  .division-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-title-football { font-size: clamp(1.3rem, 6vw, 2rem); }
  .teams-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: 1fr; }
}
