/* ==========================================================================
   AUTHENTIC SHAOLIN KUNG FU CLUB · MUMBAI
   Comprehensive Responsive Stylesheet (media.css)
   Handles all device breakpoints, orientations, and touch screens.
   ========================================================================== */

/* ─── Large Displays & High-Res Monitors (<= 1440px) ─────────────────────── */
@media screen and (max-width: 1440px) {
  :root {
    --gutter: clamp(24px, 4.5vw, 64px);
  }
  .hero {
    gap: clamp(30px, 4vw, 60px);
    padding: 56px var(--gutter) 90px;
  }
  .hero h1 {
    font-size: clamp(72px, 8.5vw, 130px);
  }
}

/* ─── Laptops & Small Desktops (<= 1200px) ────────────────────────────────── */
@media screen and (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    min-height: 640px;
    padding-bottom: 80px;
  }
  .hero-visual {
    min-height: 520px;
    margin-right: 0;
  }
  .masters-dual-grid {
    gap: 24px;
  }
  .master-card {
    padding: 32px 26px;
  }
  .master-photo-wrap {
    height: 330px;
    margin: -32px -26px 24px -26px;
  }
  .training-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .program-visual {
    height: 380px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .gallery-item {
    height: 300px;
  }
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .nainital-spotlight {
    gap: 24px;
    padding: 30px;
  }
  .contact {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}

/* ─── Tablets Landscape (<= 1024px) ───────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  /* Navigation switch */
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .header-cta {
    display: none;
  }
  .header-right {
    gap: 10px;
  }

  /* Section containers */
  .section-shell {
    padding: 80px var(--gutter);
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
  }
  .parent-org-badge {
    width: 100%;
    max-width: 100%;
  }

  /* Hero Section stacks */
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 70px;
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero h1 {
    font-size: clamp(64px, 12vw, 100px);
    margin: 20px 0;
  }
  .hero-visual {
    min-height: 460px;
    max-height: 520px;
    margin-right: 0;
  }
  .hero-side-label {
    display: none;
  }
  .scroll-cue {
    display: none;
  }

  /* Masters Dual Grid */
  .masters-dual-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .master-photo-wrap {
    height: 340px;
  }

  /* Nainital Spotlight */
  .nainital-spotlight {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 22px;
  }
  .nainital-image-wrap {
    width: 100%;
    min-width: 100%;
    height: 240px;
  }
  .nainital-content p {
    max-width: 100%;
  }
  .nainital-cta {
    width: 100%;
  }
  .nainital-cta .button {
    width: 100%;
    justify-content: center;
  }

  /* Locations */
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .contact-panel > img {
    width: 42px;
    height: 42px;
  }
}

/* ─── Tablets Portrait & Mobile Devices (<= 768px) ───────────────────────── */
@media screen and (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  /* Header */
  .site-header {
    height: 72px;
    padding: 0 var(--gutter);
    gap: 12px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 44px;
    height: 44px;
    padding: 2px;
  }
  .brand-text {
    max-width: calc(100vw - 160px);
  }
  .brand-name {
    font-size: clamp(13px, 3.8vw, 17px);
    line-height: 1.15;
    white-space: normal;
  }
  .brand-sub {
    display: none;
  }

  /* WhatsApp button compact */
  .whatsapp-btn-compact {
    padding: 8px 10px;
    gap: 0;
  }
  .whatsapp-btn-compact span {
    display: none;
  }

  /* Mobile Dropdown Navigation */
  .mobile-nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--background);
    padding: 24px var(--gutter) 30px;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 16px 36px rgba(15, 34, 26, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    z-index: 100;
  }
  .mobile-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-whatsapp {
    color: #1b6d39 !important;
    font-weight: 700;
    font-size: 16px;
    padding-top: 14px;
    border-top: 2px solid var(--gold);
  }

  /* Intro Fire Overlay */
  .intro-logo {
    width: 135px;
    height: 135px;
  }
  .intro-title {
    margin-top: 60px;
    gap: 2px;
  }
  .intro-title-line {
    font-size: clamp(18px, 5vw, 24px);
    letter-spacing: 0.07em;
  }
  .intro-subtitle {
    font-size: 10px;
    letter-spacing: 0.24em;
    margin-top: 6px;
  }
  .intro-affiliation {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    margin-top: 8px;
    max-width: 90%;
    line-height: 1.4;
  }
  .skip-intro {
    bottom: 24px;
    right: var(--gutter);
    font-size: 13px;
    padding: 8px 0;
    gap: 12px;
  }
  .skip-intro > span {
    font-size: 18px;
  }

  /* Hero Section */
  .hero {
    padding: 34px var(--gutter) 52px;
    gap: 26px;
  }
  .hero .eyebrow {
    font-size: 11px;
    gap: 10px;
  }
  .hero h1 {
    font-size: clamp(48px, 13.5vw, 80px);
    line-height: 0.95;
    margin: 16px 0;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero-actions {
    gap: 14px;
    margin-top: 24px;
  }
  .hero-actions .button {
    padding: 14px 20px;
    min-height: 50px;
    font-size: 13px;
  }
  .hero-visual {
    min-height: 360px;
    max-height: 420px;
  }

  /* Values Ribbon Touch Carousel */
  .values-strip {
    padding: 18px var(--gutter);
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .values-strip::-webkit-scrollbar {
    display: none;
  }
  .values-strip > span {
    font-size: 20px;
    flex-shrink: 0;
  }
  .values-strip i {
    font-size: 16px;
    flex-shrink: 0;
  }

  /* Section Shell & Headings */
  .section-shell {
    padding: 54px var(--gutter);
  }
  .section-heading h2 {
    font-size: clamp(34px, 8.5vw, 54px);
    line-height: 1.05;
  }
  .section-heading > p {
    font-size: 14px;
  }

  /* Masters Dual Cards */
  .master-card {
    padding: 26px 20px;
  }
  .master-photo-wrap {
    height: 280px;
    margin: -26px -20px 20px -20px;
  }
  .master-card h3 {
    font-size: 28px;
  }
  .master-subheading {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .master-card-body p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .master-highlights {
    gap: 6px;
    margin-top: 18px;
  }
  .master-highlights span {
    font-size: 11px;
    padding: 4px 8px;
  }
  .shifu-social-callout {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    margin-top: 18px;
    padding-top: 14px;
  }

  /* Training Programs */
  .program-visual {
    height: 260px;
  }
  .program-caption strong {
    font-size: 32px;
    margin-top: 8px;
  }
  .programs .program summary {
    padding: 18px 20px;
    gap: 14px;
  }
  .program-name {
    font-size: 22px;
  }
  .program-name small {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .program-content {
    margin: 0 16px 22px 42px;
  }
  .program-content > p {
    font-size: 14px;
  }
  .class-locations-list {
    font-size: 13px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gallery-item {
    height: 260px;
  }
  .gallery-zoom-icon {
    display: flex;
    opacity: 0.85;
  }
  .modal-shell {
    width: 95%;
  }

  /* Philosophy / Approach */
  .approach {
    min-height: auto;
  }
  .approach-content {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .approach h2 {
    font-size: clamp(34px, 8.5vw, 56px);
    margin: 18px 0;
  }
  .approach-content > p:not(.eyebrow) {
    font-size: 15px;
  }
  .approach-values {
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    padding-top: 18px;
  }

  /* Locations */
  .location-card {
    padding: 24px 20px;
  }
  .location-card h3 {
    font-size: 26px;
  }
  .location-card .button {
    width: 100%;
    justify-content: center;
  }

  /* Contact & Social */
  .contact {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 38px;
  }
  .contact h2 {
    font-size: clamp(36px, 9.5vw, 64px);
    margin: 16px 0 18px;
  }
  .contact-panel {
    padding: 26px 20px;
  }
  .contact-panel > img {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .contact-item > strong {
    font-size: 18px;
  }
  .social-channels {
    margin-top: 28px;
    padding-top: 20px;
  }
  .social-list {
    gap: 8px;
  }
  .social-icon-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Site Footer */
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 28px var(--gutter);
  }
  .site-footer .brand {
    justify-content: center;
  }
  .site-footer .brand-name {
    font-size: 16px;
    white-space: normal;
  }
  .footer-handles {
    flex-direction: column;
    gap: 6px;
  }
  .back-top {
    font-size: 11px;
    margin-top: 4px;
  }
}

/* ─── Compact Mobile Phones (<= 480px) ────────────────────────────────────── */
@media screen and (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  /* Header */
  .site-header {
    height: 66px;
    gap: 8px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: clamp(12px, 3.4vw, 15px);
  }

  /* Intro Overlay */
  .intro-logo {
    width: 112px;
    height: 112px;
  }
  .intro-title {
    margin-top: 46px;
  }
  .intro-title-line {
    font-size: clamp(16px, 4.6vw, 20px);
  }
  .intro-subtitle {
    font-size: 9.5px;
  }
  .intro-affiliation {
    font-size: 9px;
  }

  /* Hero Section */
  .hero {
    padding: 26px var(--gutter) 42px;
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .hero-actions .text-link {
    justify-content: center;
  }
  .hero-visual {
    min-height: 310px;
    max-height: 370px;
  }
  .hero-footnote {
    font-size: 12px;
    gap: 12px;
    margin-top: 26px;
  }

  /* Lineage & Masters */
  .master-card {
    padding: 20px 16px;
  }
  .master-photo-wrap {
    height: 240px;
    margin: -20px -16px 16px -16px;
  }
  .master-card h3 {
    font-size: 24px;
  }
  .section-heading h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  /* Nainital */
  .nainital-spotlight {
    padding: 20px 16px;
  }
  .nainital-spotlight h3 {
    font-size: 20px;
  }
  .nainital-image-wrap {
    height: 180px;
  }

  /* Training */
  .program-name {
    font-size: 19px;
  }
  .program-content {
    margin: 0 8px 18px 24px;
  }
  .program-visual {
    height: 220px;
  }

  /* Gallery */
  .gallery-item {
    height: 220px;
  }

  /* Locations */
  .location-card {
    padding: 20px 16px;
  }
  .location-card h3 {
    font-size: 22px;
  }

  /* Contact */
  .contact h2 {
    font-size: clamp(30px, 9vw, 46px);
  }
  .contact-panel {
    padding: 20px 16px;
  }
  .contact-item > strong {
    font-size: 17px;
  }
  .social-icon-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Ultra-Small Phones & Foldables (<= 360px) ──────────────────────────── */
@media screen and (max-width: 360px) {
  :root {
    --gutter: 12px;
  }
  .brand-name {
    font-size: 11.5px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .intro-logo {
    width: 95px;
    height: 95px;
  }
  .intro-title-line {
    font-size: 15px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .master-card h3 {
    font-size: 21px;
  }
  .program-name {
    font-size: 17px;
  }
}

/* ─── Short Screen Heights / Landscape Mobile (max-height: 540px) ────────── */
@media screen and (max-height: 540px) and (orientation: landscape) {
  .intro-logo {
    width: 85px;
    height: 85px;
  }
  .intro-title {
    margin-top: 28px;
    gap: 1px;
  }
  .intro-title-line {
    font-size: 15px;
  }
  .intro-subtitle {
    font-size: 8.5px;
    margin-top: 3px;
  }
  .intro-affiliation {
    display: none;
  }
  .skip-intro {
    bottom: 12px;
    font-size: 12px;
    padding: 4px 0;
  }
  .mobile-nav {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

/* ─── Touch Device Feedback (@media hover: none) ──────────────────────────── */
@media (hover: none) {
  .gallery-zoom-icon {
    display: flex;
    opacity: 0.85;
  }
  .button:active,
  .social-icon-btn:active,
  .whatsapp-btn-compact:active {
    transform: scale(0.97);
  }
}

