/* ==========================================================================
   CB WEST ICE HOCKEY - GLOBAL STYLESHEET
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-dark: #111111;
  --bg-card: #18181b;
  --gold: #FFC107;
  --gold-hover: #e0a800;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border-color: #27272a;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-nav: 'Oswald', 'Arial Narrow', sans-serif;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-black);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
main { flex: 1; width: 100%; }
img { max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 4rem 1rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 3rem 1rem; }
.section-tight { padding-top: 2rem; padding-bottom: 2rem; }

/* Headings */
h1, .title-style {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1rem;
}
h1 span, .title-style span { color: var(--gold); }

h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
h2.title-style { border-bottom: none; margin-top: 0; }
h3 { color: var(--text-main); }

p { color: var(--text-muted); }
.prose p { margin-bottom: 1rem; }
.prose strong { color: var(--text-main); }

.text-link { color: var(--gold); font-weight: 600; }
.text-link:hover { color: var(--gold-hover); }
.text-center { text-align: center; }
.cta-row { text-align: center; margin-top: 2rem; }

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-group { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; }

.logo-text, .logo-sub {
  display: block;
  font-family: var(--font-nav);
  text-transform: uppercase;
}
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-main); line-height: 1.2; }
.logo-sub { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; color: var(--gold); }

nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-family: var(--font-nav);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
nav a {
  color: var(--text-main);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav a:hover { color: var(--gold); }
nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Gold Team App Button */
.btn-app-gold {
  background-color: var(--gold);
  color: #000000;
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-app-gold:hover { background-color: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); }
.btn-app-gold svg { display: inline-block; vertical-align: middle; }

.mobile-btn { display: none; background: none; border: none; color: #fff; font-size: 1.75rem; cursor: pointer; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-nav);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-main); }
.mobile-menu a.active, .mobile-menu a.gold { color: var(--gold); }

/* Hero */
.hero {
  background: linear-gradient(to right, #000000, #18181b);
  border-bottom: 1px solid var(--border-color);
}
.hero .container { padding: 4rem 1rem; }
.hero p.lead { font-size: 1.125rem; margin-bottom: 1.5rem; }
.hero-img-full {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: block;
}

.divider { width: 60px; height: 4px; background: var(--gold); margin-bottom: 2rem; }

.badge {
  display: inline-block;
  background-color: rgba(255,193,7,0.1);
  color: var(--gold);
  border: 1px solid rgba(255,193,7,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.quote-box {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
  color: #e4e4e7;
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
}
a.card { transition: border-color 0.2s ease, transform 0.2s ease; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 0.75rem; display: block; }

.section-alt {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Photo carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 calc((100% - 1rem) / 2); scroll-snap-align: start; }
.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #000;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.carousel-btn:hover { background: var(--gold-hover); }
.carousel-btn.prev { left: -1rem; }
.carousel-btn.next { right: -1rem; }

/* Avatars (staff + roster) */
.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  background: #27272a;
  border: 2px solid var(--border-color);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* "Coming soon" placeholder: inverted so the white disc suits the dark theme */
.avatar.placeholder img { filter: invert(1); }

/* Staff */
.staff-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.person { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.25rem 1rem; border-radius: 8px; text-align: center; }
.person h3 { font-size: 1rem; }
.person p { font-size: 0.85rem; color: var(--gold); }

.feature-list { padding-left: 1.25rem; margin-bottom: 1.5rem; }
.feature-list li { margin-bottom: 0.75rem; }
.feature-list strong { color: #fff; }

.photo-feature { margin: 1.5rem 0; }
.photo-feature img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); display: block; }

/* Sponsors strip (home) */
.sponsor-strip {
  background-color: #000000;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 1rem;
  text-align: center;
}
.sponsor-strip .inner { max-width: 1280px; margin: 0 auto; }
.sponsor-strip img { max-width: 320px; height: auto; display: block; margin: 0 auto 1.5rem; }
.sponsor-strip p { margin-bottom: 2.5rem; }

/* Sponsor slider */
.sponsor-carousel { max-width: 1180px; margin: 0 auto 2.5rem; padding: 0 2.75rem; position: relative; }
.sponsor-carousel .carousel-btn.prev { left: 0; }
.sponsor-carousel .carousel-btn.next { right: 0; }
.sponsor-carousel .carousel-track { justify-content: safe center; }
.sponsor-slide {
  flex: 0 0 min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.sponsor-strip .sponsor-logo {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-strip .sponsor-logo img {
  width: auto;
  max-width: 100%;
  max-height: 110px;
  aspect-ratio: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  margin: 0;
  display: block;
}
.sponsor-strip .sponsor-slide p { margin-bottom: 0; }
.tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  color: #000;
}
.tier-badge.gold   { background: var(--gold); }
.tier-badge.silver { background: #c0c0c0; }
.tier-badge.bronze { background: #cd7f32; }

/* Roster tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.5rem 0 2rem; }
.tab-btn {
  flex: 1 1 150px;
  max-width: 220px;
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab-btn:hover { background: rgba(255, 193, 7, 0.12); }
.tab-btn[aria-selected="true"] { background: var(--gold); color: #000; }

.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.player-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.5rem 1rem; border-radius: 8px; text-align: center; }
.player-card .avatar { width: 116px; height: 116px; }
.player-name { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.player-number { color: var(--gold); font-size: 1.1rem; font-weight: 800; margin: 0.15rem 0; }
.player-details { font-size: 0.85rem; color: var(--text-muted); }
.swing-tag {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Sponsorship pricing */
.banner {
  background: var(--gold);
  color: #000;
  padding: 1.5rem;
  text-align: center;
  font-weight: 800;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1.25rem;
}
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tier-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.tier-card.featured { border-color: var(--gold); }
.tier-header { background: #27272a; padding: 1rem; text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--text-main); }
.tier-header.gold { background: var(--gold); color: #000; }
.tier-price { font-size: 2rem; font-weight: 900; color: var(--gold); padding: 1rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.tier-card.featured .tier-price { color: #fff; }
.tier-body { padding: 1.5rem; flex: 1; }
.tier-body ul, .custom-tier ul { list-style: none; }
.tier-body li, .custom-tier li { margin-bottom: 0.75rem; font-size: 0.9rem; color: #e4e4e7; }
.tier-body li::before, .custom-tier li::before { content: "✓ "; color: var(--gold); font-weight: bold; }

.custom-tier {
  display: grid;
  grid-template-columns: 170px 1fr;
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
}
.custom-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #000;
  font-family: var(--font-nav);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  padding: 1rem;
}
.custom-tier ul { columns: 2; column-gap: 2rem; padding: 1.5rem; }
.custom-tier li { break-inside: avoid; }

/* Team & action photos */
.section-link { text-align: center; margin-top: 1.25rem; }
.team-photo { margin: 0 auto 2rem; max-width: 900px; }
.team-photo img,
.team-photos img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); display: block; }
.team-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.team-photos figure { margin: 0; }
.team-photos figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-nav);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
}
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: block;
}

/* Google Photos album link */
.album-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.album-card .title-style { font-size: 1.5rem; margin-bottom: 0.5rem; }
.gallery-title { margin-top: 0; }
@media (max-width: 768px) {
  .album-card { flex-direction: column; align-items: flex-start; }
}

/* Photo gallery + lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }

dialog.lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
dialog.lightbox img { display: block; max-width: 95vw; max-height: 88vh; border-radius: 6px; }
.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: var(--gold);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

/* Documents */
.doc-list { display: flex; flex-direction: column; gap: 1rem; }
.doc-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-main);
}
.doc-item:hover { border-color: var(--gold); color: var(--gold); }

/* Photo / video gallery */
.video-box { max-width: 360px; margin: 0 auto; background: #000; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.video-box video { width: 100%; display: block; }

/* Contact form */
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.contact-form label { display: block; margin-bottom: 0.35rem; color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.contact-form .btn-app-gold { align-self: center; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { text-align: center; min-height: 1.5em; color: var(--gold); }

/* Footer */
footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-grid > p { text-align: left; font-family: var(--font-nav); letter-spacing: 0.05em; text-transform: uppercase; }
.footer-logo { height: 64px; width: auto; display: block; }
.social { display: flex; gap: 1.1rem; justify-content: flex-end; }
.social a { color: var(--text-main); display: inline-flex; transition: color 0.2s ease; }
.social a:hover { color: var(--gold); }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.credit { text-align: center; }
footer a.credit-link { color: var(--text-main); font-weight: 600; }
footer a.credit-link:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 1280px) {
  nav, .header-container > .btn-app-gold { display: none; }
  .mobile-btn { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero .container { padding: 2.5rem 1rem; }
  .hero p.lead { font-size: 1rem; }
  .carousel-slide { flex-basis: 100%; }
  .carousel-btn.prev { left: 0.5rem; }
  .carousel-btn.next { right: 0.5rem; }
  .custom-tier { grid-template-columns: 1fr; }
  .custom-tier ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-grid > p { text-align: center; }
  .social { justify-content: center; }
}

/* Embedded Google Photos album (Public Album widget) */
.album-embed {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 120px;
}

/* Contact form states */
.form-status.error { color: #f87171; }
.contact-form .btn-app-gold:disabled { opacity: 0.6; cursor: wait; transform: none; }
