/* ==========================================================================
   PBA Ottawa Titans — Site Stylesheet
   Colors sampled from official logo.
   ========================================================================== */

:root {
  --maroon: #4a2010;
  --maroon-dark: #2e1409;
  --orange: #ef6325;
  --orange-dark: #c94f19;
  --gold: #ec8818;
  --cream: #fdf9f5;
  --gray-light: #f2ede8;
  --gray-mid: #8a7d74;
  --text-dark: #241811;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(36, 24, 17, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--maroon);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.bg-light { background: var(--gray-light); }
.bg-maroon { background: var(--maroon); color: var(--white); }
.bg-maroon h1, .bg-maroon h2, .bg-maroon h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-outline-dark:hover { background: rgba(74,32,16,0.08); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--maroon);
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-name span { display: block; font-size: 0.65rem; color: var(--orange-dark); letter-spacing: 0.08em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange-dark); background: var(--gray-light); }
.main-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--maroon);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--gray-light); }
  .main-nav .btn { margin: 12px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--white);
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(239,99,37,0.35), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 10px auto 0; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.card h3 { margin-bottom: 10px; }
.card ul { margin: 0; padding-left: 20px; }
.card ul li { margin-bottom: 6px; }

.pillar {
  text-align: center;
  padding: 20px;
}
.pillar .icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background: repeating-linear-gradient(135deg, var(--gray-light), var(--gray-light) 10px, #e6ded5 10px, #e6ded5 20px);
  border: 2px dashed var(--gray-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  min-height: 220px;
}
.img-placeholder.tall { min-height: 340px; }
.img-placeholder.short { min-height: 140px; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.quick-facts {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.quick-facts dt { font-weight: 700; color: var(--maroon); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.05em; }
.quick-facts dd { margin: 0 0 14px; }

/* ---------- Feature banner ---------- */
.feature-banner {
  background: linear-gradient(120deg, var(--orange) 0%, var(--gold) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
}
.feature-banner h2, .feature-banner h3 { color: var(--white); }
@media (max-width: 900px) { .feature-banner { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
form.site-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-section { margin-bottom: 28px; }
.form-section h3 {
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--maroon);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field .hint { font-size: 0.8rem; color: var(--gray-mid); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid #ddd3ca;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.checkbox-field input { margin-top: 4px; }
.checkbox-field label { font-weight: 500; font-size: 0.92rem; }

.form-note {
  background: var(--gray-light);
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-light); padding: 18px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 46px; }
.footer-brand span { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--white); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.confirmation-box {
  display: none;
  background: #eef7ee;
  border: 1.5px solid #a9d3a9;
  color: #204d20;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.confirmation-box.visible { display: block; }

.waiver-box {
  background: var(--cream);
  border: 1.5px solid #ddd3ca;
  border-radius: 8px;
  padding: 20px 22px;
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.waiver-box p { margin-bottom: 12px; }
.waiver-box p:last-child { margin-bottom: 0; }
.announcement-card { border-top-color: var(--gold); }
.announcement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.announcement-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}
.announcement-list li:last-child { border-bottom: none; }
.announcement-date {
  display: inline-block;
  font-weight: 700;
  color: var(--maroon);
  margin-right: 8px;
  white-space: nowrap;
}

.waiver-box strong.waiver-title {
  display: block;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--maroon);
  margin-bottom: 14px;
  font-size: 1rem;
}

/* ---------- Schedule page ---------- */
.badge-practice { background: var(--maroon); }
.badge-game { background: var(--orange); }
.badge-event { background: var(--gold); }

.schedule-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--gray-light);
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-btn:hover { border-color: var(--orange); }
.filter-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}

.schedule-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.92rem;
  vertical-align: top;
}
.schedule-table th {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--maroon);
  background: var(--gray-light);
  white-space: nowrap;
}
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table tbody tr.is-hidden { display: none; }
.schedule-empty {
  text-align: center;
  padding: 24px 18px;
  color: var(--gray-mid);
  margin: 0;
}
