/**
 * Acme Football Academy - Responsive Breakpoints
 */

/* Desktops & Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  :root {
    --mobile-header-height: 82px;
  }

  /* 1. Fixed Site Header on vertical scroll in mobile view */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: var(--header-shadow, 0 4px 15px rgba(0, 0, 0, 0.1)) !important;
    background: var(--header-bg) !important;
  }

  .navbar-inner {
    padding: 6px 0 !important;
    min-height: var(--mobile-header-height, 82px) !important;
    height: var(--mobile-header-height, 82px) !important;
  }

  /* Reorder Topbar below Site Header in Mobile View */
  .site-header-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .site-header-group .site-header {
    order: 1;
  }

  .site-header-group .topbar {
    order: 2;
    margin-top: var(--mobile-header-height, 82px) !important;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 6px 0;
  }

  /* 2. Technical Panel on About Page fits mobile screen */
  .technical-panel-card {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 18px !important;
  }

  /* 3. Nurturing Football Passion on Club Page fits mobile screen */
  .nurturing-passion-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .carousel-viewport {
    min-height: 520px;
  }

  .carousel-slide {
    min-height: 520px;
  }

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

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

  .timeline-track::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item .timeline-marker {
    left: 10px !important;
    right: auto !important;
  }
}

/* Small Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .topbar-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .topbar-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
  }

  .topbar-socials {
    width: auto;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    gap: 8px;
  }

  .carousel-viewport {
    min-height: 480px;
  }

  .carousel-slide {
    min-height: 480px;
  }

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

  .carousel-nav-btn.prev {
    left: 12px;
  }

  .carousel-nav-btn.next {
    right: 12px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-desc {
    font-size: 0.95rem;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .form-group {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .form-group.full-width {
    grid-column: span 1 !important;
  }

  .registration-form-card {
    padding: 24px 16px !important;
    border-radius: var(--radius-md) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .form-control, select.form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
  }

  select.form-control {
    padding-right: 36px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Head Coach Spotlight on Mobile (Image on TOP, text spans WHOLE WIDTH) */
  .head-coach-spotlight {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 24px 18px !important;
    gap: 18px !important;
  }

  .head-coach-media {
    width: 150px !important;
    height: 170px !important;
    margin: 0 auto !important;
    order: 1 !important; /* Image on TOP */
  }

  .head-coach-body {
    width: 100% !important; /* Text container spans WHOLE WIDTH */
    order: 2 !important;
    text-align: center !important;
  }

  .head-coach-badges {
    justify-content: center !important;
    width: 100% !important;
  }

  .head-coach-desc {
    width: 100% !important; /* Full width paragraph */
    font-size: 0.95rem !important;
    text-align: left !important;
    line-height: 1.65 !important;
  }

  /* Coaches Grid on Tablet & Mobile */
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .coach-card {
    width: 100% !important;
    padding: 16px 14px 20px 14px !important;
  }

  /* Floating Action Buttons on Mobile (WhatsApp + Quick Register) */
  .floating-actions-container,
  .whatsapp-float-container {
    bottom: 16px !important;
    right: 16px !important;
    gap: 10px !important;
  }

  .whatsapp-float-btn,
  .register-float-btn {
    width: 48px !important;
    height: 48px !important;
  }

  .whatsapp-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .register-float-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .whatsapp-tooltip,
  .register-tooltip {
    display: none !important;
  }

  .back-to-top-btn {
    bottom: 136px !important;
    right: 21px !important;
    width: 38px !important;
    height: 38px !important;
  }

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

  .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --mobile-header-height: 74px;
  }

  .navbar-inner {
    padding: 4px 0 !important;
    min-height: var(--mobile-header-height, 74px) !important;
    height: var(--mobile-header-height, 74px) !important;
  }

  .site-header-group .topbar {
    margin-top: var(--mobile-header-height, 74px) !important;
  }

  .topbar-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .topbar-contact {
    justify-content: center;
    gap: 8px;
    font-size: 0.74rem;
  }

  .topbar-socials {
    justify-content: center;
  }

  .technical-panel-card {
    padding: 18px 14px !important;
  }

  .technical-panel-title {
    font-size: 1.35rem !important;
  }

  .technical-panel-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .technical-panel-card .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.88rem !important;
    padding: 12px 14px !important;
  }

  .nurturing-passion-grid {
    gap: 22px !important;
  }

  .registration-form-card {
    padding: 20px 12px !important;
  }

  .brand-crest {
    width: 44px;
    height: 44px;
  }

  .brand-logo-img {
    width: 72px;
    height: 72px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .captcha-image {
    max-width: 200px;
    width: 100%;
  }

  .captcha-input {
    max-width: 100%;
  }

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

  .slide-actions {
    flex-direction: column;
    width: 100%;
  }

  .slide-actions .btn {
    width: 100%;
  }

  .match-body {
    flex-direction: column;
    gap: 14px;
  }

  .match-score-pill {
    order: 2;
  }

  .coaches-grid {
    grid-template-columns: 1fr !important;
  }
}
