/* ============================================================
   EMINENT TRADING SOLUTIONS — RESPONSIVE
   responsive.css  (mobile-first breakpoints)
   ============================================================ */

/* ── Large desktop (1400px+) ── */
@media (min-width: 1400px) {
  :root { --container-max: 1320px; }
}

/* ── Medium-large (≤1100px) ── */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .about-grid,
  .strengths-grid {
    gap: 3rem;
  }
}

/* ── Tablet landscape (≤960px) ── */
@media (max-width: 960px) {
  :root { --space-2xl: 4.5rem; }

  /* Header */
  .main-nav   { display: none; }
  .hamburger  { display: flex; }

  /* Hero */
  .slide-heading { font-size: clamp(1.8rem, 5vw, 2.8rem); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-badge {
    bottom: -1rem;
    right: 1rem;
  }
  .about-content { padding-left: 0; }

  /* Strengths */
  .strengths-grid { grid-template-columns: 1fr; }
  .strengths-visual { order: -1; }

  /* Contact */
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .offices-sidebar { position: static; }
  .contact-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .strip-item:nth-child(even) { border-right: none; }
  .strip-item:last-child { border-right: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet portrait (≤720px) ── */
@media (max-width: 720px) {
  :root {
    --space-xl:  3rem;
    --space-2xl: 3.5rem;
    --header-h:  64px;
  }

  /* Hero (static) — fixed attachment is unreliable on mobile, use scroll */
  .hero-static { background-attachment: scroll; min-height: 88svh; }

  /* Hero */
  .hero-slider { height: 92svh; min-height: 520px; }
  .slide-para  { display: none; }
  .slider-btn  { width: 40px; height: 40px; font-size: 1.1rem; }
  .slider-prev { left: 0.75rem; }
  .slider-next { right: 0.75rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Industries */
  .industries-grid { grid-template-columns: 1fr; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; }

  /* Strengths cards */
  .strengths-cards { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Contact strip */
  .contact-strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .strip-item:last-child { border-bottom: none; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-tagline { max-width: 100%; }

  /* Partners */
  .partners-marquee-wrap::before,
  .partners-marquee-wrap::after { width: 40px; }

  /* Section headings */
  .section-heading { font-size: clamp(1.4rem, 5vw, 2rem); }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
  :root {
    --space-xl:  2.5rem;
    --space-2xl: 3rem;
  }

  /* Logo */
  .logo-name { font-size: 0.92rem; }
  .logo-sub  { display: none; }

  /* Hero */
  .slide-heading { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .slide-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .slide-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Contact hero */
  .contact-hero-heading { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .contact-hero-para    { font-size: 0.95rem; }

  /* Map */
  .map-placeholder iframe { height: 300px; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Scroll top */
  .scroll-top { bottom: 1.25rem; right: 1.25rem; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* About badge */
  .about-badge {
    position: static;
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
  }
  .badge-num { font-size: 1.5rem; }
}

/* ── Very small (≤360px) ── */
@media (max-width: 360px) {
  :root { --space-xl: 2rem; --space-2xl: 2.5rem; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-icon { font-size: 1.1rem; }
  .slide-heading { font-size: 1.4rem; }
}

/* ── Print ── */
@media print {
  .site-header,
  .hero-slider,
  .stats-bar,
  .scroll-top,
  .hamburger,
  .mobile-menu,
  .cta-section,
  .partners-section { display: none; }

  body   { color: #000; background: #fff; }
  a      { color: #000; }
  .section { padding-block: 2rem; }
  .about-grid,
  .strengths-grid { grid-template-columns: 1fr; }
}
