/* ==========================================================================
   East Bay Youth Football & Cheer — ebyfc.com
   ========================================================================== */

:root {
  --navy: #013369;
  --navy-dark: #02214a;
  --navy-deep: #011733;
  --red: #d50a0a;
  --red-dark: #a90808;
  --gold: #ffb612;
  --ink: #14203a;
  --slate: #51607a;
  --line: #dfe4ec;
  --paper: #f5f7fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(2, 33, 74, 0.10);
  --shadow-md: 0 6px 20px rgba(2, 33, 74, 0.12);
  --shadow-lg: 0 14px 40px rgba(2, 33, 74, 0.18);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--navy);
}

.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.topbar {
  background: var(--navy-deep);
  color: #c8d6ea;
  font-size: 0.8rem;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.35rem 0;
}

.topbar a { color: #ffffff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img { height: 56px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-name span { color: var(--red); display: block; font-size: 0.72rem; letter-spacing: 0.12em; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu > li { position: relative; }

.nav-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--red);
  background: rgba(213, 10, 10, 0.06);
}

.has-dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.35rem;
  color: var(--slate);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a { padding: 0.5rem 0.75rem; font-weight: 500; }
.dropdown a:hover { background: var(--paper); color: var(--red); }

.nav-cta {
  margin-left: 0.75rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-red { background: var(--red); color: var(--white) !important; }
.btn-red:hover { background: var(--red-dark); }

.btn-navy { background: var(--navy); color: var(--white) !important; }
.btn-navy:hover { background: var(--navy-dark); }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(1, 23, 51, 0.94) 0%, rgba(1, 51, 105, 0.82) 55%, rgba(1, 51, 105, 0.55) 100%),
    url("../img/hero-team.jpg") center 30% / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--navy) 66% 100%);
}

.hero .container {
  padding: 6.5rem 0;
  max-width: 780px;
  margin-left: max(4%, calc((100% - 1160px) / 2));
}

.hero .kicker { color: var(--gold); }
.hero .kicker::before { background: var(--gold); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  margin: 0.75rem 0 1.25rem;
}

.hero h1 em { color: var(--gold); font-style: normal; }

.hero p {
  font-size: 1.1rem;
  color: #dbe6f4;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Page hero (interior pages) */

.page-hero {
  background:
    linear-gradient(100deg, rgba(1, 23, 51, 0.95), rgba(1, 51, 105, 0.85)),
    url("../img/hero-team.jpg") center 30% / cover no-repeat;
  color: var(--white);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--navy) 66% 100%);
}

.page-hero .container { padding: 3.5rem 0; }

.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 0.5rem; }
.page-hero .kicker { color: var(--gold); }
.page-hero .kicker::before { background: var(--gold); }
.page-hero p { color: #dbe6f4; max-width: 64ch; margin-top: 0.75rem; }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 0.6rem; }
.section-head p { color: var(--slate); margin-top: 0.6rem; }

/* ---------- Cards / grids ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
}

.pillar h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--slate); font-size: 0.95rem; }

.pillar .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(1, 51, 105, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Org logo grid */

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}

.org-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.org-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.org-tile img {
  height: 84px;
  width: auto;
  max-width: 84%;
  object-fit: contain;
  margin: 0 auto 0.85rem;
}

.org-tile .org-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.org-tile .org-name strong { color: var(--red); display: block; }

/* Org detail cards (organizations page) */

.org-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.org-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
}

.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.org-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
}

.org-card h3 { font-size: 1.05rem; }
.org-card h3 a { text-decoration: none; color: var(--navy); }
.org-card h3 a:hover { color: var(--red); }

.org-card .org-city {
  color: var(--slate);
  font-size: 0.85rem;
  margin: 0.15rem 0 0.6rem;
}

.org-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.org-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: rgba(1, 51, 105, 0.07);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.org-links a:hover { background: var(--navy); color: var(--white); }

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}

table.data caption {
  text-align: left;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background: var(--navy);
  padding: 0.7rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

table.data caption .division-tag {
  float: right;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: var(--red);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

table.data th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  background: var(--paper);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
}

table.data td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
}

table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(1, 51, 105, 0.035); }

table.data td.num, table.data th.num { text-align: center; }
table.data td.team { font-weight: 600; }

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover { background: rgba(1, 51, 105, 0.08); }
.tab-btn.active { background: var(--navy); color: var(--white); }

.age-heading {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

.tba-note {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--slate);
}

/* ---------- Split / feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split .photo img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin-top: 1.25rem; }

.checklist li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.2rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(100deg, var(--navy-deep), var(--navy));
  color: var(--white);
  text-align: center;
}

.cta-band .container { padding: 4rem 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: #c8d6ea; margin: 0.75rem auto 1.75rem; max-width: 56ch; }

/* ---------- Notice list (rules) ---------- */

.rule-list { list-style: none; }

.rule-list li {
  background: var(--white);
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 1.1rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* ---------- Downloads ---------- */

.download-list { display: grid; gap: 1rem; max-width: 720px; }

.download-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.download-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy); }

.download-item .file-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  flex-shrink: 0;
}

.download-item .file-badge.xlsx { background: #1d6f42; }

.download-item .file-name { font-weight: 600; color: var(--ink); }
.download-item .file-hint { font-size: 0.82rem; color: var(--slate); }

/* ---------- Forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

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

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.3rem;
}

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(1, 51, 105, 0.14);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-status { font-size: 0.9rem; font-weight: 600; }
.form-status.ok { color: #1d6f42; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9c8dd;
  margin-top: 4rem;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer a { color: #b9c8dd; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.footer-brand img { height: 62px; background: var(--white); border-radius: 10px; padding: 6px; }

.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name span { color: var(--gold); }

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero .container { padding: 4.5rem 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 4%;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a { padding: 0.8rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--paper); }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; }

  .nav-cta { margin: 0.75rem 0 0.25rem; }
  .nav-cta .btn { display: block; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand img { height: 44px; }
  .brand-name { font-size: 0.9rem; }
  .section { padding: 3rem 0; }
}
