/* ==========================================================================
   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.
   ========================================================================== */

/* ---------- ≥981px — show the icon-only call button once the mobile nav is gone ---------- */
@media (min-width: 981px) {
  .icon-btn.header-call-btn { display: inline-flex; }
}

/* ---------- ≤980px — tablets: mobile nav takes over, 4/3-col grids drop to 2 ---------- */
@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: 0 0 0 30%; background: #fff; flex-direction: column; align-items: stretch;
    padding: 100px 24px 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    z-index: 60; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .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;
  }
  .nav-item.has-dropdown.open .dropdown { display: block; }
  .nav-item.has-dropdown:hover .dropdown { display: none; }
  .main-nav .btn { margin-top: 16px; width: 100%; }
  .hamburger { display: flex; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤940px — hero and contact split stack vertically ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { order: 2; padding: 48px 24px 44px; }
  .hero-media { order: 1; height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) and (orientation: landscape) {
  .hero-media { height: 260px; }
}

/* ---------- ≤900px — about split and footer columns adjust ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ---------- ≤760px — fabrication / waste-management division cards stack ---------- */
@media (max-width: 760px) {
  .division-strip { grid-template-columns: 1fr; }
}

/* ---------- ≤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) {
  .hero-media { height: 240px; }
  .hero-float-card { left: 16px; bottom: 16px; padding: 12px 14px; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 24px; text-align: center; justify-content: center; }
  .cta-banner .cta-actions { justify-content: center; }
  .form-panel { padding: 24px; }
  .map-embed { padding: 20px; }
}

/* ---------- ≤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; }
}
