/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px){
  .footer-grid{ grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4){ grid-column: span 3; }
}

@media (max-width: 991px){
  .section{ padding: 90px 0; }
  .nav-links{
    position:fixed; top:0; right:-100%; width:78%; max-width:340px; height:100vh;
    background: #0d1220; flex-direction:column; align-items:flex-start; justify-content:center;
    gap:26px; padding: 40px; transition: right .45s ease; box-shadow: -20px 0 50px rgba(0,0,0,0.4);
  }
  .nav-links.open{ right:0; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-golden{ display:none; }

  /* Mobile menu panel background is always dark (#0d1220), regardless of
     site theme — so the link text/underline/toggle-bars must always stay
     light-colored here. Without this, the light-theme text-color rules
     (which are meant for the light page background) leak into this panel
     and make the menu text invisible against the dark background. */
  .nav-links a{
    color: rgba(255,255,255,0.82) !important;
  }
  .nav-links a.active{
    color: var(--gold) !important;
  }
  .nav-links a::after{
    background: var(--gold) !important;
  }
  html[data-theme="light"] .nav-toggle span{
    background: #fff !important;
  }
  .nav-toggle.open span{
    background: #fff !important;
  }

  .hero-grid{ grid-template-columns: 1fr; text-align:center; }
  .hero p.lead{ margin-left:auto; margin-right:auto; }
  .hero-cta{ justify-content:center; }
  .hero-stats{ grid-template-columns: repeat(2,1fr); row-gap: 30px; text-align:center; }
  .hero-visual{ display:none; }

  .welcome-wrap{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .video-grid{ grid-template-columns: repeat(2,1fr); }
  .process-track{ grid-template-columns: repeat(3,1fr); row-gap:50px; }
  .process-line, .process-line-flow{ display:none; }

  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4){ grid-column: span 2; }
}

@media (max-width: 640px){
  .container-xl{ padding: 0 18px; }
  .section{ padding: 70px 0; }
  .grid-4, .grid-3, .grid-2, .gallery-grid, .video-grid{ grid-template-columns: 1fr; }
  .process-track{ grid-template-columns: repeat(2,1fr); }
  .hero-stats{ grid-template-columns: repeat(2,1fr); }
  .cta-banner{ padding: 44px 26px; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-grid .footer-col:nth-child(4){ grid-column: span 1; }
  .footer-bottom{ flex-direction:column; gap:10px; text-align:center; }
  .price-card.highlight{ transform: none; }
  .price-card.highlight:hover{ transform: translateY(-8px); }
  .floating-actions{ right:16px; bottom:16px; }
  .page-hero{ padding: 150px 0 60px; }
}