/* Odyssey Sport NY — Central New York youth soccer reference
   Palette and 5px-radius language carried over from the club's original
   Firefly-era stylesheet (#0D6333 forest green, #65B43D grass accent,
   #E6EFE9 tint) and rebuilt around a condensed athletic type pairing
   and a pitch-line motif. */

:root {
  --green-900: #06250F;
  --green-800: #0B3B1E;
  --green-700: #0D6333;   /* original primary */
  --green-600: #14804A;
  --green-500: #65B43D;   /* original accent */
  --green-400: #8ACB6A;
  --green-050: #E6EFE9;   /* original tint */
  --green-025: #F4F8F5;

  --ink: #14181A;
  --body: #2C3531;
  --muted: #5F6B64;
  --line: #DAE3DC;
  --white: #FFFFFF;

  --font-head: "Barlow Condensed", "Tahoma", "Geneva", sans-serif;
  --font-body: "Source Sans 3", "Tahoma", "Geneva", sans-serif;

  --radius: 4px;
  --measure: 68ch;
  --shell: 1140px;
}

/* ---------- base ---------- */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-underline-offset: 0.18em; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4, .display-head {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.12;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); margin-top: 2.6rem; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin-top: 1.9rem; margin-bottom: 0.6rem; color: var(--green-800); }

p { margin-bottom: 1.15rem; }

/* Section markers — a small grass-green square, the site's signature */
main h2 { position: relative; padding-left: 1.15rem; }
main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--green-500);
  border-radius: 1px;
}

/* ---------- pitch-line motif ---------- */

.pitch-rule {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-700) 0 34px,
    var(--green-500) 34px 46px
  );
}

/* ---------- header ---------- */

.utility-bar {
  background: var(--green-900);
  color: var(--green-400);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-800);
  text-decoration: none;
  line-height: 1.05;
}
.brand-mark:hover { color: var(--green-700); }
.brand-mark span { color: var(--green-500); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Nav links: condensed, uppercase, sliding underline.
   min-width:0 + flex-wrap so the bar can never push links past the
   viewport and clip them silently. */
.site-nav .navbar-nav { min-width: 0; flex-wrap: wrap; }

.site-nav .nav-link {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--green-800);
  padding: 0.4rem 0.72rem;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--green-700); }

.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(13, 99, 51, 0.2); }

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

.hero {
  position: relative;
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 37, 15, 0.94) 0%, rgba(6, 37, 15, 0.72) 46%, rgba(11, 59, 30, 0.42) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(2.6rem, 6vw, 4.4rem);
}
.hero h1 { color: var(--white); max-width: 22ch; }
.hero .eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  color: var(--green-400);
  margin-bottom: 0.85rem;
}
.hero .lede {
  color: #DDEBE1;
  font-size: 1.16rem;
  max-width: 58ch;
  margin-top: 1.1rem;
}
.hero-accent {
  width: 82px;
  height: 4px;
  background: var(--green-500);
  margin: 1.6rem 0 0;
}

/* Interior page header (no photo) */
.page-head {
  background: var(--green-050);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(1.8rem, 4vw, 2.6rem);
}
.page-head .eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.86rem;
  color: var(--green-600);
  margin-bottom: 0.5rem;
}
.page-head h1 { color: var(--green-900); }

/* ---------- content ---------- */

.content-shell { padding: clamp(2.2rem, 5vw, 3.6rem) 0 1rem; }
.prose { max-width: var(--measure); }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--ink); }
.prose h2 + p, .prose h3 + p { margin-top: 0; }

figure.inline-figure { margin: 2rem 0 2.2rem; }
figure.inline-figure img { border-radius: var(--radius); border: 1px solid var(--line); }
figure.inline-figure figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.55rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--green-500);
}

.disclaimer {
  margin-top: 2.6rem;
  padding: 1.1rem 1.25rem;
  background: var(--green-025);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--green-800); }

/* ---------- cards (homepage index) ---------- */

.section-card {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-500);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.15rem;
  text-decoration: none;
  color: var(--body);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.section-card:hover {
  border-color: var(--green-600);
  border-top-color: var(--green-700);
  transform: translateY(-2px);
  color: var(--body);
}
.section-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
  color: var(--green-800);
}
.section-card p { margin: 0; font-size: 0.97rem; color: var(--muted); }

.band-tint { background: var(--green-025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--green-900);
  color: #C9DCCF;
  padding: 2.8rem 0 1.6rem;
  margin-top: 3.2rem;
  font-size: 0.96rem;
}
.site-footer h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  color: var(--green-400);
  margin-bottom: 0.85rem;
}
.site-footer a { color: #DDEBE1; text-decoration: none; }
.site-footer a:hover { color: var(--green-400); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.87rem;
  color: #9FB6A7;
}

/* ---------- 404 ---------- */

.notfound { padding: clamp(3.5rem, 9vw, 6.5rem) 0; text-align: center; }
.notfound .code {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 700;
  color: var(--green-050);
  line-height: 0.9;
}

/* ---------- entrance animation (CSS-only, ends visible) ----------
   Progressive enhancement ONLY. Every rule below ends in the visible
   state with animation-fill-mode:both, so content renders even if the
   animation never runs. Nothing on this site is hidden waiting on JS. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise-in 0.5s ease-out both;
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Safeguard: any scroll-reveal markup that ever lands here stays visible. */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .site-nav .navbar-nav { padding-top: 0.5rem; }
  .site-nav .nav-link { padding-left: 0.2rem; padding-right: 0.2rem; }
  .site-nav .nav-link::after { left: 0.2rem; right: 0.2rem; }
}

@media (max-width: 575.98px) {
  body { font-size: 1.02rem; }
  .utility-bar { font-size: 0.78rem; letter-spacing: 0.1em; }
  .brand-mark { font-size: 1.35rem; }
}
