/* ============================================================
   Sonoma County Floorball Club — site styles
   Palette from the circular club logo (bear emblem, est. 2023)
   ============================================================ */

:root {
  --maroon: #7b2d3b;
  --maroon-dark: #5c212c;
  --maroon-deep: #3d1820;
  --gold: #d4a72c;
  --gold-hover: #e8bc45;
  --gold-pressed: #b89020;
  --cream: #f5efe0;
  --cream-dark: #ebe3d0;
  --dark: #1a1a1a;
  --muted: #5c5348;
  --white: #ffffff;
  --header-h: 5.25rem;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(26, 26, 26, 0.12);
  --max: 1120px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--cream);
}

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

a {
  color: var(--maroon);
}

a:hover {
  color: var(--gold-pressed);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--dark);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  z-index: 200;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--maroon {
  background: var(--maroon);
  color: var(--cream);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-kicker--maroon {
  color: var(--maroon);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* Athletic jersey stripe (gold over cream, like the logo flanks) */
.stripe-bar {
  height: 10px;
  background: linear-gradient(
    to bottom,
    var(--gold) 0 42%,
    var(--maroon) 42% 52%,
    var(--cream) 52% 100%
  );
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--dark);
  border-color: var(--gold-hover);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--maroon);
}

.btn-maroon {
  background: var(--maroon);
  color: var(--cream);
  border-color: var(--maroon);
}

.btn-maroon:hover {
  background: var(--maroon-dark);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header / navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--maroon);
  color: var(--cream);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.nav {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--gold);
}

.nav-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--maroon-dark);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-brand-top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-brand-script {
  font-family: var(--font-script);
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--gold);
  text-transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--cream);
  margin: 6px 0;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 2px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 1.15rem;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 167, 44, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.25), transparent 45%),
    var(--maroon);
  color: var(--cream);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 18px,
    rgba(245, 239, 224, 0.04) 18px,
    rgba(245, 239, 224, 0.04) 19px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0;
  display: block;
  margin-top: 0.15rem;
  text-transform: none;
}

.hero-tagline {
  font-size: 1.2rem;
  max-width: 34rem;
  color: var(--cream);
  margin: 1.1rem 0 1.6rem;
}

.hero-badge {
  justify-self: center;
}

.hero-badge img {
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid rgba(123, 45, 59, 0.12);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--maroon);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.video-card {
  background: var(--maroon-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--cream);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid--fill {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--maroon-dark);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.55));
  pointer-events: none;
}

/* ---------- Schedule ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.schedule-table th,
.schedule-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
}

.schedule-table thead {
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.schedule-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.schedule-table tbody tr:hover {
  background: #f3e4b8;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.badge-adult {
  background: var(--maroon);
  color: var(--cream);
}

.badge-kids {
  background: var(--gold);
  color: var(--dark);
}

.badge-tourney {
  background: var(--dark);
  color: var(--gold);
}

.schedule-cards {
  display: none;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
}

.event-card + .event-card {
  margin-top: 0.85rem;
}

.event-card h3 {
  margin-bottom: 0.35rem;
}

.event-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Inner pages ---------- */
.page-hero {
  background:
    linear-gradient(120deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--cream);
  padding: 3.2rem 0 2.8rem;
}

.page-hero .hero-script {
  font-size: 2.4rem;
  margin-top: 0.2rem;
}

.page-hero p {
  max-width: 36rem;
  margin-top: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.info-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.info-card li + li {
  margin-top: 0.4rem;
}

.callout {
  background: var(--maroon);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.callout h3 {
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* ---------- Login ---------- */
.auth-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-tab {
  border: 0;
  background: var(--cream-dark);
  padding: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--muted);
}

.auth-tab.is-active {
  background: var(--white);
  color: var(--maroon);
}

.auth-form {
  display: none;
  padding: 1.6rem 1.5rem 1.8rem;
}

.auth-form.is-active {
  display: block;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d5ccbb;
  border-radius: 8px;
  font: inherit;
  background: var(--cream);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #eef6e8;
  border: 1px solid #b7d7a8;
  color: #2d4a22;
}

.form-message.is-visible {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2.4rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.footer-brand h2 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.footer-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
}

.site-footer h3 {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 239, 224, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.social-links a:hover {
  border-color: var(--gold);
  background: rgba(212, 167, 44, 0.12);
}

.footer-copy {
  border-top: 1px solid rgba(245, 239, 224, 0.12);
  padding: 1rem 0 1.2rem;
  font-size: 0.88rem;
  color: #b7b0a4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.88);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 85vh;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .split,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 4rem;
    text-align: center;
  }

  .hero-tagline {
    margin-inline: auto;
  }

  .btn-row {
    justify-content: center;
  }

  .hero-badge {
    order: -1;
  }

  .video-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    z-index: 120;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--maroon-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5.5rem 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav-panel.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(245, 239, 224, 0.12);
  }

  .nav-cta {
    width: 100%;
  }

  .table-wrap {
    display: none;
  }

  .schedule-cards {
    display: block;
  }
}

@media (max-width: 560px) {
  .video-grid,
  .gallery-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .nav-brand-text {
    display: none;
  }
}
