/*
Theme Name: Triple Play Sports
Theme URI: https://tripleplaysportserie.com
Author: Triple Play Sports
Description: Custom WordPress theme for Triple Play Sports – Erie, PA. Indoor golf simulators, court rentals, training, and events.
Version: 2.5.2
Tags: sports, custom, bootstrap
Text Domain: tripleplaysports
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Brand Tokens)
   ============================================================ */
:root {
  /* Brand colors */
  --navy:   #0b1b3b;
  --green:  #79c000;
  --orange: #f68b1e;
  --white:  #ffffff;
  --black:  #000000;
  --gray-dark:   #1a1a1a;
  --gray-mid:    #444444;
  --gray-light:  #f5f5f5;

  /* Overlay / glass */
  --overlay:       rgba(0, 0, 0, .55);
  --panel-bg:      rgba(11, 27, 59, .70);
  --panel-border:  rgba(255, 255, 255, .12);

  /* Typography */
  --font-body:    'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;

  /* Transitions */
  --transition-fast:   .08s ease;
  --transition-base:   .2s ease;
  --transition-medium: .3s ease;
}


/* ============================================================
   BASE RESET & GLOBAL STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--green);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0;
}

p {
  margin-top: 0;
}

ul, ol {
  padding-left: 1.25rem;
}


/* ============================================================
   GLOBAL UTILITY CLASSES
   ============================================================ */

/* Text color helpers */
.text-navy   { color: var(--navy)   !important; }
.text-green  { color: var(--green)  !important; }
.text-orange { color: var(--orange) !important; }
.text-white  { color: var(--white)  !important; }

/* Background helpers */
.bg-navy   { background-color: var(--navy)   !important; }
.bg-green  { background-color: var(--green)  !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-dark   { background-color: var(--gray-dark) !important; }
.bg-light  { background-color: var(--gray-light) !important; color: var(--navy) !important; }

/* Section padding */
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 48px 0;
}


/* ============================================================
   BUTTONS — Bootstrap `.btn` + brand tokens
   (Bootstrap CSS loads first; theme enqueues after in functions.php.)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .3px;
  border-radius: var(--radius-md);
  transition:
    transform var(--transition-fast),
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
}

.btn:active {
  transform: scale(.98);
}

/* Primary CTA — lime green (was .btn-tps-primary) */
.btn-primary {
  --bs-btn-color: #06110a;
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: rgba(0, 0, 0, .15);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--orange);
  --bs-btn-hover-border-color: rgba(0, 0, 0, .12);
  --bs-btn-focus-shadow-rgb: 121, 192, 0;
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: #e07c10;
  --bs-btn-active-border-color: rgba(0, 0, 0, .12);
  --bs-btn-disabled-color: rgba(6, 17, 10, .45);
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: rgba(0, 0, 0, .1);
}

.btn-primary:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(121, 192, 0, .35);
}

/* Ghost / secondary on dark backgrounds (was .btn-tps-secondary) */
.btn-outline-light {
  --bs-btn-color: rgba(255, 255, 255, .95);
  --bs-btn-border-color: rgba(255, 255, 255, .35);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: rgba(255, 255, 255, .12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .45);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: rgba(255, 255, 255, .18);
  --bs-btn-active-border-color: rgba(255, 255, 255, .5);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Icon nudge on hover */
.btn i,
.btn svg {
  transition: transform .15s ease;
}

.btn:hover i,
.btn:hover svg {
  transform: translateX(4px);
}


/* ============================================================
   TOP ANNOUNCEMENT BANNER
   (controlled via ACF; hidden if no content)
   ============================================================ */
#tps-banner {
  background: var(--green);
  color: #06110a;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  z-index: 1050;
}

#tps-banner a {
  color: #06110a;
  text-decoration: underline;
}

#tps-banner .banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #06110a;
  line-height: 1;
  padding: 4px;
  opacity: .75;
}

#tps-banner .banner-close:hover {
  opacity: 1;
}


/* ============================================================
   TOP UTILITY BAR
   Thin secondary bar above the sticky main navbar.
   Scrolls away naturally; only the main navbar stays sticky.
   ============================================================ */
.tps-topbar {
  background: #060f21;
  border-bottom: 1px solid rgba(121, 192, 0, .18);
  padding: 7px 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.tps-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tps-topbar__left,
.tps-topbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tps-topbar a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 3px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}

.tps-topbar a:hover {
  color: var(--green);
  background: rgba(121, 192, 0, .08);
}

/* Vertical pipe separator */
.tps-topbar__sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .15);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Hide right side (phone/location) on small screens to avoid crowding */
@media (max-width: 768px) {
  .tps-topbar__right {
    display: none;
  }
}

@media (max-width: 480px) {
  .tps-topbar {
    padding: 5px 0;
  }
  .tps-topbar__left a span {
    display: none; /* icon only on very small screens */
  }
}


/* ============================================================
   SITE HEADER / NAVBAR
   ============================================================ */
#tps-header {
  z-index: 1040; /* Bootstrap sticky-top is 1020; bump up to stay above dropdowns/modals */
  background: var(--navy);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

/* Logo — covers both fallback <img> and WP custom-logo output.
   !important overrides the width/height HTML attributes WordPress
   hard-codes onto the custom-logo <img> (e.g. width="512" height="512"). */
.tps-logo img,
.tps-logo .custom-logo,
.tps-logo .custom-logo-link img,
#tps-header img.custom-logo {
  height: 80px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: 5px;
  transition: height 0.3s ease;
}

.tps-logo:hover {
  opacity: .9;
}

/* Bootstrap navbar overrides */
#tps-header .navbar {
  padding-top: 10px;
  padding-bottom: 10px;
  transition: padding 0.3s ease;
}

#tps-header .navbar-brand {
  padding: 0;
}

/* Nav links */
#tps-header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .88) !important;
  font-weight: 700;
  font-size: .775rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 10px !important;
  white-space: nowrap;
  transition: color var(--transition-base);
  position: relative;
}

#tps-header .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left center;
  border-radius: 1px;
}

#tps-header .navbar-nav .nav-link:hover,
#tps-header .navbar-nav .nav-link:focus,
#tps-header .navbar-nav .nav-item.current-menu-item > .nav-link,
#tps-header .navbar-nav .nav-item.current-menu-parent > .nav-link {
  color: var(--white) !important;
}

#tps-header .navbar-nav .nav-link:hover::after,
#tps-header .navbar-nav .nav-item.current-menu-item > .nav-link::after {
  transform: scaleX(1);
}

/* Slight logo shrink + tighter padding once user scrolls down */
#tps-header.tps-header--scrolled .navbar {
  padding-top: 6px;
  padding-bottom: 6px;
}
#tps-header.tps-header--scrolled .tps-logo img,
#tps-header.tps-header--scrolled .tps-logo .custom-logo,
#tps-header.tps-header--scrolled .tps-logo .custom-logo-link img,
#tps-header.tps-header--scrolled img.custom-logo {
  height: 44px !important;
}

/* Dropdown */
#tps-header .dropdown-menu {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  margin-top: 2px;
}

#tps-header .dropdown-item {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 18px;
  transition: background var(--transition-base), color var(--transition-base);
}

#tps-header .dropdown-item:hover,
#tps-header .dropdown-item:focus {
  background: rgba(121, 192, 0, .15);
  color: var(--green);
}

#tps-header .dropdown-divider {
  border-color: rgba(255, 255, 255, .1);
}

/* ── Dropdown toggles: kill Bootstrap's built-in ::after caret.
   Nav uses a <span.tps-nav-caret> (border chevron in CSS) so the
   ::after slot stays free for our green underline animation.   ── */
#tps-header .dropdown-toggle::after {
  display: none !important;
}

/* Dropdown caret: drawn with borders + currentColor so it always shows
   (Font Awesome <i> inside .nav-link often fails to paint — kit subset, FOUC, etc.). */
#tps-header .nav-link .tps-nav-caret {
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 0.35em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
  vertical-align: middle;
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

#tps-header .nav-item.dropdown.show > .nav-link .tps-nav-caret {
  transform: translateY(0.05em) rotate(225deg);
}

/* CTA buttons in nav */
.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta-wrap .btn {
  padding: 9px 18px;
  font-size: .825rem;
  white-space: nowrap;
}

/* Hamburger icon color */
#tps-header .navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
}

#tps-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.88)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile collapsed nav */
@media (max-width: 991.98px) {
  #tps-header .navbar-collapse {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 12px 0;
    margin-top: 8px;
  }

  #tps-header .navbar-nav .nav-link::after {
    display: none;
  }

  #tps-header .dropdown-menu {
    background: rgba(255, 255, 255, .05);
    border: none;
    box-shadow: none;
    padding: 0 0 8px 16px;
  }

  .nav-cta-wrap {
    padding: 12px 0 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-cta-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   SITE FOOTER
   ============================================================ */
#tps-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  border-top: 3px solid var(--green);
  padding: 56px 0 0;
  font-size: .9rem;
}

#tps-footer h5 {
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

#tps-footer p,
#tps-footer address {
  font-style: normal;
  line-height: 1.75;
  margin-bottom: 0;
}

#tps-footer a {
  color: rgba(255, 255, 255, .75);
  transition: color var(--transition-base);
}

#tps-footer a:hover {
  color: var(--green);
}

/* Footer nav list */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, .75);
}

.footer-nav ul li a:hover {
  color: var(--green);
}

/* Hours table */
.footer-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}

.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .875rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 3px 0;
}

/* Footer CTA bar */
.footer-cta-bar {
  background: rgba(121, 192, 0, .1);
  border-top: 1px solid rgba(121, 192, 0, .2);
  padding: 28px 0;
}

.footer-cta-bar .btn {
  min-width: 180px;
}

/* Copyright strip */
.footer-bottom {
  background: rgba(0, 0, 0, .35);
  padding: 16px 0;
  margin-top: 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a:hover {
  color: var(--green);
}

/*
 * App store badges: wide Play PNG + global `img { max-width:100%; height:auto }` +
 * flex `min-width:auto` uses the image’s intrinsic width (~646px), so the badge
 * stretched to the column. Pin each badge inside a fixed “artboard” <a>.
 */
.tps-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 1.25rem;
}

/* 120×48: Play PNG is ~2.58:1; at 40px height it only drew ~103px wide. Letting
   the box be 48px tall lets `contain` hit the 120px width first (~46px tall). */
.tps-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  width: 120px;
  height: 48px;
  line-height: 0;
  box-sizing: border-box;
}

.tps-store-badge-link img {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.tps-store-badges--landing {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}


/* ============================================================
   GLASS / PANEL COMPONENT
   (used by landing page and reusable across templates)
   ============================================================ */
.tps-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subheading {
  font-size: clamp(15px, 1.5vw, 18px);
  opacity: .85;
  margin-bottom: 40px;
  max-width: 640px;
}

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   PAGE HERO
   Full-bleed hero for all interior pages.
   Background = featured image if set, else brand gradient.
   ============================================================ */
:root {
  --header-height: 74px;
}

.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 15, 33, .96) 0%,
    rgba(11, 27, 59, .85) 55%,
    rgba(40, 80, 10, .65) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 56px;
  border-left: 4px solid var(--green);
  padding-left: 28px;
  max-width: 700px;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.page-hero__title {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.page-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255, 255, 255, .82);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 540px;
}

.page-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .page-hero {
    min-height: 44vh;
  }
  .page-hero__content {
    border-left: none;
    padding-left: 0;
    border-top: 4px solid var(--green);
    padding-top: 24px;
  }
  .page-hero__ctas {
    flex-direction: column;
  }
  .page-hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   IN-PAGE SECTION SUBNAV
   Sticky bar linking to anchor sections on the same page.
   ============================================================ */
.section-subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  background: #060f21;
  border-bottom: 2px solid rgba(121, 192, 0, .2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.section-subnav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-subnav__list::-webkit-scrollbar {
  display: none;
}

.section-subnav__item a {
  display: block;
  padding: 14px 22px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.section-subnav__item a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.section-subnav__item a.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}


/* ============================================================
   PAGE SECTIONS  (anchor targets)
   ============================================================ */
.page-section {
  padding: 88px 0;
  scroll-margin-top: calc(var(--header-height) + 52px);
}

.page-section--sm {
  padding: 56px 0;
}

/* Background variants */
.bg-section-primary  { background: var(--navy); }
.bg-section-dark     { background: #060f21; }
.bg-section-accent   { background: rgba(121, 192, 0, .06); border-top: 1px solid rgba(121, 192, 0, .15); border-bottom: 1px solid rgba(121, 192, 0, .15); }

/* Section header block */
.section-header {
  margin-bottom: 52px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label::before,
.section-header--center .section-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin: 0 10px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}

.section-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
  max-width: 620px;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   PROGRAM CARDS
   Used across Memberships, Golf, Clinics, Parties, etc.
   ============================================================ */
.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.program-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.program-card:hover {
  background: rgba(255, 255, 255, .07);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.program-card__icon {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 18px;
  line-height: 1;
}

.program-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--white);
  margin-bottom: 10px;
}

.program-card__body {
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.program-card__cta {
  margin-top: auto;
}


/* ============================================================
   FEATURE GRID  (D1-Training–style icon + title + body)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

@media (max-width: 991px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-item__icon {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1;
}

.feature-item__title {
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--white);
  margin-bottom: 6px;
}

.feature-item__tagline {
  font-size: .85rem;
  font-style: italic;
  color: var(--green);
  margin-bottom: 10px;
}

.feature-item__body {
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
}


/* ============================================================
   SPLIT SECTION  (image + text, alternating)
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-section--reverse .split-section__media { order: 2; }
.split-section--reverse .split-section__text  { order: 1; }

.split-section__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-section__media-placeholder {
  color: rgba(255, 255, 255, .2);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: 32px;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-section--reverse .split-section__media,
  .split-section--reverse .split-section__text {
    order: unset;
  }
}


/* ============================================================
   INSTRUCTOR CARDS  (The 5 Baseball style — circular photo)
   ============================================================ */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px 28px;
}

.instructor-card {
  text-align: center;
}

.instructor-card__photo-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--green);
  background: rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructor-card__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.instructor-card__photo-placeholder {
  font-size: 3rem;
  color: rgba(255, 255, 255, .2);
}

.instructor-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.instructor-card__title {
  font-size: .85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 4px;
}

.instructor-card__credentials {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  font-style: italic;
}

.instructor-card__actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

/* Each control on its own row (avoids inline/row quirks with mixed link + button). */
.instructor-card__actions > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 220px;
}

.instructor-card__actions .btn-link {
  text-align: center;
}

.instructor-card__more-info.btn-link {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-underline-offset: 3px;
}

.instructor-card__more-info.btn-link:hover,
.instructor-card__more-info.btn-link:focus-visible {
  color: var(--white) !important;
}


/* ============================================================
   SPORT FILTER BAR  (Instructors page)
   ============================================================ */
.sport-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.sport-filter__btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  background: none;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.sport-filter__btn:hover,
.sport-filter__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #06110a;
}


/* ============================================================
   EVENTS SECTION  (RunSwift CTA block)
   ============================================================ */
.events-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(121, 192, 0, .15);
}

.events-section__icon {
  font-size: 2.8rem;
  color: var(--green);
  margin-bottom: 20px;
}

.events-section__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.events-section__body {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.events-section__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}


/* ============================================================
   PAGE-LEVEL CTA BLOCK
   ============================================================ */
.page-cta-block {
  background: linear-gradient(135deg, #060f21 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 3px solid var(--green);
}

.page-cta-block__title {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.page-cta-block__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  max-width: 500px;
  margin: 0 auto 32px;
}

.page-cta-block__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media ( max-width: 575.98px ) {
  .page-cta-block__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .page-cta-block__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   DEFAULT PAGE CONTENT  (page.php editor content)
   ============================================================ */
.page-content {
  padding: 72px 0;
  background: var(--navy);
}

.page-content .entry-content {
  max-width: 820px;
  font-size: 1rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.8;
}

.page-content .entry-content h2,
.page-content .entry-content h3 {
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
}

.page-content .entry-content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 8px;
}

.page-content .entry-content a {
  color: var(--green);
  text-decoration: underline;
}

.page-content .entry-content ul li::marker {
  color: var(--green);
}


/* ============================================================
   HOMEPAGE — HERO
   Full-viewport height hero, reuses page-hero inner classes
   but with taller height and centered content option.
   ============================================================ */
.home-hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* accounts for mobile browser chrome */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: var(--navy);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(6, 15, 33, .97) 0%,
    rgba(11, 27, 59, .88) 50%,
    rgba(40, 80, 10, .60) 100%
  );
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

.home-hero__content {
  border-left: 5px solid var(--green);
  padding-left: 32px;
  max-width: 760px;
}

.home-hero__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -1px;
}

/* Scroll-down indicator */
.home-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, .45);
  font-size: 1.4rem;
  animation: heroScrollBounce 2s ease-in-out infinite;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px; /* large tap target */
  border-radius: 50%;
  transition: color .2s;
}
.home-hero__scroll:hover,
.home-hero__scroll:focus {
  color: rgba(255, 255, 255, .85);
  outline: none;
}

/* Give the stats-bar enough clearance so sticky header doesn't cover it */
#tps-home-content {
  scroll-margin-top: var(--header-height);
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .home-hero {
    height: 100vh;
    height: 100svh;
  }
  .home-hero__content {
    border-left: none;
    border-top: 4px solid var(--green);
    padding-left: 0;
    padding-top: 24px;
  }
  .home-hero__title {
    font-size: clamp(38px, 9vw, 58px);
  }
}


/* ============================================================
   HOMEPAGE — STATS BAR
   ============================================================ */
.stats-bar {
  background: #0a1528;
  border-top: 1px solid rgba(121, 192, 0, .2);
  border-bottom: 1px solid rgba(121, 192, 0, .2);
  padding: 28px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.stats-bar__item:last-child {
  border-right: none;
}

.stats-bar__number {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stats-bar__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}

@media (max-width: 576px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar__item:nth-child(2) {
    border-right: none;
  }
  .stats-bar__item {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .stats-bar__item:nth-child(3),
  .stats-bar__item:nth-child(4) {
    border-bottom: none;
  }
}


/* ============================================================
   HOMEPAGE — SERVICES GRID
   4-up on desktop, 2-up on tablet, 1-up on mobile
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 28px 22px;
  transition: border-color .25s, background .25s, transform .25s;
}

.service-card:hover {
  border-color: rgba(121, 192, 0, .5);
  background: rgba(121, 192, 0, .06);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(121, 192, 0, .12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--green);
}

.service-card__title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-card__link {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.service-card__link:hover {
  color: var(--white);
  gap: 10px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   HOMEPAGE — EVENTS SECTION
   ============================================================ */
.events-home-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.events-home-row__icon-wrap {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, .06);
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, .3);
}

@media (max-width: 768px) {
  .events-home-row {
    grid-template-columns: 1fr;
  }
  .events-home-row__visual {
    display: none;
  }
}


/* ============================================================
   HOMEPAGE — LOCATION & HOURS
   ============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.location-grid__subhead {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table__day {
  padding: 10px 0;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  font-weight: 600;
  width: 55%;
}

.hours-table__time {
  padding: 10px 0;
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-align: right;
}

.location-grid__map {
  border-radius: 12px;
  overflow: hidden;
}

.location-grid__embed iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 12px;
  display: block;
}

.location-grid__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  background: rgba(255, 255, 255, .04);
  border: 2px dashed rgba(121, 192, 0, .3);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, .5);
  font-size: 1rem;
  transition: border-color .2s, color .2s;
  text-align: center;
  padding: 32px;
}

.location-grid__map-placeholder i {
  font-size: 2.5rem;
  color: rgba(121, 192, 0, .4);
}

.location-grid__map-placeholder small {
  font-size: .8rem;
  color: rgba(255, 255, 255, .35);
}

.location-grid__map-placeholder:hover {
  border-color: var(--green);
  color: var(--white);
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   404 — PAGE NOT FOUND
   ============================================================ */
.tps-404 {
  background: linear-gradient(160deg, #060f21 0%, var(--navy) 60%, #0d2200 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.tps-404__inner {
  max-width: 780px;
}

/* Giant ghost number */
.tps-404__number {
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(121, 192, 0, .25);
  letter-spacing: -8px;
  user-select: none;
  margin-bottom: -20px;
}

/* Whistle icon */
.tps-404__icon {
  font-size: 2.8rem;
  color: var(--green);
  margin-bottom: 18px;
}

.tps-404__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.tps-404__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .65);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.tps-404__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

/* Popular links */
.tps-404__links-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 16px;
}

.tps-404__links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tps-404__links-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 99px;
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}

.tps-404__links-grid a:hover,
.tps-404__links-grid a:focus {
  border-color: var(--green);
  color: var(--green);
  background: rgba(121, 192, 0, .06);
}

@media (max-width: 575.98px) {
  .tps-404__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .tps-404__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
