/*
Theme Name: PBA 325 WordPress Theme
Theme URI: https://pba325.org/
Author: PBA 325
Description: A clean, mobile-friendly WordPress theme for PBA 325. Includes a home page, gallery, events page, Gold/PBA Cards page, merchandise link, deficiency form, and beginner-friendly setup defaults.
Version: 1.0.0
License: Private
Text Domain: pba325
*/

:root {
  --pba-blue: #172f57;
  --pba-blue-dark: #0c1d38;
  --pba-gold: #d6a949;
  --pba-light: #f5f7fb;
  --pba-text: #1f2937;
  --pba-muted: #64748b;
  --pba-border: #d9e1ec;
  --pba-white: #ffffff;
  --pba-danger: #b91c1c;
  --pba-success: #166534;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--pba-text);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: var(--pba-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: linear-gradient(135deg, var(--pba-blue-dark), var(--pba-blue));
  color: var(--pba-white);
  border-bottom: 5px solid var(--pba-gold);
}

.top-strip {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.88rem;
}

.top-strip .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 8px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.top-strip a {
  color: #fff;
}

.header-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--pba-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 1px;
}

.site-tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.main-navigation {
  background: #ffffff;
  border-bottom: 1px solid var(--pba-border);
}

.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--pba-border);
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--pba-blue);
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: block;
  padding: 18px 15px;
  font-weight: 700;
  color: var(--pba-blue-dark);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--pba-blue);
  text-decoration: none;
  background: var(--pba-light);
}

.hero {
  background: radial-gradient(circle at top left, rgba(214, 169, 73, .18), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  padding: 52px 20px 44px;
}

.hero .wrap,
.section .wrap,
.footer-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.content-card,
.notice-card,
.form-card {
  background: #fff;
  border: 1px solid var(--pba-border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.hero-card {
  padding: clamp(24px, 5vw, 44px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--pba-gold);
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 12px;
}

.hero h1,
.page-header h1 {
  margin: 0 0 14px;
  color: var(--pba-blue-dark);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--pba-muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  border: 0;
  background: var(--pba-blue);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
}

.button.secondary {
  background: #fff;
  color: var(--pba-blue) !important;
  border: 1px solid var(--pba-border);
}

.button.gold {
  background: var(--pba-gold);
  color: #1c2431 !important;
}

.notice-card {
  padding: 26px;
  border-top: 6px solid var(--pba-gold);
}

.notice-card h2,
.content-card h2,
.form-card h2 {
  margin-top: 0;
  color: var(--pba-blue-dark);
}

.meeting-detail {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 5px solid var(--pba-gold);
  background: var(--pba-light);
}

.section {
  padding: 42px 20px;
}

.section.alt {
  background: var(--pba-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
}

.content-card h3 {
  margin: 0 0 8px;
  color: var(--pba-blue-dark);
}

.page-header {
  background: var(--pba-light);
  padding: 42px 20px;
  border-bottom: 1px solid var(--pba-border);
}

.page-header .wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.page-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 42px 20px;
}

.page-content.narrow {
  max-width: 860px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e5eaf2, #f8fafc);
  border: 1px dashed var(--pba-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--pba-muted);
  padding: 16px;
}

.wp-block-gallery,
.gallery {
  margin-top: 24px;
}

.deficiency-form label {
  display: block;
  font-weight: 800;
  margin: 16px 0 6px;
  color: var(--pba-blue-dark);
}

.deficiency-form input,
.deficiency-form textarea {
  width: 100%;
  border: 1px solid var(--pba-border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.deficiency-form textarea {
  min-height: 150px;
}

.form-note {
  color: var(--pba-muted);
  background: var(--pba-light);
  border-left: 4px solid var(--pba-gold);
  padding: 12px 14px;
  margin: 14px 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}

.alert.success {
  background: #dcfce7;
  color: var(--pba-success);
}

.alert.error {
  background: #fee2e2;
  color: var(--pba-danger);
}

.site-footer {
  background: var(--pba-blue-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 20px;
  text-align: center;
}

.site-footer a {
  color: #fff;
}

.footer-motto {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 20px auto;
  max-width: 760px;
}

.wp-caption,
.wp-caption-text,
.sticky,
.gallery-caption,
.bypostauthor,
.alignright,
.alignleft,
.aligncenter {
  max-width: 100%;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .top-strip .wrap,
  .header-main,
  .nav-wrap {
    align-items: flex-start;
  }

  .header-main,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-main {
    flex-direction: column;
  }

  .menu-toggle {
    display: inline-block;
    margin: 10px 0;
  }

  .primary-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 12px;
  }

  .primary-menu.is-open {
    display: flex;
  }

  .primary-menu a {
    padding: 12px 0;
  }

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

  .top-strip .wrap {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
