/*
  Photons FC responsive layer
  ---------------------------
  This file intentionally contains only tablet/mobile overrides.
  The existing desktop stylesheet (style.css) is left unchanged.
*/

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }

  .footer-v7-main {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-v7 nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  /* Header / mobile navigation */
  .site-header-v7 .nav-wrap {
    height: 64px;
    gap: 10px;
  }
  .site-header-v7 .brand { gap: 9px; }
  .site-header-v7 .brand-logo {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }
  .site-header-v7 .brand strong { font-size: 1rem; }
  .site-header-v7 .brand small {
    margin-top: 5px;
    font-size: .45rem;
    letter-spacing: .2em;
  }
  .site-header-v7 .nav-toggle {
    display: block;
    margin-left: auto;
    cursor: pointer;
  }
  .site-header-v7 .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 6px 18px 14px;
    background: #04182d;
    box-shadow: 0 16px 28px rgba(0,0,0,.2);
  }
  .site-header-v7 .site-nav.open { display: flex; }
  .site-header-v7 .site-nav a {
    padding: 13px 0;
    font-size: .73rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .site-header-v7 .site-nav a:last-child { border-bottom: 0; }
  .header-instagram { display: none; }

  /* Approved homepage artwork, rearranged from the same banner for mobile. */
  .hero-banner-v12 { line-height: 0; }
  .hero-banner-v12 .hero-banner-image {
    content: url("../images/home-hero-banner-mobile.webp");
    width: 100%;
    height: auto;
  }

  /* Homepage spacing and horizontal carousels */
  .home-section-gap { height: 12px; }
  .video-section-v7 { padding: 26px 0 42px; }
  .video-heading-row {
    align-items: flex-start;
    gap: 14px;
  }
  .video-heading-row h2 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .video-heading-row p { font-size: .84rem; }
  .video-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .video-tab {
    min-height: 44px;
    padding: 10px 8px;
    font-size: .69rem;
  }
  .video-tab span { margin-left: 4px; }
  .video-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1px 8px;
  }
  .video-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .video-thumb { height: 165px; }
  .video-scroll-controls { display: none; }

  .home-tournaments-v7 { padding: 42px 0 46px; }
  .home-tournaments-v7 .section-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .tournament-home-grid-v7 {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .tournament-tile-v7 {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }

  .home-about-v7 { padding: 42px 0; }
  .home-about-v7-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-about-v7-image img { height: auto; aspect-ratio: 4/3; }
  .home-values-v7 { gap: 12px 18px; }

  .home-sponsors-v7 { padding: 36px 0 30px; }
  .sponsor-grid-v7 { grid-template-columns: 1fr; }
  .sponsor-card-v7 { grid-template-columns: 105px 1fr; }
  .follow-card-v7 { grid-template-columns: 40px 1fr; }
  .follow-card-v7 b { grid-column: 2; justify-self: start; }

  /* Inner pages */
  body:not(.home-v7) .page-hero { padding: 56px 0 52px; }
  body:not(.home-v7) .page-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.45rem) !important;
  }
  .split-section,
  .contact-grid,
  .training-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .split-section { padding: 58px 0; }
  .split-section img { width: 100%; }
  .value-cards { grid-template-columns: 1fr 1fr; }
  .gallery-section { padding: 58px 0; }
  .photo-grid { grid-template-columns: 1fr; }

  /* Squad */
  .squad-hero { min-height: 360px; }
  .squad-hero-media img { object-position: 57% center; }
  .squad-hero-content { padding: 150px 0 42px; }
  .squad-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem) !important;
  }
  .squad-section { padding: 58px 0 68px; }
  .squad-heading { display: block; }
  .squad-heading > p { margin-top: 12px; }
  .squad-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
  }
  .squad-card-meta {
    align-items: flex-start;
    padding: 10px;
  }
  .squad-card-meta strong {
    font-size: .68rem;
    line-height: 1.2;
  }
  .position-pill { font-size: .52rem; padding: 4px 6px; }
  .training-section { padding: 58px 0; }

  /* Tournament page */
  .tournaments-section { padding: 58px 0 70px; }
  .tournament-heading { display: block; margin-bottom: 28px; }
  .tournament-heading > p { margin-top: 12px; }
  .tournament-card summary {
    grid-template-columns: 82px minmax(0,1fr) 30px;
    gap: 11px;
    padding: 10px;
  }
  .tournament-thumb { height: 82px; }
  .tournament-summary-copy { min-width: 0; }
  .tournament-summary-copy h3 {
    font-size: 1.12rem;
    line-height: 1.1;
  }
  .tournament-summary-copy p {
    font-size: .72rem;
    line-height: 1.3;
  }
  .tournament-level,
  .achievement {
    font-size: .5rem;
    padding: 0 6px;
  }
  .expand-icon { width: 28px; height: 28px; }
  .tournament-details { padding: 0 12px 16px; }
  .match-row {
    grid-template-columns: minmax(0,1fr) 50px 28px;
    gap: 7px;
  }
  .match-stage {
    grid-column: 1 / -1;
    margin-top: 5px;
  }
  .match-teams { min-width: 0; }
  .match-score { white-space: nowrap; }

  /* Contact */
  .contact-grid { padding-top: 52px; padding-bottom: 60px; }
  .demo-form { padding: 20px; }

  /* Footer */
  .footer-v7 { padding-top: 22px; }
  .footer-v7-main {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .footer-v7 nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
  }
  .footer-v7 .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .container { width: min(var(--max), calc(100% - 24px)); }

  .video-card { flex-basis: 90%; }
  .tournament-tile-v7 { flex-basis: 84%; }

  .value-cards { grid-template-columns: 1fr; }

  .sponsor-card-v7 {
    grid-template-columns: 92px 1fr;
    padding: 12px;
  }

  .squad-grid { gap: 9px; }
  .squad-card-meta { gap: 5px; }
  .squad-card-meta strong { font-size: .63rem; }
  .position-pill { font-size: .49rem; }

  .tournament-card summary {
    grid-template-columns: 70px minmax(0,1fr) 26px;
    gap: 9px;
  }
  .tournament-thumb { height: 70px; }
  .tournament-summary-copy h3 { font-size: 1rem; }
  .tournament-meta { flex-wrap: wrap; }

  .demo-form { padding: 16px; }
}
