/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --color-navy:        #0C1B33;
  --color-navy-mid:    #1A2E4A;
  --color-green:       #16803C;
  --color-green-dark:  #14532D;
  --color-green-light: #22C55E;
  --color-blue:        #1D4ED8;
  --color-white:       #FFFFFF;
  --color-gray-50:     #F9FAFB;
  --color-gray-100:    #F3F4F6;
  --color-gray-200:    #E5E7EB;
  --color-gray-400:    #9CA3AF;
  --color-gray-600:    #4B5563;
  --color-gray-900:    #111827;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);

  --nav-height: 64px;
  --transition: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Offset anchor links so the fixed nav doesn't cover section headings */
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-gray-900);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

ul { list-style: none; }

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--color-gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.section-line {
  width: 48px;
  height: 4px;
  background: var(--color-green);
  margin: 0 auto;
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-green-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

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

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--color-navy);
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link--cta {
  background: var(--color-green);
  color: var(--color-white);
  padding: 8px 20px;
}

.nav-link--cta:hover {
  background: var(--color-green-dark);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 27, 51, 0.88) 0%,
    rgba(12, 27, 51, 0.65) 55%,
    rgba(12, 27, 51, 0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.hero-position {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-location {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  width: 36px;
  height: 36px;
  z-index: 2;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 100%;
  height: 100%;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  background: var(--color-navy);
  padding: 22px 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 72px;
  align-items: center;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--color-gray-600);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-bio a {
  color: var(--color-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.about-bio a:hover {
  text-decoration-color: currentColor;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-gray-200);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-gray-600);
}

.detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-green);
  stroke-width: 1.75;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3 / 4;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ==========================================================================
   Teams
   ========================================================================== */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-xl);
}

.team-card__header {
  padding: 20px 28px;
}

.team-card__header--hs   { background: var(--color-navy); }
.team-card__header--club { background: var(--color-green); }

.team-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.team-card__body {
  padding: 28px 28px 32px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.2;
}

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

.team-detail {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  margin-bottom: 4px;
}

.team-coaches {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-100);
}

.coaches-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: 5px;
}

.coaches-names {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

/* ==========================================================================
   Highlights
   ========================================================================== */
.highlights-featured {
  margin-bottom: 44px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  box-shadow: var(--shadow-xl);
}

.highlight-card__icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-card__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-white);
  margin-left: 3px; /* optical centre for play triangle */
}

.highlight-card__body {
  flex: 1;
}

.highlight-card__badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green-light);
  margin-bottom: 5px;
}

.highlight-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.highlight-card__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

.highlight-card__arrow {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.highlight-card:hover .highlight-card__arrow {
  color: rgba(255, 255, 255, 0.8);
}

.matches-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: 18px;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.match-card {
  display: block;
  padding: 24px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.match-card:hover {
  border-color: var(--color-green);
  box-shadow: var(--shadow-md);
}

.match-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 6px;
}

.match-card__matchup {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.match-card__location {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  margin-bottom: 18px;
}

.match-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  transition: color var(--transition);
}

.match-card:hover .match-card__link {
  color: var(--color-green);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  padding: 0;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 51, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(12, 27, 51, 0.28);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: none;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--color-white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 16px 20px;
  transition: color var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--color-white); }

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-gray-600);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-cards--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.contact-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-green);
  word-break: break-all;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
}

.contact-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.contact-card__detail {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin-bottom: 4px;
}

.contact-card .btn {
  margin-top: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  padding: 36px 0;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Hover — only apply transform/hover effects on devices that support hover
   (avoids sticky hover state on iOS/Android touch screens)
   ========================================================================== */
@media (hover: hover) {
  .btn--primary:hover   { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn--outline:hover   { transform: translateY(-1px); }
  .team-card:hover      { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
  .highlight-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
  .match-card:hover     { transform: translateY(-2px); }
  .gallery-item:hover img         { transform: scale(1.06); }
  .gallery-item:hover::after      { background: rgba(12, 27, 51, 0.28); }
  .highlight-card:hover .highlight-card__arrow { color: rgba(255,255,255,0.8); transform: translateX(4px); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive — Tablet  (≤ 960px)
   ========================================================================== */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-photo {
    max-width: 440px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }

  .teams-grid,
  .matches-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards--three {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }

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

  .stat-item {
    padding: 8px 20px;
  }
}

/* ==========================================================================
   Responsive — Mobile  (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* --- Navigation / hamburger --- */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
    /* Sit above page content */
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    /* Minimum 44px touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-link--cta {
    margin-top: 8px;
    justify-content: center;
  }

  /* --- Hero --- */
  .hero {
    /* Use svh so hero fills visible viewport on mobile (accounts for browser chrome) */
    height: 100svh;
    min-height: 540px;
  }

  .hero-name {
    /* Tighten large heading on narrow screens */
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* --- Stats bar: 3×2 grid --- */
  .stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stat-item {
    padding: 12px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
  }

  /* Remove right border on every 3rd item */
  .stat-item:nth-child(3n) {
    border-right: none;
  }

  /* Remove bottom border on last row */
  .stat-item:nth-last-child(-n+3) {
    border-bottom: none;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  /* --- About photo: portrait crop feels better on mobile --- */
  .about-photo {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  /* --- Highlights --- */
  .highlight-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 16px;
  }

  .highlight-card__arrow {
    display: none;
  }

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

  /* --- Gallery: 2 columns on mobile --- */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* Larger tap area for lightbox controls */
  .lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 2.8rem;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2.2rem;
    padding: 20px 14px;
    min-width: 52px;
    /* Push buttons to the very edges */
    top: auto;
    bottom: 54px;
    transform: none;
  }

  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }

  /* --- Contact --- */
  .contact-cards--three {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .contact-intro {
    font-size: 1rem;
  }

  /* --- Teams --- */
  .team-card__body {
    padding: 20px 20px 24px;
  }

  /* --- Buttons: allow wrapping on very small screens --- */
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   Responsive — Very small phones  (≤ 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .hero-name {
    font-size: clamp(2.4rem, 16vw, 3.5rem);
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  /* Re-apply borders for 2-column grid */
  .stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-item:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* 3rd item no longer ends a row in 2-col layout */
  .stat-item:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* last 2 items */
  .stat-item:nth-child(5),
  .stat-item:nth-child(6) {
    border-bottom: none;
  }
}
