/* =========================================================
   VIKASH DANCE ACADEMY — Responsive Styles
   Loaded after style.css
   ========================================================= */

/* ---------- Large laptops / small desktops ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 9px; font-size: 13px; }
  .brand-text strong { font-size: 19px; }
  .hero-inner { gap: 36px; }
  .hero-image-wrap img { height: 470px; }
  .about-grid { gap: 50px; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablets & small laptops ---------- */
@media (max-width: 992px) {
  .section { padding: 80px 0; }
  .header-inner { min-height: 74px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-mark img { width: 38px; height: 38px; }

  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .join-btn { padding: 11px 18px; font-size: 14px; }
  .main-nav {
    position: fixed; top: 74px; left: 0; right: 0; z-index: 999;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 14px 24px 26px; margin: 0; max-height: calc(100vh - 74px); overflow-y: auto;
    transform: translateY(-130%); opacity: 0; visibility: hidden;
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 15px; border-radius: 10px; }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active { background: var(--purple-light); color: var(--purple); }
  .has-dropdown .dropdown {
    position: static; display: none; min-width: 0; margin: 6px 0 10px; padding: 6px 0 6px 14px;
    box-shadow: none; border: 0; border-left: 2px solid var(--purple-light); border-radius: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .mobile-only { display: block; margin-top: 10px; }
  .mobile-only .btn { width: 100%; }

  .hero { padding-top: 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-bottom: 50px; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-highlights { grid-template-columns: 1fr; gap: 14px; padding-bottom: 60px; }

  .class-grid, .fitness-grid, .choreo-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .about-copy { text-align: center; }
  .feature-grid { max-width: 540px; margin-left: auto; margin-right: auto; text-align: left; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .testimonial-card { flex: 0 0 calc((100% - 24px) / 2); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* ---------- Large phones / small tablets ---------- */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p { font-size: 15px; }

  .hero h1 { font-size: 36px; }
  .hero-tagline { font-size: 21px; }
  .hero-desc { font-size: 15px; }
  .hero-image-wrap img { height: 400px; }
  .hero-proof { gap: 16px; }
  .proof-item strong { font-size: 22px; }
  .proof-item span { font-size: 11px; }
  .float-badge { padding: 9px 12px; }
  .float-badge .badge-icon { width: 32px; height: 32px; font-size: 14px; }
  .float-badge strong { font-size: 11px; }
  .float-badge small { font-size: 10px; }
  .badge-top { left: -6px; }
  .badge-bottom { right: -6px; }

  .class-grid, .fitness-grid, .choreo-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-image, .fitness-img, .choreo-img { height: 260px; }
  .card-body p { min-height: 0; }

  .about-img-main img { height: 340px; }
  .about-experience { width: 100px; height: 100px; left: -10px; }
  .about-experience strong { font-size: 26px; }
  .about-img-small { width: 50%; }
  .about-img-small img { height: 150px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 12px; }
  .gallery-large { grid-column: span 2; grid-row: span 2; }
  .testimonial-card { flex: 0 0 100%; }
  .quote { min-height: 0; }

  .events-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .event-img { height: 170px; }
  .event-body p { min-height: 0; }

  .contact-info, .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .btn, .whatsapp-btn { width: 100%; }
  .whatsapp-btn { justify-content: center; }

  .cta-section { padding: 76px 0; }
  .cta-inner p { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lightbox-content img { max-height: 62vh; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---------- Phones ---------- */
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .brand-text strong { font-size: 17px; letter-spacing: 0.1em; }
  .brand-text span { font-size: 9px; letter-spacing: 0.16em; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 35px; height: 35px; }
  .join-btn { display: none; }
  .nav-toggle { width: 42px; height: 42px; }
  .main-nav { top: 68px; max-height: calc(100vh - 68px); padding: 12px 16px 24px; }

  .hero { padding-top: 36px; }
  .hero h1 { font-size: 30px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.1em; padding: 7px 12px; margin-bottom: 16px; }
  .hero-tagline { font-size: 19px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-image-wrap { padding: 10px; }
  .hero-image-wrap img { height: 320px; border-radius: 20px 20px 70px 20px; }
  .hero-image-wrap::before { border-radius: 26px 26px 80px 26px; }
  .hero-image-frame { inset: 20px -8px -8px 20px; border-radius: 20px 20px 70px 20px; }
  .float-badge { display: none; }
  .play-note { width: 44px; height: 44px; font-size: 16px; }
  .hero-proof { gap: 12px; }
  .hero-proof .divider { height: 28px; }
  .proof-item strong { font-size: 19px; }
  .section-heading h2 { font-size: 28px; }

  .about-experience { width: 82px; height: 82px; }
  .about-experience strong { font-size: 22px; }
  .about-experience span { font-size: 9px; }
  .feature-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-auto-rows: 140px; gap: 8px; }
  .gallery-item figcaption { font-size: 11px; left: 10px; bottom: 10px; }

  .events-grid { grid-template-columns: 1fr; }
  .event-img { height: 210px; }
  .contact-info, .contact-form { padding: 20px; }
  .map-placeholder { height: 150px; }

  .cta-inner h2 { font-size: 30px; }
  .cta-icon { width: 54px; height: 54px; font-size: 21px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-controls { gap: 12px; }
  .modal-body { padding: 22px; }
  .lightbox { padding: 56px 12px 70px; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .hero h1 { font-size: 27px; }
  .hero-image-wrap img { height: 280px; }
  .gallery-grid { grid-auto-rows: 120px; }
  .section-tag { font-size: 10px; padding: 6px 11px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .main-nav { top: 60px; }
  .hero-image-wrap img { height: 300px; }
}

/* ---------- Premium editorial system ---------- */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .ghost-word { font-size: 180px; bottom: -2%; }
}
@media (max-width: 768px) {
  .marquee span { font-size: 10px; letter-spacing: 0.22em; gap: 20px; padding-right: 20px; }
  .ghost-word { font-size: 120px; }
  .about-ghost { font-size: 74px; top: -24px; }
  .cta-ghost { display: none; }
  .stats-band { padding: 40px 0; }
  .stat strong { font-size: 38px; }
  .section-heading::before { font-size: 10px; letter-spacing: 0.22em; }
}
@media (max-width: 520px) {
  .stats-grid { gap: 22px 0; }
  .stat { padding: 0 8px; }
  .stat strong { font-size: 32px; }
  .stat strong span { font-size: 18px; }
  .stat p { font-size: 9px; letter-spacing: 0.08em; }
  .ghost-word { font-size: 92px; }
  .about-ghost { font-size: 56px; }
  .card-image::after { left: 14px; bottom: 14px; font-size: 9px; padding: 8px 12px; }
}
