/* AlwaysOn Volleyball — white, smokey gray, black, royal blue (from logo) */
:root {
  --white: #ffffff;
  --smokey: #8a9199;
  --smokey-light: #e8eaed;
  --black: #1a1a1a;
  --blue: #2b6cb8;
  --blue-dark: #1e4a7a;
  --blue-muted: #3d6ea8;
  --header-height: 5.5rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
}

a:hover {
  color: var(--blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--smokey-light);
  box-shadow: 0 2px 12px rgba(30, 74, 122, 0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--black);
}

.brand:hover {
  color: var(--black);
}

.brand-logo-wrap {
  flex-shrink: 0;
  padding: 0.35rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--smokey-light), 0 4px 12px rgba(43, 108, 184, 0.15);
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Hamburger (CSS-only: checkbox + labels) */
.nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
  background: var(--smokey-light);
  border-color: var(--blue);
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

#nav-toggle:checked ~ .site-header .menu-toggle {
  background: var(--smokey-light);
  border-color: var(--blue);
}

#nav-toggle:checked ~ .site-header .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#nav-toggle:checked ~ .site-header .menu-toggle span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ .site-header .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 150;
  cursor: pointer;
}

#nav-toggle:checked ~ .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--white);
  border-left: 3px solid var(--blue);
  padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  overflow-y: auto;
}

#nav-toggle:checked ~ .site-nav {
  transform: translateX(0);
}

body:has(#nav-toggle:checked) {
  overflow: hidden;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--smokey-light);
  transition: color 0.2s, padding-left 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  padding-left: 0.5rem;
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--blue-dark);
  font-weight: 800;
}

.page-lead {
  margin: 0 0 2rem;
  color: var(--smokey);
  font-size: 1.1rem;
  max-width: 42rem;
}

/* Home */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(180deg, var(--smokey-light) 0%, var(--white) 70%);
  border-bottom: 1px solid var(--smokey-light);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--blue-dark);
}

.hero p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--smokey);
  font-size: 1.15rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue-dark);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43, 108, 184, 0.35);
}

.btn-outline {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--smokey-light);
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--smokey-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature-card .feature-img-wrap {
  width: 100%;
  line-height: 0;
}

.feature-card .feature-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card-body {
  padding: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-dark);
}

.feature-card p {
  margin: 0 0 1rem;
  color: var(--smokey);
  font-size: 0.95rem;
}

.strip {
  background: var(--smokey-light);
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 3px solid var(--blue);
}

.strip p {
  margin: 0;
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 1.1rem;
}

/* Tournament */
.tourney-header {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .tourney-header {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.tourney-flyer {
  border-radius: 12px;
  border: 2px solid var(--smokey-light);
  box-shadow: 0 8px 24px rgba(30, 74, 122, 0.12);
}

.info-card {
  background: var(--smokey-light);
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.25rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-card p,
.info-card ul {
  margin: 0;
  color: var(--black);
}

.info-card ul {
  padding-left: 1.2rem;
}

.info-card ul li + li {
  margin-top: 0.65rem;
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 500px) {
  .detail-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-item {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--smokey-light);
  border-radius: 10px;
}

.detail-item strong {
  display: block;
  color: var(--blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.location-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .location-gallery {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.location-gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.location-gallery .gallery-img-wrap {
  flex: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--smokey-light);
  background: var(--smokey-light);
}

.location-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.location-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--smokey);
}

/* Rules */
.rules-image-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--blue-dark);
  box-shadow: 0 12px 32px rgba(30, 74, 122, 0.15);
}

/* Register */
.register-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--smokey-light);
  border-radius: 12px;
  border: 2px dashed var(--blue-muted);
}

.register-box p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--smokey);
}

/* Follow */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 2rem auto 0;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  border: 2px solid var(--smokey-light);
  box-shadow: 0 8px 24px rgba(30, 74, 122, 0.08);
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.social-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(43, 108, 184, 0.18);
  color: var(--black);
}

.social-card.is-placeholder {
  border-style: dashed;
  border-color: var(--smokey);
  background: var(--smokey-light);
  opacity: 1;
}

.social-icon-wrap {
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--smokey-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.social-icon-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* TikTok file has extra margin — zoom in so the black circle fills the ring */
.social-card--tiktok .social-icon-wrap {
  background: #010101;
  border: 2px solid #010101;
}

.social-card--tiktok .social-icon-img {
  transform: scale(2.75);
}

.social-card-body {
  width: 100%;
}

.social-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--blue-dark);
}

.social-handle {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--smokey);
}

.social-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

a.social-card:hover .social-cta {
  background: var(--blue-dark);
}

.social-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--smokey);
  border-radius: 999px;
}

/* Merch */
.coming-soon {
  text-align: center;
  padding: 4rem 1.5rem;
}

.coming-soon h2 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
  color: var(--blue-dark);
}

.coming-soon p {
  margin: 0;
  color: var(--smokey);
  font-size: 1.15rem;
}

.coming-soon .badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--smokey-light);
  border-top: 2px solid var(--blue);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--smokey);
}

.site-footer strong {
  color: var(--blue-dark);
}
