/* ========================================
   Apex Youth Basketball - Stylesheet
   Theme: Black, Teal, White
   ======================================== */

:root {
  --black: #0B0F19;
  --black-light: #141B2D;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-teal: 0 8px 25px rgba(13, 148, 136, 0.25);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--black);
  color: var(--gray-200);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }

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

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

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-teal);
}

.logo span {
  color: var(--teal-light);
}

/* Prominent Header Social Icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn.facebook {
  background: #1877F2;
  color: white;
}

.social-btn.facebook:hover {
  background: #0d65d9;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-btn.instagram:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-300);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-light);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--teal-light);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.hamburger:hover span {
  background: var(--teal-light);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 1.5rem 80px;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 40%),
    var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: url('../images/jtba-logo-bg.png') center center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

/* Additional subtle pattern on left */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230D9488' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-text h1 span {
  color: var(--teal-light);
  display: block;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.basketball-graphic {
  width: 360px;
  max-width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 0 0 6px rgba(13, 148, 136, 0.2),
    var(--shadow-teal);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 1.5rem;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal-light);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(13, 148, 136, 0.3);
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--black-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* ========== FEATURES / ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-light);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.about-image {
  border-radius: var(--radius);
  height: 380px;
  box-shadow: var(--shadow-teal);
  position: relative;
  overflow: hidden;
}

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

/* ========== PROGRAMS ========== */
.program-card {
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.15);
  transition: var(--transition);
}

.program-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.program-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 1.5rem;
  text-align: center;
}

.program-header h3 {
  font-size: 1.3rem;
}

.program-body {
  padding: 1.75rem;
}

.program-body ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.program-body li {
  padding: 0.4rem 0;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.program-body li::before {
  content: '✓';
  color: var(--teal-light);
  font-weight: bold;
}

.age-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.2);
  color: var(--teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ========== CONTACT / FORMS ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(13, 148, 136, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--gray-300);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--black);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(13, 148, 136, 0.15);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin: 1rem 0 1.5rem;
  max-width: 280px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(13, 148, 136, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--teal);
  color: var(--white);
}

.footer h4 {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  border-top: 1px solid rgba(13, 148, 136, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 140px 1.5rem 60px;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.2) 0%, transparent 60%),
    var(--black);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--gray-400);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== TEAM / COACHES ========== */
.coach-card {
  text-align: center;
  background: var(--black-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
  transition: var(--transition);
}

.coach-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.coach-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  border: 3px solid rgba(13, 148, 136, 0.3);
}

.coach-card h3 {
  margin-bottom: 0.25rem;
}

.coach-role {
  color: var(--teal-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.coach-card p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .basketball-graphic {
    width: 240px;
    height: 240px;
    font-size: 6rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.45;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Mobile navigation (starts at 900px so desktop nav never overflows) --- */
  .nav-container {
    padding: 0 1rem;
    height: 64px;
  }

  .logo img {
    height: 40px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--black-light);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(13, 148, 136, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid rgba(13, 148, 136, 0.12);
    font-size: 1.05rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
    margin-left: 0.5rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-social {
    display: none;
  }

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

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

  .hero {
    padding: 100px 1.25rem 60px;
    min-height: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-hero {
    padding: 7rem 1.25rem 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .logo img {
    height: 36px;
  }

  .nav-container {
    height: 58px;
  }

  .nav-links {
    top: 58px;
    max-height: calc(100vh - 58px);
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .social-btn {
    width: 32px;
    height: 32px;
  }
}


/* ========== JTBA MOBILE REFINEMENTS ========== */
@media (max-width: 900px) {
  .header {
    background: rgba(11, 15, 25, 0.98);
  }

  .nav-container {
    position: relative;
    height: 68px;
    padding: 0 1rem;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo img {
    height: 42px;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 1px solid rgba(13, 148, 136, 0.35);
    background: rgba(20, 27, 45, 0.9);
  }

  .hamburger span {
    width: 24px;
    height: 3px;
  }

  .nav-links {
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(20, 27, 45, 0.99);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(13, 148, 136, 0.18);
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.85rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links .btn {
    min-height: 50px;
    margin-top: 0.75rem;
  }

  /* Keep the most important action easy to spot. */
  .nav-links li:last-child {
    order: 10;
  }

  .hero {
    padding: 92px 1.25rem 3.5rem;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* On phones, tell parents what the program is before showing the photo. */
  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .basketball-graphic {
    width: min(100%, 380px);
    height: 240px;
    animation: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .card,
  .program-body {
    padding: 1.5rem;
  }

  .program-header {
    padding: 1.25rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-image {
    height: 280px;
  }

  /* Mobile gallery: swipe horizontally instead of creating a very long page. */
  .mobile-gallery {
    display: flex !important;
    overflow-x: auto;
    gap: 0.85rem !important;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-gallery > div {
    flex: 0 0 82%;
    height: 240px !important;
    scroll-snap-align: center;
  }

  .mobile-gallery::-webkit-scrollbar {
    height: 5px;
  }

  .footer {
    padding-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 62px;
  }

  .nav-links {
    top: 62px;
    max-height: calc(100vh - 62px);
  }

  .logo img {
    height: 38px;
    max-width: 165px;
  }

  .hero {
    padding-top: 84px;
  }

  .hero-text h1 {
    margin-bottom: 1rem;
  }

  .hero-text p {
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    min-height: 50px;
  }

  .basketball-graphic {
    height: 210px;
  }

  .section-header h2 {
    line-height: 1.15;
  }

  .mobile-gallery > div {
    flex-basis: 88%;
    height: 225px !important;
  }
}


/* ========== INTENTIONAL MOBILE HOMEPAGE ========== */
.mobile-hero-intentional,
.mobile-quick-intro {
  display: none;
}

@media (max-width: 900px) {
  .mobile-hero-intentional {
    display: flex;
    position: relative;
    z-index: 3;
    min-height: calc(100svh - 68px);
    padding: 5.75rem 1.25rem 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 32%, rgba(13, 148, 136, 0.20), transparent 38%),
      linear-gradient(180deg, rgba(11,15,25,.96) 0%, rgba(20,27,45,.98) 100%);
  }

  .mobile-hero-intentional::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -150px;
    top: 18%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
      0 0 0 35px rgba(255,255,255,.025),
      0 0 0 70px rgba(255,255,255,.018);
    transform: rotate(-18deg);
  }

  .mobile-hero-intentional::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    left: -125px;
    bottom: 8%;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
  }


  .mobile-hero-intentional {
    isolation: isolate;
  }

  .mobile-hero-intentional::marker {
    display: none;
  }

  .mobile-hero-intentional::before {
    /* Keep the existing decorative ring, with the logo supplied by JTBA as a separate watermark. */
    z-index: -2;
  }

  .mobile-hero-intentional .mobile-hero-logo-watermark {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: min(92vw, 430px);
    height: auto;
    transform: translate(-50%, -50%);
    opacity: .13;
    filter: saturate(.9) contrast(1.05);
    pointer-events: none;
  }

  .mobile-hero-intentional .mobile-hero-logo-watermark img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-hero-kicker,
  .mobile-hero-intentional h1,
  .mobile-hero-subtitle,
  .mobile-hero-grades,
  .mobile-hero-actions,
  .mobile-hero-scroll {
    position: relative;
    z-index: 2;
  }

  .mobile-hero-kicker {
    margin-bottom: 1rem;
    font-size: .72rem;
    line-height: 1.4;
    letter-spacing: .16em;
    font-weight: 800;
    opacity: .82;
  }

  .mobile-hero-intentional h1 {
    margin: 0;
    font-size: clamp(2.75rem, 13vw, 4.2rem);
    line-height: .92;
    letter-spacing: -.045em;
  }

  .mobile-hero-intentional h1 span {
    display: inline-block;
    margin-top: .2rem;
  }

  .mobile-hero-subtitle {
    max-width: 330px;
    margin: 1.25rem auto .8rem;
    font-size: 1rem;
    line-height: 1.55;
    opacity: .9;
  }

  .mobile-hero-grades {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .05em;
  }

  .mobile-hero-actions {
    display: flex;
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    gap: .75rem;
  }

  .mobile-hero-actions .btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    font-size: .98rem;
    font-weight: 800;
  }

  .mobile-hero-scroll {
    display: flex;
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .58;
  }

  .mobile-hero-arrow {
    font-size: 1.2rem;
    line-height: 1;
  }

  /* Hide the desktop hero content only on phones. */
  .hero > .hero-content {
    display: none !important;
  }

  .mobile-quick-intro {
    display: block;
    padding: 3.25rem 1.25rem 3.5rem;
    text-align: center;
    background: #d9dfe2;
  }

  .mobile-quick-intro .container {
    max-width: 520px;
    margin: 0 auto;
  }

  .mobile-quick-label {
    margin: 0 0 .7rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    opacity: .62;
  }

  .mobile-quick-intro h2 {
    margin: 0 0 .85rem;
    font-size: 2rem;
    line-height: 1.05;
  }

  .mobile-quick-intro > .container > p:not(.mobile-quick-label) {
    margin: 0 auto 1.75rem;
    max-width: 460px;
    font-size: .98rem;
    line-height: 1.65;
    opacity: .78;
  }

  .mobile-quick-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    text-align: left;
  }

  .mobile-quick-points > div {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: #f5f7f9;
  }

  .mobile-quick-points strong {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(13,148,136,.1);
    font-size: 1.1rem;
  }

  .mobile-quick-points span {
    font-size: .92rem;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .mobile-hero-intentional {
    min-height: calc(100svh - 62px);
    padding: 4.75rem 1.1rem 1.5rem;
  }

  .mobile-hero-intentional h1 {
    font-size: clamp(2.7rem, 14vw, 3.6rem);
  }

  .mobile-hero-subtitle {
    margin-top: 1.1rem;
  }

  .mobile-quick-intro {
    padding-top: 2.75rem;
  }
}


/* ========== READABLE MOBILE QUICK INTRO ========== */
@media (max-width: 900px) {
  .mobile-quick-intro {
    display: block;
    padding: 3.5rem 1.25rem 3.75rem;
    text-align: center;
    background: #dce3e7 !important;
    color: #111827 !important;
    border-top: 1px solid #c5cdd2;
    border-bottom: 1px solid #c5cdd2;
  }

  .mobile-quick-intro .container {
    max-width: 520px;
    margin: 0 auto;
  }

  .mobile-quick-label {
    margin: 0 0 .75rem;
    color: #075f63 !important;
    font-size: .72rem;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: .14em;
  }

  .mobile-quick-intro h2 {
    margin: 0 0 .9rem;
    color: #111827 !important;
    font-size: 2.05rem;
    line-height: 1.08;
    font-weight: 900;
    text-shadow: none;
  }

  .mobile-quick-intro > .container > p:not(.mobile-quick-label) {
    margin: 0 auto 1.8rem;
    max-width: 460px;
    color: #26343b !important;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 500;
    opacity: 1 !important;
  }

  .mobile-quick-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    text-align: left;
  }

  .mobile-quick-points > div {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 58px;
    padding: .8rem 1rem;
    border: 1px solid #c3cdd2;
    border-radius: 12px;
    background: #f7f9fa !important;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .08);
  }

  .mobile-quick-points strong {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: #b9d8d8 !important;
    color: #075f63 !important;
    font-size: 1.15rem;
  }

  .mobile-quick-points span {
    color: #17232a !important;
    font-size: .96rem;
    line-height: 1.3;
    font-weight: 800;
  }
}

@media (max-width: 480px) {
  .mobile-quick-intro {
    padding: 3rem 1.1rem 3.25rem;
  }

  .mobile-quick-intro h2 {
    font-size: 1.9rem;
  }
}
