/* ===========================================================
   Kings Youth Basketball — Temporary One-Page Site
   =========================================================== */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #fafaf8;
  --steel: #5c5f66;
  --court-line: #e4e3df;
  --brass: #c89b3c;
  --max-w: 1180px;
  --header-h: 92px;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.02;
}

a { color: inherit; }

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/* ---------------- Static policy pages ---------------- */

.policy-hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  border-top: 4px solid var(--brass);
}

.policy-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-top: 8px;
}

.policy-back {
  margin-top: 18px;
}

.policy-back a.plain-light {
  color: #d8d6cf;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
}

.policy-back a.plain-light:hover { color: #fff; }

.policy-effective {
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.policy-note-inline {
  background: rgba(200,155,60,0.1);
  border-left: 3px solid var(--brass);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--ink);
}

.policy-body {
  padding: 64px 0 88px;
}

.policy-content {
  max-width: 760px;
}

.policy-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 48px;
  margin-bottom: 16px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-content p {
  color: var(--steel);
  margin: 0 0 14px;
}

.policy-content ul,
.policy-content ol {
  color: var(--steel);
  margin: 0 0 16px;
  padding-left: 22px;
}

.policy-content li {
  margin-bottom: 6px;
}

.policy-content strong {
  color: var(--ink);
}

.policy-content a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--court-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 62px;
  width: auto;
}

@media (max-width: 720px) {
  .brand-logo { height: 46px; }
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle svg { display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--court-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 300px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li { border-bottom: 1px solid var(--court-line); }
  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 40%, rgba(17,17,17,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  color: #fff;
}

.hero-content .eyebrow { color: #d8d6cf; }

.hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  color: #fff;
  margin-top: 6px;
}

.hero-content p {
  margin-top: 14px;
  max-width: 42ch;
  color: #e7e6e1;
  font-size: 1.02rem;
}

/* ---------------- Tryout status band ---------------- */

.status-band {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  border-top: 4px solid var(--brass);
}

.status-band .status-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

.status-band h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: #fff;
}

.status-band p {
  margin-top: 16px;
  max-width: 62ch;
  color: #d8d6cf;
  font-size: 1.02rem;
}

/* ---------------- About ---------------- */

.about {
  padding: 88px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.about-grid .lede {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 18px;
}

.about-grid p {
  color: var(--steel);
}

.about-grid p + p { margin-top: 14px; }

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-grid h2 { position: static; }
}

/* ---------------- FAQs ---------------- */

.faqs {
  padding: 88px 0;
  border-top: 1px solid var(--court-line);
  border-bottom: 1px solid var(--court-line);
}

.faqs-head {
  margin-bottom: 40px;
}

.faqs-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 8px;
}

.faq-category {
  max-width: 780px;
  margin-bottom: 40px;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category h3 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 14px;
}

.faq-item {
  border-bottom: 1px solid var(--court-line);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  color: var(--brass);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

.faq-answer {
  padding: 0 28px 20px 0;
  color: var(--steel);
}

.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.faq-answer li { margin-bottom: 4px; }

.faq-closing {
  color: var(--steel);
  max-width: 780px;
}

/* ---------------- Gallery ---------------- */

.gallery {
  padding: 88px 0 96px;
  background: var(--court-line);
}

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.gallery-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-number {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

.gallery-item button.item-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
  .gallery-item.tall { grid-row: span 1; }
}

.gallery-item.gallery-hidden {
  display: none;
}

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.gallery-more-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 13px 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-more-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* ---------------- Sponsors ---------------- */

.sponsors {
  padding: 80px 0;
  background: var(--paper);
  border-top: 1px solid var(--court-line);
}

.sponsors-head {
  text-align: center;
  margin-bottom: 44px;
}

.sponsors-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 6px;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.sponsor-logo {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (max-width: 560px) {
  .sponsors-grid { gap: 36px; }
  .sponsor-logo { height: 48px; max-width: 130px; }
}

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

.contact {
  background: var(--ink);
  color: #fff;
  padding: 76px 0 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.contact-info-block {
  margin-top: 32px;
}

.contact-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-brand img { height: 44px; }

.contact-brand span {
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.contact p { color: #c8c7c0; margin: 0 0 6px; }

.contact h3 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin-bottom: 14px;
}

.contact a.plain {
  text-decoration: none;
  color: #fff;
}
.contact a.plain:hover { text-decoration: underline; }

.tryout-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--brass);
  font-size: 0.92rem;
  color: #e7e6e1;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.social-links a {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  border-color: var(--brass);
  background: rgba(200,155,60,0.12);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #9b9a94;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a.plain {
  color: #9b9a94;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a.plain:hover { color: #fff; }

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------------- Contact form ---------------- */

.contact-form-wrap h3 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8c7c0;
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 2px;
  padding: 11px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255,255,255,0.09);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

/* Honeypot field: hidden from sighted users and screen readers,
   but still present for bots to fill in */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  background: var(--brass);
  color: #16130a;
  border: none;
  border-radius: 2px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: #dcae52;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.form-status.success { color: #9fd6a8; }
.form-status.error { color: #e6a3a3; }

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
