/*
Theme Name: Belmont Youth Baseball & Softball (BYBS Official Portal)
Theme URI: https://belmontyouthbaseball.com/
Author: Belmont Youth Baseball Inc.
Author URI: https://belmontyouthbaseball.com/
Description: Official Heritage & Governance Portal for Belmont Youth Baseball and Softball (BYBS), a 501(c)(3) non-profit organization in Belmont, Massachusetts (EIN: 04-3389907).
Version: 3.5.0
Template: rookie
Text Domain: belmont-bybs
*/

:root {
  --bybs-navy: #0a2240;
  --bybs-navy-dark: #061529;
  --bybs-crimson: #b31942;
  --bybs-crimson-hover: #8f1233;
  --bybs-gold: #c8963e;
  --bybs-bg: #f5f7fa;
  --bybs-card: #ffffff;
  --bybs-text: #1c2836;
  --bybs-muted: #5a6878;
  --bybs-border: #dce3ec;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bybs-bg);
  color: var(--bybs-text);
  line-height: 1.7;
}
a { color: var(--bybs-crimson); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--bybs-navy); text-decoration: underline; }

.bybs-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Top Utility Bar */
.bybs-topbar {
  background: var(--bybs-navy-dark);
  color: #cdd8e6;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bybs-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.bybs-topbar a { color: #fff; font-weight: 500; }

/* Header & Navigation */
.bybs-header {
  background: var(--bybs-navy);
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bybs-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.bybs-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none !important;
}
.bybs-brand .logos { display: flex; align-items: center; gap: 12px; }
.bybs-brand img {
  height: 60px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.bybs-brand-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; color: #fff; }
.bybs-brand-sub { font-size: 12.5px; color: #b0c2d8; font-weight: 500; margin-top: 2px; }

.bybs-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.bybs-nav a {
  color: #f0f4f9;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.bybs-nav a:hover, .bybs-nav a.active { color: #fff; border-bottom-color: var(--bybs-crimson); }

.bybs-btn {
  display: inline-block;
  background: var(--bybs-crimson);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none !important;
  font-size: 14px;
  transition: background 0.15s ease;
}
.bybs-btn:hover { background: var(--bybs-crimson-hover); }
.bybs-btn-navy { background: var(--bybs-navy); }
.bybs-btn-navy:hover { background: var(--bybs-navy-dark); }
.bybs-btn-outline {
  background: transparent;
  color: var(--bybs-navy) !important;
  border: 1.5px solid var(--bybs-navy);
}
.bybs-btn-outline:hover {
  background: var(--bybs-navy);
  color: #fff !important;
}

/* Page Banners */
.bybs-hero {
  background: linear-gradient(135deg, rgba(10,34,64,0.92), rgba(10,34,64,0.82)), url('assets/BannerMontage.jpg') center/cover no-repeat;
  color: #fff;
  padding: 68px 0;
  border-bottom: 4px solid var(--bybs-crimson);
}
.bybs-page-banner {
  background: linear-gradient(135deg, rgba(10,34,64,0.94), rgba(10,34,64,0.85)), url('assets/Glove-Background-Image.jpg') center/cover no-repeat;
  color: #fff;
  padding: 46px 0;
  border-bottom: 4px solid var(--bybs-crimson);
}
.bybs-badge-gold {
  display: inline-block;
  background: rgba(200,150,62,0.2);
  color: #f7d58b;
  border: 1px solid rgba(200,150,62,0.4);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.bybs-hero h1, .bybs-page-banner h1 { font-size: 36px; margin: 0 0 12px; font-weight: 800; line-height: 1.2; }
.bybs-hero p, .bybs-page-banner p { font-size: 17.5px; color: #dce6f2; max-width: 820px; margin: 0 0 24px; }
.bybs-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Notice Callouts */
.bybs-portal-notice {
  background: #fdfaf3;
  border-left: 4px solid var(--bybs-gold);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: 14.5px;
  color: #5c4416;
}
.bybs-portal-notice p { margin: 0; }
.bybs-portal-notice strong { color: #3d2c0b; }

/* Sections & Cards */
.bybs-section { padding: 48px 0; }
.bybs-section-title { font-size: 28px; color: var(--bybs-navy); font-weight: 800; margin: 0 0 8px; }
.bybs-section-sub { color: var(--bybs-muted); font-size: 16px; margin: 0 0 28px; }
.bybs-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.bybs-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.bybs-card {
  background: var(--bybs-card);
  border: 1px solid var(--bybs-border);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 2px 8px rgba(10,34,64,0.04);
}
.bybs-card h3 { margin-top: 0; color: var(--bybs-navy); font-size: 20px; }
.bybs-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--bybs-border);
}

.bybs-status-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.status-open { background: #e3f7ec; color: #0d6832; }
.status-reno { background: #fff3cd; color: #856404; }

/* Timeline / Heritage Box */
.bybs-heritage-box {
  background: #fff;
  border: 1px solid var(--bybs-border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
}
.bybs-heritage-box h3 { color: var(--bybs-navy); font-size: 22px; margin-top: 0; }
.bybs-timeline-stat {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--bybs-border);
  border-bottom: 1px solid var(--bybs-border);
}
.bybs-stat-item { flex: 1; min-width: 140px; }
.bybs-stat-number { font-size: 32px; font-weight: 800; color: var(--bybs-crimson); line-height: 1; }
.bybs-stat-label { font-size: 13px; color: var(--bybs-muted); font-weight: 600; text-transform: uppercase; margin-top: 4px; }

/* Documents */
.bybs-doc-list { list-style: none; padding: 0; margin: 0; }
.bybs-doc-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--bybs-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}
.bybs-doc-list li:last-child { border-bottom: none; }

/* Sponsors & Footer */
.bybs-sponsors {
  background: #fff;
  border-top: 1px solid var(--bybs-border);
  border-bottom: 1px solid var(--bybs-border);
  padding: 36px 0;
  text-align: center;
}
.bybs-sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 18px;
}
.bybs-sponsor-logos img { max-height: 56px; width: auto; }

.bybs-footer {
  background: var(--bybs-navy-dark);
  color: #b8c7d9;
  padding: 48px 0 26px;
  font-size: 14px;
}
.bybs-footer h4 { color: #fff; margin-top: 0; font-size: 16px; margin-bottom: 12px; }
.bybs-footer a { color: #e2ecf7; }
.bybs-footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #8da2ba;
}





/* Beaver Builder Grid Float & Clearfix */
.fl-col {
  float: left;
  min-height: 1px;
}
.fl-col-group::before,
.fl-col-group::after,
.fl-row::before,
.fl-row::after,
.fl-row-content::before,
.fl-row-content::after {
  content: " ";
  display: table;
}
.fl-col-group::after,
.fl-row::after,
.fl-row-content::after {
  clear: both;
}
@media (max-width: 767px) {
  .fl-col {
    float: none !important;
    width: 100% !important;
  }
}
