/* ============================================================
   BROOKS PTA — HOMEPAGE STYLES
   Loaded only on the front page (is_front_page check in functions.php).
   All selectors scoped to body.home where they override main.css.
   Reference: option-c-v7.html
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --blue:        #064164;
  --blue-dark:   #032d47;
  --blue-xdark:  #021e30;
  --green:       #068D4D;
  --green-dark:  #056639;
  --green-xdark: #034d2a;
  --mint:        #5adba0;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── NAVBAR OVERRIDE (front page only) ── */
body.home .site-header {
  background: var(--blue);
  background-image: var(--noise), linear-gradient(135deg, rgba(255,255,255,.05) 0%, transparent 60%);
  background-blend-mode: overlay, normal;
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 10px rgba(0,0,0,.25);
}
body.home .site-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 55%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,219,160,.3), transparent);
}
/* Logo / site title */
body.home .site-branding .site-title,
body.home .site-branding a.site-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 17.5px;
  color: #fff;
  letter-spacing: .025em;
}
body.home .site-header .custom-logo-link img { filter: brightness(0) invert(1); }
/* Nav links */
body.home .nav-menu > li > a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px 3px;
  text-transform: none;
  letter-spacing: normal;
  position: relative;
  transition: color .15s;
}
body.home .nav-menu > li > a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: width .18s ease;
}
body.home .nav-menu > li > a:hover,
body.home .nav-menu > li.current-menu-item > a {
  color: #fff;
  text-decoration: none;
}
body.home .nav-menu > li > a:hover::after,
body.home .nav-menu > li.current-menu-item > a::after { width: 100%; }
/* "Resources" link: add CSS class "highlight" in WP Admin > Menus (Screen Options > CSS Classes) */
body.home .nav-menu > li.highlight > a { color: var(--mint); font-weight: 700; }
body.home .nav-menu > li.highlight > a::after { background: var(--mint); }
/* Hamburger bars: white on dark bg */
body.home .nav-toggle__bar { background: #fff; }

/* ── HERO ── */
.home-hero {
  position: relative;
  background-image: url('../images/brooks-hero-1920.jpg');
  background-image: image-set(
    url('../images/brooks-hero-1920.webp') type('image/webp') 1x,
    url('../images/brooks-hero-1920.jpg')  type('image/jpeg') 1x
  );
  background-size: cover;
  background-position: center 25%;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.home-hero__overlay-1 {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,65,100,.88) 0%, rgba(6,65,100,.68) 40%, rgba(6,65,100,.18) 68%, transparent 100%);
}
.home-hero__overlay-2 {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.016) 0px, rgba(255,255,255,.016) 1px, transparent 1px, transparent 9px);
}
.home-hero__overlay-3 {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,29,47,.55) 0%, transparent 40%);
}
/* Sparkle dots */
.home-hero__sparkles {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 1;
}
.spark {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: sparkFloat 6s ease-in-out infinite;
}
.spark:nth-child(1) { width:6px;  height:6px;  background:rgba(90,219,160,.6);  top:18%; left:62%; animation-delay:0s;   animation-duration:5.8s; }
.spark:nth-child(2) { width:4px;  height:4px;  background:rgba(255,255,255,.5); top:28%; left:74%; animation-delay:1.2s; animation-duration:6.4s; }
.spark:nth-child(3) { width:8px;  height:8px;  background:rgba(90,219,160,.4);  top:55%; left:80%; animation-delay:0.4s; animation-duration:7.1s; }
.spark:nth-child(4) { width:5px;  height:5px;  background:rgba(255,255,255,.45);top:42%; left:68%; animation-delay:2.1s; animation-duration:5.4s; }
.spark:nth-child(5) { width:3px;  height:3px;  background:rgba(90,219,160,.7);  top:22%; left:85%; animation-delay:3.0s; animation-duration:6.8s; }
.spark:nth-child(6) { width:7px;  height:7px;  background:rgba(255,255,255,.3); top:65%; left:72%; animation-delay:1.7s; animation-duration:6.1s; }
.spark:nth-child(7) { width:4px;  height:4px;  background:rgba(90,219,160,.5);  top:35%; left:91%; animation-delay:0.9s; animation-duration:7.5s; }
.spark:nth-child(8) { width:5px;  height:5px;  background:rgba(255,255,255,.4); top:72%; left:58%; animation-delay:2.5s; animation-duration:5.9s; }
@keyframes sparkFloat {
  0%,100% { opacity: 0; transform: translateY(0) scale(1); }
  15%     { opacity: 1; }
  50%     { opacity: .8; transform: translateY(-14px) scale(1.1); }
  85%     { opacity: .6; }
}
.home-hero__content {
  position: relative; z-index: 2;
  padding: 68px 56px;
  max-width: 530px;
}
.home-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--green), #09b862);
  color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 40px; margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(6,141,77,.5), 0 0 0 2px rgba(255,255,255,.15) inset;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.9); flex-shrink: 0;
  animation: eyebrowPop 2.8s ease-in-out infinite;
}
@keyframes eyebrowPop {
  0%,100% { transform: scale(1); opacity: .9; }
  50%     { transform: scale(1.4); opacity: 1; }
}
.home-hero__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 50px; font-weight: 900;
  color: #fff; line-height: 1.08; margin-bottom: 18px;
  text-shadow: 0 3px 24px rgba(0,0,0,.3);
  letter-spacing: -.02em;
}
.home-hero__title em { font-style: normal; color: #fff; display: inline-block; }
.home-hero__sub {
  font-size: 15px; color: rgba(255,255,255,.82);
  line-height: 1.72; margin-bottom: 34px; font-weight: 400;
}
.home-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn-green {
  background: var(--green); color: #fff;
  padding: 14px 30px; border-radius: 40px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .04em;
  font-family: 'IBM Plex Sans', sans-serif;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: 0 4px 0 var(--green-xdark), 0 8px 20px rgba(6,141,77,.4);
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative; overflow: hidden;
}
.btn-green::before {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg); transition: left .4s ease;
}
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--green-xdark), 0 12px 24px rgba(6,141,77,.4); color: #fff; text-decoration: none; }
.btn-green:hover::before { left: 130%; }
.btn-green:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-xdark); }
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  padding: 14px 30px; border-radius: 40px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  font-family: 'IBM Plex Sans', sans-serif;
  border: 2px solid rgba(255,255,255,.4); cursor: pointer; text-decoration: none; display: inline-block;
  backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s, transform .12s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.75); transform: translateY(-3px); box-shadow: 0 7px 0 rgba(0,0,0,.2); color: #fff; text-decoration: none; }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }

/* ── CTA SECTION ── */
.home-cta-section {
  background: #fff;
  border-bottom: 3px solid #e2eaef;
}

/* Row 1: Join + Volunteer — 4-column grid */
.home-cta-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 48px 56px;
  border-bottom: 1px solid #edf1f5;
  gap: 8px;
}

/* Round circle buttons */
.home-cta-round {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 16px; padding: 8px 16px 8px;
}
.home-cta-round-icon {
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-cta-round--green .home-cta-round-icon {
  background: linear-gradient(145deg, #09b862, var(--green));
  box-shadow: 0 6px 0 var(--green-xdark), 0 12px 28px rgba(6,141,77,.38);
}
.home-cta-round--blue .home-cta-round-icon {
  background: linear-gradient(145deg, #0b6a9e, var(--blue));
  box-shadow: 0 6px 0 var(--blue-xdark), 0 12px 28px rgba(6,65,100,.38);
}
.home-cta-round:hover .home-cta-round-icon { transform: translateY(-6px); }
.home-cta-round--green:hover .home-cta-round-icon {
  box-shadow: 0 12px 0 var(--green-xdark), 0 20px 36px rgba(6,141,77,.42);
}
.home-cta-round--blue:hover .home-cta-round-icon {
  box-shadow: 0 12px 0 var(--blue-xdark), 0 20px 36px rgba(6,65,100,.42);
}
.home-cta-round-icon svg { width: 54px; height: 54px; display: block; }
.home-cta-round-icon path,
.home-cta-round-icon circle,
.home-cta-round-icon ellipse,
.home-cta-round-icon rect,
.home-cta-round-icon polygon,
.home-cta-round-icon polyline { fill: rgba(255,255,255,.95) !important; stroke: none !important; }
.home-cta-round-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; text-align: center;
  color: var(--blue-dark);
}
.home-cta-round--green .home-cta-round-label { color: var(--green-dark); }

/* Description text columns */
.home-cta-pair-desc {
  padding: 0 40px 0 12px;
  font-size: 20px; color: #4a5a6a; line-height: 1.68;
}
.home-cta-pair-desc strong {
  display: block; margin-bottom: 6px;
  font-size: 22px; font-weight: 800; color: var(--blue);
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Row 2: 3 round pill buttons */
.home-cta-secondary {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  padding: 28px 56px;
  background: #f0f4f7;
}
.home-cta-pill {
  flex: 1; max-width: 300px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 21px 24px; border-radius: 40px;
  text-decoration: none; font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff;
  transition: transform .13s ease, box-shadow .13s ease, filter .15s;
}
.home-cta-pill--blue {
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-xdark), 0 8px 18px rgba(6,65,100,.28);
}
.home-cta-pill--green {
  background: var(--green);
  box-shadow: 0 4px 0 var(--green-xdark), 0 8px 18px rgba(6,141,77,.28);
}
.home-cta-pill:hover {
  transform: translateY(-4px); color: #fff; text-decoration: none;
}
.home-cta-pill--blue:hover  { box-shadow: 0 8px 0 var(--blue-xdark),  0 14px 24px rgba(6,65,100,.35); }
.home-cta-pill--green:hover { box-shadow: 0 8px 0 var(--green-xdark), 0 14px 24px rgba(6,141,77,.35); }
.home-cta-pill:active { transform: translateY(2px); }
.home-cta-pill-icon { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.home-cta-pill-icon svg { width: 100%; height: 100%; display: block; }
.home-cta-pill-icon path,
.home-cta-pill-icon circle,
.home-cta-pill-icon ellipse,
.home-cta-pill-icon rect,
.home-cta-pill-icon polygon,
.home-cta-pill-icon polyline { fill: rgba(255,255,255,.9) !important; stroke: none !important; }

/* ── SHARED COL LABEL ── */
.home-col-label {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.home-col-label::before {
  content: ''; display: block; width: 18px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.home-col-label--light { color: rgba(255,255,255,.42); }
.home-col-label--light::before { background: rgba(255,255,255,.25); }

/* ── EVENTS SECTION (full-width, dark blue) ── */
.home-events-section {
  background: var(--blue);
  background-image: var(--noise),
    radial-gradient(ellipse at 70% -10%, rgba(6,141,77,.12) 0%, transparent 60%),
    linear-gradient(170deg, rgba(255,255,255,.03) 0%, transparent 55%);
  background-blend-mode: overlay, normal, normal;
  padding: 44px 56px 36px;
}

.home-events-top {
  display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 28px;
}

.home-auto-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--mint); font-weight: 700;
  background: rgba(90,219,160,.08);
  border: 1px solid rgba(90,219,160,.2);
  padding: 5px 12px; border-radius: 20px; width: fit-content;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); flex-shrink: 0;
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(90,219,160,.5); }
  60%      { box-shadow: 0 0 0 5px rgba(90,219,160,0); }
}

/* 4-column event card grid */
.home-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.home-event-item {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 22px 32px;
  min-height: 180px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  transition: background .15s, transform .15s;
}
.home-event-item:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.home-event-cal-block {
  flex-shrink: 0; width: 76px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); text-align: center; line-height: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
  align-self: center;
}
.home-event-item:hover .home-event-cal-block { transform: scale(1.06); box-shadow: 0 5px 14px rgba(0,0,0,.35); }
.home-event-cal-month {
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 0 4px;
}
.home-event-cal-day {
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 32px; font-weight: 900; padding: 7px 0 8px;
}
.home-event-name {
  font-size: 19px; font-weight: 800; color: #fff;
  line-height: 1.28; margin-bottom: 5px; transition: color .15s;
  font-family: 'IBM Plex Sans', sans-serif; text-align: center;
}
.home-event-item:hover .home-event-name { color: var(--mint); }
.home-event-meta { font-size: 11.5px; color: rgba(255,255,255,.48); text-align: center; }
.home-event-fallback {
  color: rgba(255,255,255,.6); font-size: 13px; padding: 20px 0;
  grid-column: 1 / -1;
}
.home-event-fallback a { color: var(--mint); }

.home-events-cta {
  padding-top: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.home-full-cal-btn {
  display: inline-block; text-align: center;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.78);
  font-size: 12px; font-weight: 800; padding: 13px 40px; border-radius: 40px;
  text-decoration: none; letter-spacing: .05em;
  border: 1.5px solid rgba(255,255,255,.14);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .12s ease, color .15s, border-color .15s;
  font-family: 'IBM Plex Sans', sans-serif;
}
.home-full-cal-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.07); transform: translateX(-100%);
  transition: transform .26s ease;
}
.home-full-cal-btn:hover {
  color: #fff; border-color: rgba(255,255,255,.28);
  transform: translateY(-4px);
  box-shadow: 0 8px 0 rgba(0,0,0,.25), 0 12px 20px rgba(0,0,0,.2);
  text-decoration: none;
}
.home-full-cal-btn:hover::before { transform: translateX(0); }
.home-full-cal-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.home-gcal-note {
  font-size: 9px; color: rgba(255,255,255,.24); letter-spacing: .03em;
}


/* ── MOBILE ── */
@media (max-width: 767px) {

  /* Override homepage-specific nav rule (body.home specificity wins on desktop) */
  body.home .nav-menu > li > a {
    font-size: 2.2rem;
    font-weight: 700;
    padding: 1.1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  /* CTA primary: 4-col → 2-col (button | description) per row */
  .home-cta-primary {
    grid-template-columns: auto 1fr;
    padding: 32px 20px;
    gap: 24px 16px;
  }

  .home-cta-round-icon {
    width: 80px;
    height: 80px;
  }

  .home-cta-round-icon svg {
    width: 40px;
    height: 40px;
  }

  .home-cta-pair-desc {
    padding: 0 0 0 8px;
    font-size: 15px;
    align-self: center;
  }

  .home-cta-pair-desc strong {
    font-size: 16px;
  }

  /* CTA secondary: pills stacked, each full-width */
  .home-cta-secondary {
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }

  .home-cta-pill {
    max-width: 100%;
    width: 100%;
  }

  /* Events: single column, one event per row */
  .home-events-section {
    padding: 32px 20px 28px;
  }

  .home-events-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-event-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
    min-height: unset;
  }

  .home-event-cal-block {
    flex-shrink: 0;
  }

  .home-event-text {
    flex: 1;
    min-width: 0;
  }

  /* Footer */
  .home-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 18px 20px;
  }
}

/* ── HOMEPAGE FOOTER ── */
.home-footer {
  background: var(--blue-xdark);
  background-image: var(--noise);
  background-blend-mode: overlay;
  color: rgba(255,255,255,.42);
  padding: 20px 48px; font-size: 11.5px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.home-footer strong { color: rgba(255,255,255,.8); }

/* ── BEEBOX SECTION ── */
.home-beebox-section {
  background: #fff;
  border-bottom: 3px solid #e2eaef;
  padding: 40px 24px;
  text-align: center;
}
.home-beebox-inner {
  max-width: 700px;
  margin: 0 auto;
}
.home-beebox-img-link { display: block; }
.home-beebox-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  transition: opacity .15s;
}
.home-beebox-img-link:hover .home-beebox-img { opacity: .88; }
.home-beebox-msg {
  margin: 22px auto 24px;
  max-width: 520px;
  text-align: center;
}
.home-beebox-msg p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--blue);
  font-weight: 600;
  margin: 0;
}
.home-beebox-btn { font-size: 1rem; padding: 13px 36px; }

@media (max-width: 600px) {
  .home-beebox-section { padding: 28px 16px; }
  .home-beebox-msg { font-size: 1.05rem; }
}

