/* ==========================================================================
   Mollika Trading LLC — Responsive Stylesheet
   Every breakpoint / adaptive rule for the site lives in this file.
   style.css holds base (desktop) styles only — load this file after it.
   Organized desktop-first (max-width), largest breakpoint to smallest.
   ========================================================================== */

/* ---------- ≤1180px — not enough room either side of the centered logo: collapse the
   split nav into a single off-canvas menu triggered by the hamburger ---------- */
@media (max-width: 1180px) {
  .main-nav-desktop { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions > .btn { display: none; }

  .main-nav-mobile {
    display: flex;
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 380px; background: #fff; flex-direction: column; align-items: stretch;
    padding: 100px 24px 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    z-index: 60; box-shadow: var(--shadow-lg);
  }
  .main-nav-mobile.open { transform: translateX(0); }
  .main-nav-mobile > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav-mobile .nav-item.has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    display: none; padding: 4px 0 4px 14px;
  }
  .main-nav-mobile .nav-item.has-dropdown.open .dropdown { display: block; }
  .main-nav-mobile .d-icon { display: none; }
  .main-nav-mobile .btn { margin-top: 16px; width: 100%; }
  .hamburger { display: flex; }
}

/* ---------- ≤980px — tablets: address is too long for the remaining width, 4/3-col card grids drop to 2 ---------- */
@media (max-width: 980px) {
  .topbar-item:first-child { display: none; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .work-flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .work-flow::before { display: none; }
}

/* ---------- ≤940px — hero shortens a little, contact split stacks vertically ---------- */
@media (max-width: 940px) {
  .hero-grid, .hero-content { min-height: 480px; }
  .hero-content { padding: 48px 24px 44px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) and (orientation: landscape) {
  .hero-grid, .hero-content { min-height: 380px; }
}

/* ---------- ≤900px — about split and footer columns adjust ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid nav[aria-label] { grid-column: span 1; }
  .footer-brand .logo { height: 84px; }
}

/* ---------- ≤768px — tighter section rhythm once space is limited ---------- */
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ---------- ≤760px — fabrication / waste-management division cards stack; topbar drops
   (redundant with the contact info already in the mobile menu drawer and footer) ---------- */
@media (max-width: 760px) {
  .division-strip { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

/* ---------- ≤620px — remaining 2/3/4-col card grids drop to a single column ---------- */
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-pillar { min-height: 0; }
}

/* ---------- ≤560px — phones ---------- */
@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .site-header.scrolled { --header-h: 64px; }
  .brand .logo { height: 52px; }
  .site-header.scrolled .brand .logo { height: 42px; }
  .footer-brand .logo { height: 64px; }
  .hero-grid, .hero-content { min-height: 420px; }
  .hero-float-card { right: 16px; bottom: 16px; padding: 12px 14px; }
  .process { grid-template-columns: 1fr; }
  .work-flow { grid-template-columns: 1fr; row-gap: 30px; }
  .work-step { display: flex; align-items: flex-start; gap: 18px; text-align: left; padding: 0; }
  .work-step-icon { margin: 0; flex: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .cta-banner { padding: 32px 24px; text-align: center; justify-content: center; }
  .cta-banner .cta-actions { justify-content: center; }
  .form-panel { padding: 24px; }
  .map-embed-frame { height: 280px; }
  .map-embed-footer { padding: 16px 20px; justify-content: center; text-align: center; }

  .lightbox { padding: 0; }
  .lightbox-content { max-width: 100vw; max-height: 100vh; }
  .lightbox-content img { max-height: 62vh; border-radius: 0; }
  .lightbox-close, .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-close i, .lightbox-nav i { font-size: 18px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-content figcaption { padding: 0 52px; }
}

/* ---------- ≤400px — very small phones ---------- */
@media (max-width: 400px) {
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-cta .btn { width: 100%; }
  .step { padding: 22px 16px 16px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .whatsapp-float, .back-to-top, .site-footer { display: none !important; }
}
