/* ==========================================================================
   NEODUNK - Basketball Sports Club Website Template
   Responsive Stylesheet

   Handles all responsive breakpoints for component-level layout adjustments.
   Base custom properties are defined in style.css.
   Component styles are defined in components.css.
   ========================================================================== */


/* ==========================================================================
   1. HAMBURGER MENU BUTTON (default state)
   Hidden on desktop, shown via media query on tablet/mobile
   ========================================================================== */

.header__menu-toggle {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.header__menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

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

.header__menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}


/* ==========================================================================
   2. MOBILE NAVIGATION OVERLAY
   Full-screen overlay menu for tablet and mobile viewports
   ========================================================================== */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--color-primary);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile Nav Header (logo + close) --- */

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mobile-nav__logo {
  display: inline-flex;
  align-items: center;
}

.mobile-nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.mobile-nav__close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Mobile Nav Items (left-aligned with dividers) --- */

.mobile-nav__items {
  flex: 1;
  padding: 8px 0;
}

/* --- Mobile Nav Footer (CTA) --- */

.mobile-nav__footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--color-accent-secondary);
  color: var(--color-white);
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-nav__cta:hover {
  background-color: var(--color-primary-hover, #d96a00);
  color: var(--color-white);
}


/* ==========================================================================
   3. RESPONSIVE UTILITY CLASSES
   Visibility toggles based on viewport width
   ========================================================================== */

.desktop-only {
  display: block;
}

.btn.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}


/* ==========================================================================
   4. BREAKPOINT: 1200px (Large tablet / Small desktop)
   ========================================================================== */

@media (max-width: 1200px) {

  /* --- Layout --- */
  .container {
    max-width: 960px;
  }

  /* --- Grid adjustments --- */
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* --- Typography --- */
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  /* --- Hero --- */
  .hero__title {
    font-size: 42px;
  }

  .hero__grid {
    gap: 40px;
  }

  /* --- Footer --- */
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================================
   5. BREAKPOINT: 1024px (Tablet)
   ========================================================================== */

@media (max-width: 1024px) {

  /* --- Header: hide desktop nav, show hamburger --- */
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  /* When overlay is open, hide hamburger so only one close button shows */
  .header__menu-toggle.active {
    display: none;
  }

  /* Also hide the header itself behind the overlay to avoid visual layering */
  body:has(.mobile-nav.active) .header {
    visibility: hidden;
  }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding: 140px 0 60px;
    margin: 8px;
    border-radius: 16px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__left {
    padding-bottom: 0;
  }

  .hero__right {
    padding-bottom: 0;
  }

  /* --- Header adjustments --- */
  .header {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: 16px 16px 0 0;
  }

  .header.scrolled {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  /* --- Sections --- */
  .section {
    padding: 60px 0;
  }

  /* --- Grid: stack 2-col and 3-col --- */
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

  /* --- Match card --- */
  .match-card__teams {
    flex-direction: column;
    gap: 10px;
  }

  /* --- Newsletter form --- */
  .newsletter__form {
    flex-direction: column;
  }

  /* --- Footer --- */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* --- Stats --- */
  .stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat {
    flex-basis: calc(50% - 10px);
  }

  /* --- Responsive utility toggles --- */
  .desktop-only,
  .btn.desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}


/* ==========================================================================
   6. BREAKPOINT: 768px (Mobile)
   ========================================================================== */

@media (max-width: 768px) {

  /* --- Layout --- */
  .container {
    padding: 0 16px;
  }

  /* --- Typography --- */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 19px;
  }

  .section-title {
    font-size: 24px;
  }

  .page-hero__title {
    font-size: 30px;
  }

  /* --- Hero --- */
  .hero {
    padding: 150px 0 50px;
    margin: 6px;
    border-radius: 12px;
  }

  .hero__subtitle {
    margin-top: 8px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__stat-number {
    font-size: 26px;
  }

  /* --- Header --- */
  .header {
    top: 6px;
    left: 6px;
    right: 6px;
    border-radius: 12px 12px 0 0;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__video-btn {
    justify-content: center;
  }

  /* --- Sections --- */
  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* --- Grid: all single column --- */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* --- Flex: stack vertically --- */
  .flex {
    flex-direction: column;
  }

  /* --- Cards --- */
  .program-card {
    padding: 30px 20px;
  }

  .testimonial-card {
    padding: 24px;
  }

  /* --- Forms --- */
  .form--2col {
    grid-template-columns: 1fr;
  }

  /* --- Page hero (inner pages) --- */
  .page-hero {
    padding: 160px 0 80px;
    margin: 6px;
    border-radius: 12px;
  }

  /* --- Icon box --- */
  .icon-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* --- Stats --- */
  .stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat {
    text-align: center;
  }

  /* --- Accordion --- */
  .accordion__header {
    font-size: 16px;
    padding: 16px 20px;
  }

  /* --- Review badge --- */
  .review-badge {
    font-size: 12px;
  }

  /* --- Tablet hide utility --- */
  .tablet-hide {
    display: none;
  }
}


/* ==========================================================================
   7. ABOUT SECTION RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .about-grid {
    gap: 40px;
  }

  .about-gallery__img--front {
    width: 260px;
    min-width: 220px;
    height: 365px;
  }

  .about-gallery__img--back {
    width: 310px;
    min-width: 260px;
    height: 490px;
    margin-left: -130px;
  }

  .about-gallery__trust {
    margin-top: -90px;
  }
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Swap order on mobile: content first, gallery below */
  .about-grid .about-content {
    order: 1;
  }

  .about-grid .about-gallery {
    order: 2;
  }

  .about-gallery__img--front {
    width: 240px;
    min-width: 200px;
    height: 340px;
  }

  .about-gallery__img--back {
    width: 300px;
    min-width: 250px;
    height: 470px;
    margin-left: -120px;
  }

  .about-usp-card__items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-gallery__img--front {
    width: 200px;
    min-width: 170px;
    height: 280px;
    margin-top: 150px;
    margin-left: 30px;
  }

  .about-gallery__img--back {
    width: 240px;
    min-width: 200px;
    height: 380px;
    margin-left: -60px;
  }

  .about-gallery__trust {
    margin-top: -85px !important;
    margin-left: 120px;
    padding: 16px;
    border-radius: 24px;
  }

  .about-gallery__trust-text {
    font-size: 16px;
  }

  .about-usp-card__items {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-usp-card__items>.about-usp-card__item:first-child {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: 24px;
  }

  .about-usp-card {
    padding: 24px;
  }

  .about-small-usps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- Typography polish at 480px --- */
@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .page-hero__title {
    font-size: 28px;
  }

  .hero__title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .about-gallery__img--front {
    width: 160px;
    min-width: 140px;
    height: 220px;
  }

  .about-gallery__img--back {
    width: 190px;
    min-width: 160px;
    height: 300px;
    margin-left: -70px;
  }

  .about-gallery__trust {
    margin-top: -55px;
    padding: 14px;
    border-width: 4px;
    border-radius: 20px;
  }

  .about-gallery__trust-text {
    font-size: 14px;
  }

  .about-gallery__trust-avatars img {
    width: 32px;
    height: 32px;
  }
}


/* ==========================================================================
   8. FAQ SECTION RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .faq-grid {
    gap: 40px;
  }

  .faq-image {
    min-height: 500px;
  }
}

@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Swap order on mobile: content first, image below */
  .faq-grid .faq-content-col {
    order: 1;
  }
  .faq-grid .faq-image-col {
    order: 2;
  }

  .faq-image {
    min-height: 400px;
  }

  .faq-image-wrapper {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .faq-image {
    min-height: 350px;
  }

  .faq-glass-card {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 18px;
  }

  .faq-glass-card__text {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .faq-glass-card__avatars img {
    width: 38px;
    height: 38px;
  }

  .faq-accordion .faq-item__header {
    font-size: 15px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .faq-image {
    min-height: 280px;
  }

  .faq-glass-card__text {
    font-size: 14px;
  }

  .faq-glass-card__avatars img {
    width: 32px;
    height: 32px;
  }

  .faq-accordion .faq-item__header {
    font-size: 14px;
    padding: 14px 16px;
  }
}


/* ==========================================================================
   8b. TESTIMONIALS SECTION RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .testimonials-header {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .testimonials-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonials-grid {
    flex-direction: column;
  }

  .testimonials-grid__image {
    width: 100%;
    height: 320px;
  }

  .testimonial-card {
    width: calc(50% - 10px);
    min-width: calc(50% - 10px);
  }

  .testimonials-trust__left {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .testimonials-grid__image {
    height: 260px;
  }

  .testimonial-card {
    width: 100%;
    min-width: 100%;
    padding: 24px;
  }

  .testimonials-trust__text {
    font-size: 14px;
  }

  .testimonials-trust__right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .testimonials-grid__image {
    height: 220px;
  }

  .testimonial-card__quote {
    font-size: 15px;
  }

  .testimonials-trust__score {
    font-size: 16px;
  }
}


/* ==========================================================================
   9. CTA SECTION RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .cta__title {
    font-size: 42px;
  }

  .cta__sponsors-track {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .cta {
    min-height: auto;
    padding: 80px 0 50px;
    margin: 8px;
    border-radius: 16px;
  }

  .cta__title {
    font-size: 36px;
  }

  .cta__description {
    margin-bottom: 32px;
  }

  .cta__sponsors-track {
    gap: 30px;
  }

  .cta__sponsors-track img {
    height: 26px;
  }
}

@media (max-width: 768px) {
  .cta {
    padding: 60px 0 40px;
    margin: 6px;
    border-radius: 12px;
    min-height: auto;
  }

  .cta__title {
    font-size: 28px;
  }

  .cta__description {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .cta__buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cta__sponsors {
    margin-top: 40px;
  }

  .cta__sponsors-track {
    gap: 24px;
  }

  .cta__sponsors-track img {
    height: 22px;
  }

  .cta__sponsors-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cta__title {
    font-size: 24px;
  }

  .cta__sponsors-track {
    gap: 20px;
  }

  .cta__sponsors-track img {
    height: 20px;
  }
}


/* ==========================================================================
   RESULTS CAROUSEL (Uitslagen) — Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .uitslagen-section {
    min-height: auto;
    margin: 8px;
    border-radius: 16px;
    padding: 80px 0 50px;
  }

  .results-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .result-card {
    padding: 24px;
  }

  .result-card__team-logo,
  .result-card__logo-fallback {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 768px) {
  .uitslagen-section {
    margin: 6px;
    border-radius: 12px;
    padding: 60px 0 40px;
  }

  .results-carousel-wrapper {
    gap: 10px;
  }

  .results-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .result-card {
    padding: 20px;
  }

  .result-card__score {
    font-size: 24px;
  }

  .result-card__teams {
    gap: 14px;
  }

  .result-card__team-logo,
  .result-card__logo-fallback {
    width: 56px;
    height: 56px;
  }

  .result-card__team-badge {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .results-carousel-btn {
    display: none;
  }

  .results-carousel-wrapper {
    gap: 0;
  }
}


/* ==========================================================================
   NBB TEAM BLOCKS (Teams page) — Responsive
   ========================================================================== */

@media (max-width: 1024px) {

  .standings-table th,
  .standings-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .nbb-team-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .nbb-team-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .standings-table {
    font-size: 13px;
  }

  .standings-table th,
  .standings-table td {
    padding: 8px 10px;
  }

  .standings-table__team-logo {
    width: 24px;
    height: 24px;
  }

  .upcoming-match {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .upcoming-match__date {
    min-width: auto;
  }

  .upcoming-match__location {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .standings-table {
    font-size: 12px;
  }

  .standings-table th,
  .standings-table td {
    padding: 6px 8px;
  }

  .standings-table__team-cell {
    gap: 6px;
  }

  .standings-table__team-logo {
    width: 20px;
    height: 20px;
  }
}


/* ==========================================================================
   TEAM ROSTER RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .team-roster__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }

  .team-roster__media {
    order: -1;
  }

  .team-roster__photo {
    aspect-ratio: 16 / 10;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .team-roster__list {
    grid-template-columns: 1fr;
  }

  .team-roster__photo {
    border-radius: 20px;
    aspect-ratio: 4 / 3;
  }
}


/* ==========================================================================
   CONTACT PAGE LAYOUT
   Desktop: text+image stacked in left column, form in right column.
   Mobile: text → form → image (re-ordered with flex order).
   ========================================================================== */

/* Desktop: 2 columns. Left column stacks text + image with image bottom-aligned
   to the form bottom (right column). Form spans full height. */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Left column: text row auto, image row 1fr (fills remaining space so its
   bottom edge meets the form bottom). Image stays square via aspect-ratio. */
.contact-layout__text  {
  grid-column: 1;
  grid-row: 1;
}
.contact-layout__image {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.contact-layout__image-inner {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.contact-layout__image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-layout__form  {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.contact-layout {
  grid-template-rows: auto 1fr;
}

@media (max-width: 1024px) {
  .contact-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .contact-layout__text  { order: 1; }
  .contact-layout__form  { order: 2; }
  .contact-layout__image { order: 3; justify-content: center; }

  .contact-layout__image-inner {
    width: 100%;
  }
}


/* ==========================================================================
   11. SCHEDULE TABLE (Trainingstijden) — CARD LAYOUT ON MOBILE
   Transforms the multi-column training schedule into vertical cards on phones.
   ========================================================================== */

@media (max-width: 768px) {
  .schedule-table-wrapper {
    overflow-x: visible;
    border: none;
    background-color: transparent;
    border-radius: 0;
  }

  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table th,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
  }

  .schedule-table tbody tr {
    background-color: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 14px;
    padding: 18px 20px 8px;
    margin-bottom: 14px;
  }

  .schedule-table tbody tr:hover {
    background-color: var(--color-white);
  }

  .schedule-table tbody td {
    position: relative;
    padding: 10px 0 10px 44%;
    border-bottom: 1px dashed var(--color-divider);
    white-space: normal;
    min-height: 38px;
    font-size: 15px;
    text-align: right;
  }

  .schedule-table tbody td:last-child {
    border-bottom: none;
  }

  .schedule-table tbody td:first-child {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--color-divider);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
  }

  /* Insert day/location labels via data-label attribute, fallback to nth-child */
  .schedule-table tbody td:nth-child(2)::before,
  .schedule-table tbody td:nth-child(3)::before,
  .schedule-table tbody td:nth-child(4)::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text);
    opacity: 0.75;
    max-width: 42%;
    line-height: 1.3;
  }

  .schedule-table tbody td:nth-child(2)::before {
    content: 'Maandag · Stadssporthal';
  }

  .schedule-table tbody td:nth-child(3)::before {
    content: 'Woensdag · Valkstraat';
  }

  .schedule-table tbody td:nth-child(4)::before {
    content: 'Donderdag · Stadssporthal';
  }

  /* Hide rows where all days are empty? Not needed — keeps consistency. */
  .schedule-table__empty {
    color: rgba(77, 77, 77, 0.35);
  }
}


/* ==========================================================================
   12. CONTRIB TABLE (Contributie) — Tighter on small phones
   ========================================================================== */

@media (max-width: 480px) {

  .contrib-table th,
  .contrib-table td {
    padding: 12px 12px;
  }

  .contrib-table thead th {
    font-size: 12px;
    padding: 12px;
  }

  .contrib-table tbody td {
    font-size: 14px;
  }

  .contrib-table tbody td:last-child {
    font-size: 15px;
  }
}


/* ==========================================================================
   13. INFO TABLE — Horizontal scroll hint on mobile
   ========================================================================== */

@media (max-width: 768px) {
  .info-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .info-table {
    min-width: 480px;
  }

  .info-table th,
  .info-table td {
    padding: 12px 14px;
    font-size: 14px;
  }
}


/* ==========================================================================
   14. STANDINGS TABLE (Teams) — Horizontal scroll on narrow phones
   ========================================================================== */

@media (max-width: 480px) {

  .standings-table-wrapper,
  .nbb-standings-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .standings-table {
    min-width: 420px;
  }
}


/* ==========================================================================
   15. FORM CARD (Contact, Aanmelden, Proeftraining) — Reduce padding on mobile
   Targets the inline white-card wrappers around forms (added .form-card hook
   wherever the inline style exists).
   ========================================================================== */

.form-card {
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 40px;
}

@media (max-width: 768px) {
  .form-card {
    padding: 28px 22px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .form__input,
  .form__textarea {
    font-size: 16px;
    /* prevents iOS zoom on focus */
  }

  .form__label {
    font-size: 13px;
  }
}


/* ==========================================================================
   16. MICRO-BREAKPOINT: 380px — Narrow phones (iPhone SE, older Android)
   Targeted polish for components that still feel cramped below 380px.
   ========================================================================== */

@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }

  /* --- Headers shrink a touch more --- */
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 19px;
  }

  h3 {
    font-size: 17px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-hero__title {
    font-size: 26px;
  }

  .hero {
    padding: 140px 0 44px;
    margin: 4px;
    border-radius: 10px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__description {
    font-size: 15px;
  }

  .header {
    top: 4px;
    left: 4px;
    right: 4px;
    border-radius: 10px 10px 0 0;
  }

  .page-hero {
    padding: 140px 0 60px;
    margin: 4px;
    border-radius: 10px;
  }

  .page-hero__title {
    font-size: 30px;
  }

  .section {
    padding: 44px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  /* --- Buttons full-width safety --- */
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  /* --- CTA --- */
  .cta {
    padding: 50px 0 36px;
    margin: 4px;
    border-radius: 10px;
  }

  .cta__title {
    font-size: 22px;
  }

  /* --- Uitslagen --- */
  .uitslagen-section {
    margin: 4px;
    border-radius: 10px;
    padding: 50px 0 36px;
  }

  /* --- About gallery — keep within viewport --- */
  .about-gallery {
    overflow: visible;
  }

  .about-gallery__img--front {
    width: 140px;
    min-width: 130px;
    height: 195px;
  }

  .about-gallery__img--back {
    width: 165px;
    min-width: 150px;
    height: 260px;
    margin-left: -55px;
  }

  .about-gallery__trust {
    margin-top: -45px;
    padding: 12px;
    border-radius: 16px;
  }

  .about-gallery__trust-text {
    font-size: 13px;
  }

  .about-gallery__trust-avatars img {
    width: 28px;
    height: 28px;
  }

  /* --- Footer compact --- */
  .footer__top {
    gap: 32px;
  }

  /* --- Stats compact --- */
  .stats {
    gap: 12px;
  }

  /* --- Sponsor grids — tighter --- */
  .sponsor-grid--overig {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* --- Standings table — smaller logos --- */
  .standings-table__team-logo {
    width: 18px;
    height: 18px;
  }

  /* --- Schedule cards padding --- */
  .schedule-table tbody tr {
    padding: 16px 16px 6px;
  }

  /* --- Form card — minimum padding --- */
  .form-card {
    padding: 20px 16px;
  }
}


/* ==========================================================================
   17. TAP TARGETS & GLOBAL MOBILE POLISH
   Accessibility safety net: ensure interactive targets meet 44px guidance.
   ========================================================================== */

@media (max-width: 768px) {

  /* Prevent images and embeds overflowing horizontally */
  img,
  iframe,
  video {
    max-width: 100%;
    height: auto;
  }

  html {
    overflow-x: clip;
  }

  body {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }

  /* Slide-ins pushed content past the right edge; animate vertically instead */
  .fade-in-left:not(.visible),
  .fade-in-right:not(.visible) {
    transform: translateY(24px);
  }

  /* Ensure form inputs don't trigger iOS zoom */
  .form__input,
  .form__textarea,
  .form__select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px;
  }

  /* Tap targets — minimum 44px height on mobile-nav links */
  .mobile-nav__items>a,
  .mobile-nav__toggle,
  .mobile-nav__sublink {
    min-height: 44px;
  }

  .header__menu-toggle,
  .mobile-nav__close {
    min-width: 44px;
    min-height: 44px;
  }

  /* Footer contact items — wrap nicely */
  .footer__contact-item {
    flex-wrap: wrap;
    word-break: break-word;
  }

  /* Page-hero breadcrumb — wrap on small screens */
  .page-hero__breadcrumb {
    flex-wrap: wrap;
    gap: 6px 8px;
  }
}

/* --- SponsorKliks --- */
@media (max-width: 991px) {
  .sponsorkliks__intro { margin-bottom: 48px; }
  .sponsorkliks__intro .section-title { font-size: 32px; }
  .sponsorkliks__steps { grid-template-columns: 1fr; gap: 16px; }
  .sponsorkliks__step { padding: 28px 24px; }
}

@media (max-width: 767px) {
  .sponsorkliks__intro .section-title { font-size: 27px; }
  .sponsorkliks__note { margin-bottom: 40px; }
  .sponsorkliks__apps-links { flex-direction: column; align-self: stretch; }
  .sponsorkliks__app-link { text-align: center; }
}

/* --- Organisatie --- */
@media (max-width: 991px) {
  .clusters { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .cluster-card { padding: 28px 24px; }
  .organisatie-graphic { margin-top: 40px; }
  .organisatie-bestuur .section-title { font-size: 30px; }
}

@media (max-width: 767px) {
  .organisatie-intro__text { font-size: 16px; }
  .cluster-card__title { font-size: 20px; }
  .organisatie-bestuur .section-title { font-size: 26px; }
}

/* --- Teampagina --- */
@media (max-width: 991px) {
  .team-intro { grid-template-columns: 1fr; gap: 40px; }
  .team-intro__title { font-size: 32px; }
}

@media (max-width: 767px) {
  .team-intro__title { font-size: 27px; }
  .team-intro__actions { gap: 16px; }
}

/* --- Veilige sport --- */
@media (max-width: 991px) {
  .melden-links { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .melden-card { padding: 24px; }
}

/* --- Contact: e-mailadressen --- */
@media (max-width: 991px) {
  .contact-mails { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
}

@media (max-width: 767px) {
  .contact-mails { grid-template-columns: 1fr; }
}

/* --- Veilige sport: vertrouwenspersonen en documenten --- */
@media (max-width: 991px) {
  .clusters--3 { grid-template-columns: 1fr; }
  .vcp-melden { grid-template-columns: 1fr; gap: 40px; }
  .vcp-melden__tekst .section-title { font-size: 30px; }
  .doc-lijst { grid-template-columns: 1fr; margin-top: 40px; }
}

@media (max-width: 767px) {
  .vcp-card { min-width: 0; width: 100%; }
  .vcp-melden__tekst .section-title { font-size: 26px; }
}

/* --- SponsorKliks: live teller --- */
@media (max-width: 991px) {
  .sponsorkliks__live { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Damesteam galerij --- */
@media (max-width: 767px) {
  .dames-galerij { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .dames-galerij img { max-height: 320px; }
}
