/* =============================================================
   VERTEX POWER SOLUTIONS — RESPONSIVE STYLES (Mobile-First Overrides)
   ============================================================= */

/* ============ LARGE DESKTOP (>1440px) ============ */
@media (min-width: 1441px) {
  :root { --container-width: 1360px; }
}

/* ============ LAPTOP / SMALL DESKTOP (≤1200px) ============ */
@media (max-width: 1200px) {
  .nav-list { gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-us-inner { grid-template-columns: 1.2fr 0.8fr; }
}

/* ============ TABLET (≤1024px) ============ */
@media (max-width: 1024px) {
  .header-actions .btn-header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: var(--space-lg); text-align: left; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-tags { justify-content: flex-start; }

  .about-inner { display: flex; flex-direction: column; }
  .about-content { display: contents; }
  .about-content .section-tag { order: 1; text-align: center; }
  .about-content .section-title { order: 2; text-align: center; }
  .about-media { order: 3; max-width: 100%; margin: 1rem auto var(--space-xl); position: relative; }
  .about-content .about-text { order: 4; }
  .about-columns { order: 5; grid-template-columns: 1fr; }
  .core-values { order: 6; }
  .about-media-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: -30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    z-index: 2;
  }


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

  .why-us-inner { grid-template-columns: 1fr; }
  .why-us-stats { position: static; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-lg); }

  .faq-inner { grid-template-columns: 1fr; }
  .faq-heading { text-align: center; }
  .faq-heading .faq-cta { margin-left: auto; margin-right: auto; display: table; }

  .contact-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
}

/* ============ NAV TOGGLE BREAKPOINT (≤900px) ============ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(11,114,196,0.08);
    transition: max-height var(--transition-base);
    z-index: 999;
  }
  .main-nav.is-open { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-sm) 24px var(--space-lg);
    width: 100%;
  }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--color-border); }
  .nav-link { display: block; padding: 16px 0; }
  .nav-link::after { display: none; }

  .header-actions { gap: var(--space-sm); }
}

/* ============ MOBILE LARGE (≤768px) ============ */
@media (max-width: 768px) {
  :root { --header-height: 72px; }

  .container { padding: 0 18px; }

  .brand-logo { height: 58px; }

  .hero { min-height: auto; padding-bottom: var(--space-lg); }
  .hero-inner { padding-top: var(--space-md); }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { justify-content: space-between; gap: var(--space-md); }
  .hero-visual-badge { top: -14px; right: -10px; padding: 10px 14px; }

  .section-title { font-size: 1.6rem; }

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

  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-stats { grid-template-columns: 1fr 1fr; }

  .core-values { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .back-to-top { width: 42px; height: 42px; bottom: 20px; left: 18px; }

  .contact-form-wrap { padding: var(--space-md); }
  .scroll-indicator { display: none !important; }
  .hero-content { text-align: center; }
  .footer-logo {
    height: 70px;
    transform: scale(1.4) translate(-14px, 15px) !important;
    transform-origin: left center !important;
    margin-bottom: 35px !important;
  }
}

/* ============ MOBILE SMALL (≤480px) ============ */
@media (max-width: 480px) {
  .brand-logo { height: 50px; }
  .hero-tags li { font-size: 0.75rem; padding: 7px 13px; }
  .hero-trust { gap: var(--space-sm); }
  .trust-item strong { font-size: 1.3rem; }
  .why-us-stats { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .stat-card { padding: var(--space-md) var(--space-sm); }
  .info-pill { flex-wrap: wrap; }
  .footer-logo {
    height: 60px;
    transform: scale(1.3) translate(-14px, 12px) !important;
    transform-origin: left center !important;
    margin-bottom: 30px !important;
  }
}
