/* ============================================================
   DAYO VOLLEYBALL — Design tokens
   Palette:  Court Navy #0B2545 · Spike Orange #FF5A1F ·
             Sand Gold #FFC145 · Chalk #FBFAF7 · Ink #10151F
   Type:     Display = "Archivo Black" · Body = "Inter" ·
             Scoreboard/Utility = "Space Mono"
   Signature: scoreboard numerals + angled "net-line" dividers
   ============================================================ */

:root {
  --navy: #0B2545;
  --navy-deep: #071730;
  --orange: #FF5A1F;
  --orange-deep: #E0430D;
  --gold: #FFC145;
  --chalk: #FBFAF7;
  --ink: #10151F;
  --grey: #6B7280;
  --line: #E7E2D8;
  --white: #FFFFFF;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --radius: 10px;
  --max-width: 1180px;
  --shadow-card: 0 10px 30px rgba(11, 37, 69, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: #2b3242; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.35);
}
.btn-primary:hover { background: var(--orange-deep); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--orange);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--orange); color: var(--gold); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--orange-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
  .nav-cta { margin-top: 10px; text-align: center; }
}

/* ---------------- Net-line divider (signature element) ---------------- */
.net-divider {
  height: 34px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--gold) 0 18px,
      var(--navy) 18px 36px
    );
  position: relative;
}
.net-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 40px);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(180deg, rgba(7,23,48,0.35) 0%, rgba(7,23,48,0.85) 78%, var(--navy-deep) 100%),
              url('../images/hero-action.jpg') center 20%/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -18%;
  width: 46%;
  height: 140%;
  background: var(--orange);
  opacity: 0.14;
  transform: rotate(12deg);
}
.hero-inner {
  position: relative;
  padding: 90px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: var(--white);
  max-width: 760px;
  margin-bottom: 18px;
}
.hero-tagline {
  font-size: 1.15rem;
  color: #E9EDF5;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-score {
  position: absolute;
  right: 24px;
  top: 40px;
  font-family: var(--font-mono);
  background: rgba(7,23,48,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: none;
}
@media (min-width: 900px) { .hero-score { display: block; } }

/* ---------------- Section spacing ---------------- */
.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #C9D2E3; }
.section-alt { background: #F1EDE3; }
.section-header { max-width: 640px; margin-bottom: 44px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Intro (Home) ---------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.intro-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--navy) url('../images/intro-team.png') center/cover no-repeat;
}
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-photo { order: -1; }
}

/* ---------------- Highlight cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid var(--line);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,37,69,0.16); }
.highlight-card .thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.highlight-card .thumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(11,37,69,0.55));
}
.highlight-card .thumb-1 { background-image: url('../images/highlight-gallery.jpg'); }
.highlight-card .thumb-2 { background-image: url('../images/highlight-games.jpg'); }
.highlight-card .thumb-3 { background-image: url('../images/highlight-sponsors.jpg'); }
.highlight-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.highlight-card .body p { flex: 1; font-size: 0.95rem; }
.highlight-card .link {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.highlight-card .link::after { content: " →"; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-banner .btn-secondary { border-color: var(--white); }

/* ---------------- Gallery page ---------------- */
.gallery-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gallery-tabs a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
}
.gallery-tabs a:hover, .gallery-tabs a.active { background: var(--navy); color: var(--white); }

.gallery-category { margin-bottom: 60px; }
.gallery-category h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--gold);
  margin-right: 10px;
  border-radius: 2px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.photo-card .photo {
  aspect-ratio: 4/3;
  background: #d9d3c4 center/cover no-repeat;
}
.photo-card .caption { padding: 14px 16px; }
.photo-card .caption .event { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.photo-card .caption .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--grey); margin-top: 4px; }
.empty-note {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------------- Games page ---------------- */
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.game-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-card .date-strip {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}
.game-card .date-strip .status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.status-open { background: var(--gold); color: var(--navy-deep); }
.status-full { background: #ccc; color: #444; }
.status-cancelled { background: #E24C4C; color: white; }
.game-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.game-card h3 { margin-bottom: 2px; }
.game-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: #2b3242; }
.game-meta .row { display: flex; align-items: center; gap: 8px; }
.game-meta .icon { color: var(--orange); font-weight: 700; width: 18px; display: inline-block; }
.game-card .fee { font-family: var(--font-mono); font-weight: 700; color: var(--navy); }
.game-card .btn { margin-top: 10px; }
.spots-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px;}
.spots-bar-fill { height: 100%; background: var(--orange); }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.schedule-table th, .schedule-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.schedule-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .how-it-works { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-card .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.registration-slot {
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--navy);
  background: rgba(255,90,31,0.05);
}
.registration-slot h3 { margin-bottom: 8px; }
.registration-slot p { color: var(--grey); max-width: 520px; margin: 0 auto 6px; }

/* ---------------- Sponsorship page ---------------- */
.sponsor-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.sponsor-hero h1 { color: var(--white); }
.sponsor-hero p { color: #C9D2E3; max-width: 620px; margin: 0 auto; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sponsor-grid { grid-template-columns: 1fr; } }

.sponsor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.sponsor-card .logo-wrap {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.sponsor-card img { max-height: 90px; margin: 0 auto; }
.sponsor-card .tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 700;
}
.sponsor-card p { font-size: 0.9rem; color: var(--grey); }

.sponsor-cta {
  background: var(--gold);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.sponsor-cta h2 { color: var(--navy-deep); }

/* ---------------- About page ---------------- */
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.about-photos div { aspect-ratio: 1; border-radius: var(--radius); background-size: cover; background-position: center; }
.about-photos div:nth-child(1) { background-image: url('../images/about-1.jpg'); }
.about-photos div:nth-child(2) { background-image: url('../images/about-2.jpg'); }
.about-photos div:nth-child(3) { background-image: url('../images/about-3.jpg'); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { border-left: 4px solid var(--orange); padding: 6px 0 6px 18px; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,90,31,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--grey); margin-top: 6px; }

.social-links { display: flex; gap: 14px; margin-top: 18px; }
.social-links a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}
.social-links a:hover { background: var(--orange); transform: translateY(-2px); }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}
.alert-success { background: #E4F5E9; color: #1B7A3D; border: 1px solid #B7E4C7; }
.alert-error { background: #FCEAEA; color: #B23A3A; border: 1px solid #F2BEBE; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: #B9C2D6;
  padding: 54px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: #B9C2D6; font-size: 0.9rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #7C88A3;
}

/* ---------------- Admin ---------------- */
.admin-body { background: #F1EDE3; min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--navy-deep);
  color: var(--white);
  padding: 26px 0;
  flex-shrink: 0;
}
.admin-sidebar .brand { font-family: var(--font-display); padding: 0 22px 24px; font-size: 1.1rem; }
.admin-sidebar .brand span { color: var(--gold); }
.admin-sidebar a {
  display: block;
  padding: 12px 22px;
  color: #C9D2E3;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.06); color: var(--white); border-left-color: var(--orange); }
.admin-main { flex: 1; padding: 34px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 26px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); }
.admin-actions { display: flex; gap: 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; font-family: var(--font-mono); }
.badge-open, .badge-verified { background: #E4F5E9; color: #1B7A3D; }
.badge-full, .badge-pending { background: #FFF3D6; color: #92650C; }
.badge-cancelled, .badge-rejected { background: #FCEAEA; color: #B23A3A; }
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.login-card h1 { font-size: 1.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat-box { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; text-align: center; }
.stat-box .num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--orange); }
.stat-box .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); margin-top: 4px; }
