/* ==============================================================================
   1st National Security Ltd - Responsive CSS Rules
   Mobile-First and Cross-Device Layout Enhancements
   ============================================================================== */

/* --- Tablet Breakpoint (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-badge-strip {
    margin: 0 auto 20px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-points {
    text-align: left;
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cred-item:nth-child(2) {
    border-right: none;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

/* --- Mobile Breakpoint (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  body {
    padding-bottom: 60px; /* Room for mobile sticky contact bar */
  }

  .top-bar {
    display: none; /* Collapsed on mobile for fast LCP and clean screen space */
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .btn-header-call {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-image-wrapper img {
    height: 280px;
  }

  .hero-floating-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .hero-trust-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cred-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 12px;
  }
  .cred-item:last-child {
    border-bottom: none;
  }

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

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

  .quote-estimator-box {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .footer-legal-links {
    justify-content: center;
  }

  .mobile-sticky-bar {
    display: block;
  }
}

/* --- Small Mobile Breakpoint (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section {
    padding: 50px 0;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header, .top-bar, .mobile-sticky-bar, .cookie-banner, .btn, .site-footer {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}
