/* =========================================================
   Responsive rules — mobile-first adjustments
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 62px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--secondary-bg); border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px;
    transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav a { display: block; padding: 14px 0; }
  .btn-cta-header { margin-top: 14px; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 40px 0; }

  /* Sticky mobile CTA */
  .mobile-sticky-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--cta-green); color: #fff; text-align: center;
    padding: 15px 16px; font-weight: 700; font-size: 1rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,.35);
  }
  .mobile-sticky-cta:hover { color: #fff; background: var(--cta-green-dark); }
  body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.05rem; }
  .btn { width: 100%; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
