/* =============================================
   GLOBAL RESPONSIVE FIX
   Prevents horizontal scroll on all screens.
   ============================================= */

/* Nuclear overflow guard */
html, body {
  overflow-x: hidden !important;
  max-width: 100%;
}

/* Every section must be contained — NOT header (it would clip dropdowns) */
section, footer, main, article, aside {
  overflow-x: hidden;
  max-width: 100%;
}

/* Images never overflow */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ── Container fix on all screens ─────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ── Hero section overflow guards ──────────── */
.custom-hero,
.hero,
.hero-apps,
.hero-nexus,
.hero-about,
.hero-products,
.hero-mfg,
.hero-quality,
.hero-gallery,
.hero-contact {
  overflow: hidden;
  max-width: 100%;
}

/* ── Stats Grid - stack properly on small ─── */
@media (max-width: 767px) {
  .stats-grid-unique {
    grid-template-columns: 1fr !important;
  }
  .stat-item-unique {
    border-right: none !important;
    height: auto !important;
    min-height: 280px;
    padding: 2rem 1.5rem !important;
  }
}

/* ── About premium images - no bleed ───────── */
@media (max-width: 767px) {
  .about-images {
    height: 380px !important;
  }
  .about-img-main {
    width: 100% !important;
    position: static !important;
    height: 280px;
  }
  .about-img-secondary {
    display: none;
  }
  .about-experience-badge {
    right: 10px !important;
  }
}

/* ── Products premium grid on mobile ───────── */
@media (max-width: 640px) {
  .prem-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 340px !important;
  }
  .prem-card--large {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .prem-filters {
    flex-wrap: wrap !important;
    width: 100% !important;
    border-radius: 16px !important;
    padding: 8px !important;
    gap: 8px !important;
  }
  .prem-filter {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    text-align: center !important;
    padding: 10px 12px !important;
  }
  .pf-indicator { display: none !important; }
  .prem-filter.active {
    background: var(--color-primary);
    border-radius: 30px;
  }
  .prem-filter.active .pf-label { color: #fff; }
}

/* ── Hero Nexus (Contact) on mobile ─────────── */
@media (max-width: 767px) {
  .hero-nexus-grid,
  .hero-nexus {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-nexus-visual {
    min-height: 350px !important;
    width: 100% !important;
  }
  .nexus-glass-cards {
    padding: 0 1rem !important;
  }
  .nexus-card {
    margin-right: 0 !important;
    width: 100% !important;
  }
  .nexus-arch-base {
    mask-image: linear-gradient(to top, black 50%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%) !important;
  }
}

/* ── Hero About on mobile ──────────────────── */
@media (max-width: 767px) {
  .hero-about-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
  }
  .hero-about-visual {
    width: 90% !important;
    margin: 0 auto !important;
    aspect-ratio: 3/4 !important;
    max-height: 380px !important;
  }
  .about-glass-badge {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: -30px !important;
    width: 80% !important;
    justify-content: center;
  }
  .hero-about-grid .hero-subtitle { justify-content: center; }
  .hero-about-grid p { margin: 0 auto; }
}

/* ── Hero Products on mobile ───────────────── */
@media (max-width: 767px) {
  .hero-products-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .hero-products-visual {
    height: 320px !important;
    width: 100% !important;
  }
  .product-slab-1,
  .product-slab-3 { display: none !important; }
  .product-slab-2 { width: 75% !important; left: 12.5% !important; }
  .product-glass-badge {
    right: 50% !important;
    transform: translateX(50%) !important;
    bottom: -10px !important;
  }
  .hero-products-grid .hero-subtitle { justify-content: center; }
  .hero-products-grid p { margin: 0 auto; }
}

/* ── Hero Apps on mobile ───────────────────── */
@media (max-width: 767px) {
  .hero-apps-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-apps-left {
    padding: 5rem 1.5rem 2rem !important;
    text-align: center;
  }
  .hero-apps-left .hero-subtitle { justify-content: center; }
  .hero-apps-left p { margin: 0 auto; }
  .hero-apps-right {
    height: 320px !important;
    width: 100% !important;
  }
  .apps-cinematic-arch {
    width: 100% !important;
    border-radius: 200px 200px 0 0 !important;
    top: 20px !important;
  }
  .apps-cinematic-arch::after {
    border-radius: 200px 200px 0 0 !important;
  }
  .apps-glass-link {
    top: 20px !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
  }
}

/* ── Hero Manufacturing on mobile ─────────── */
@media (max-width: 767px) {
  .hero-mfg-visual {
    aspect-ratio: 4/3 !important;
    margin-top: 4rem !important;
  }
  .mfg-badge-1 { top: -30px !important; left: 10px !important; }
  .mfg-badge-2 { bottom: -30px !important; right: 10px !important; }
}

/* ── Gallery on mobile ──────────────────────── */
@media (max-width: 767px) {
  .hero-gallery .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .hero-gallery .hero-subtitle { justify-content: center; }
  .hero-gallery-text p { margin: 0 auto; }
  .gallery-exhibition {
    height: 40vh !important;
    transform: none !important;
    overflow: hidden !important;
  }
  .gallery-column:nth-child(even) { margin-top: 0 !important; }
}

/* ── Contact glass on mobile ───────────────── */
@media (max-width: 767px) {
  .contact-colossal-glass {
    padding: 2rem 1.25rem !important;
    border-radius: 12px !important;
  }
  .contact-luxury-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .contact-luxury-item {
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  .contact-luxury-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .hero-contact-container { padding: 0 1rem !important; }
}

/* ── Footer on mobile ───────────────────────── */
@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ── Accordion / flex sections ──────────────── */
@media (max-width: 767px) {
  .inspiration-accordion,
  .excellence-accordion {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .insp-panel,
  .exc-panel {
    height: 220px !important;
    flex: none !important;
    min-height: 0 !important;
  }
  .insp-panel:hover,
  .exc-panel:hover { flex: none !important; }
  .insp-content { opacity: 1 !important; transform: none !important; }
}

/* ── Typography clamp on small screens ─────── */
@media (max-width: 480px) {
  .custom-hero h1 { font-size: clamp(2rem, 9vw, 3.5rem) !important; }
  .prem-title { font-size: clamp(1.8rem, 8vw, 3rem) !important; }
  .stat-num-massive { font-size: clamp(3rem, 12vw, 5rem) !important; }
}
