/* ==========================================================
   Fury 15U Softball — Recruiting Site
   Colors pulled from the team logo
   ========================================================== */

:root {
  --navy: #010f28;
  --navy-2: #0a1d3f;
  --navy-3: #13294f;
  --gold: #fbb017;
  --gold-dark: #d9940a;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #5b6577;
  --line: #e3e7ee;
  --bg-alt: #f4f6fa;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(1, 15, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(1, 15, 40, 0.18);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #ffc13d; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600; font-size: .9rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.eyebrow--dark { color: var(--gold-dark); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(1, 15, 40, 0.0);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(1, 15, 40, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--white);
  font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em;
}
.nav__brand strong { color: var(--gold); }
.nav__logo { height: 42px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-weight: 500; font-size: .95rem;
  position: relative;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__menu a:not(.btn):hover,
.nav__menu a.is-current { color: var(--white); }
.nav__menu a:not(.btn):hover::after,
.nav__menu a.is-current::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 3px; border-radius: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  background:
    radial-gradient(1200px 600px at 85% 30%, rgba(251,176,23,.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: var(--white);
}
.hero__stripes {
  position: absolute; inset: auto -10% -120px -10%; height: 260px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  transform: rotate(-6deg);
  opacity: .08;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: .3em;
}
.hero__title span { color: var(--gold); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__stats {
  display: flex; gap: 2.5rem; margin: 0;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stats dt { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hero__stats dd { margin: .35rem 0 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.hero__logo-wrap { display: flex; justify-content: center; }
.hero__logo {
  width: min(420px, 100%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 3rem; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar {
  padding: 2rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar__icon {
  width: 52px; height: 52px; margin-bottom: 1.25rem;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--navy);
}
.pillar__icon svg { width: 26px; height: 26px; fill: var(--gold); }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.filters__group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem 1.1rem;
  font: 600 .9rem var(--font-body);
  color: var(--navy); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.select select {
  appearance: none;
  padding: .55rem 2.5rem .55rem 1rem;
  font: 500 .9rem var(--font-body); color: var(--navy);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23010f28' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
}

/* ---------- Roster ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.player {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 0; text-align: left;
  font: inherit; color: inherit;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp .4s ease both;
}
.player:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.player__top {
  position: relative;
  height: 150px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  overflow: hidden;
}
.player__top::before {
  content: ""; position: absolute; right: -30px; top: -40px;
  width: 160px; height: 160px;
  background: url("assets/logo.webp") center / contain no-repeat;
  opacity: .12;
}
.player__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 4.5rem; line-height: .85;
  color: var(--gold);
}
.player__avatar, .profile__avatar {
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white); color: var(--navy);
  font-family: var(--font-head); font-weight: 700;
  border: 3px solid var(--gold);
  position: relative; z-index: 1;
}
.player__avatar { width: 88px; height: 88px; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.profile__avatar { width: 112px; height: 112px; font-size: 2rem; border-width: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.player__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.player__name { font-size: 1.35rem; margin-bottom: .2rem; }
.player__pos { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.player__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line);
}
.player__meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.player__meta dd { margin: 0; font-weight: 700; color: var(--navy); }
.tag {
  position: absolute; top: 1rem; left: 1.25rem;
  padding: .2rem .65rem;
  font: 700 .7rem var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--gold); border-radius: 999px;
}
.roster__empty { text-align: center; color: var(--muted); padding: 3rem 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Schedule ---------- */
.schedule__tabs { display: inline-flex; padding: 4px; margin-bottom: 1.75rem; background: var(--bg-alt); border-radius: 999px; }
.tab {
  padding: .55rem 1.4rem;
  font: 600 .9rem var(--font-body); color: var(--muted);
  background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.tab.is-active { background: var(--navy); color: var(--white); }

.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  animation: fadeUp .4s ease both;
}
.event:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.event__date {
  text-align: center; padding: .6rem 0;
  background: var(--navy); color: var(--white); border-radius: var(--radius-sm);
  font-family: var(--font-head); line-height: 1.1;
}
.event__date span { display: block; font-size: .8rem; letter-spacing: .12em; color: var(--gold); }
.event__date strong { font-size: 1.5rem; }
.event__name { font-size: 1.2rem; margin: 0 0 .2rem; }
.event__loc { color: var(--muted); font-size: .92rem; margin: 0; }
.badge {
  padding: .35rem .8rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; white-space: nowrap;
  background: var(--bg-alt); color: var(--navy);
}
.badge--gold { background: rgba(251,176,23,.18); color: #8a5c00; }
.badge--win { background: #e3f6ea; color: #166534; }

/* ---------- Staff ---------- */
.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.coach {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.75rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.coach__avatar {
  flex: none; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
}
.coach h3 { margin-bottom: .1rem; }
.coach__role { color: var(--gold-dark); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.coach__bio { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }
.coach a { color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 2px solid var(--gold); }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
}
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact__copy > p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list span { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.contact__list a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact__list a:hover { color: var(--gold); }

.form {
  display: grid; gap: 1.1rem;
  padding: 2.25rem;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .75rem .9rem;
  font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.form .is-invalid { border-color: #dc2626; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; text-align: center; }
.form__status.is-ok { color: #166534; }
.form__status.is-err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 2rem 0; font-size: .9rem; border-top: 3px solid var(--gold); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: .75rem; color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.footer__logo { height: 36px; width: auto; }
.footer__top { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ---------- Modal ---------- */
.modal {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.modal::backdrop { background: rgba(1, 15, 40, .7); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 40px; height: 40px;
  font-size: 1.8rem; line-height: 1;
  color: var(--white); background: rgba(255,255,255,.12);
  border: 0; border-radius: 50%; cursor: pointer;
}
.modal__close:hover { background: var(--gold); color: var(--navy); }
.profile__head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 2.25rem 2rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--white);
}
.profile__head::after {
  content: ""; position: absolute; right: -40px; bottom: -60px;
  width: 220px; height: 220px;
  background: url("assets/logo.webp") center / contain no-repeat; opacity: .1;
}
.profile__num { font-family: var(--font-head); font-size: 5rem; line-height: .8; color: var(--gold); font-weight: 700; }
.profile__head h2 { font-size: 2.2rem; margin: 0 0 .2rem; }
.profile__head p { margin: 0; color: rgba(255,255,255,.75); }
.profile__content { padding: 2rem; }
.profile__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;
  margin: 0 0 1.75rem;
}
.profile__grid div { padding: .9rem; background: var(--bg-alt); border-radius: var(--radius-sm); }
.profile__grid dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.profile__grid dd { margin: 0; font-weight: 700; color: var(--navy); }
.profile__section h3 { font-size: 1rem; color: var(--gold-dark); margin-bottom: .5rem; }
.profile__section { margin-bottom: 1.5rem; }
.profile__section p { color: var(--muted); }
.profile__list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.profile__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 16px 1.5rem;
    background: rgba(1, 15, 40, .98);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 1rem; }
  .nav:has(.nav__menu.is-open) { background: rgba(1, 15, 40, .98); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo-wrap { order: -1; }
  .hero__logo { width: 200px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }

  .section { padding: 72px 0; }
  .event { grid-template-columns: 72px 1fr; gap: 1rem; }
  .event .badge { grid-column: 2; justify-self: start; }
  .profile__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
  .hero__stats dt { font-size: 2rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .select select { width: 100%; }
  .profile__head { padding: 2rem 1.25rem; gap: 1rem; }
  .profile__num { font-size: 3.5rem; }
  .profile__avatar { width: 76px; height: 76px; font-size: 1.4rem; border-width: 3px; }
  .profile__head h2 { font-size: 1.6rem; }
  .profile__content { padding: 1.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
