/* ========================================
   Responsive — RoofKAP
   ======================================== */

/* ── Tablet ≤ 1024px ───────────────────── */
@media (max-width: 1024px) {
  .hero { min-height: 80vh; }
  .hero-logo { width: 380px; height: 380px; }
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .stats-row  { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .highlight-strip { grid-template-columns: 1fr; }
  .highlight-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .highlight-item:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ≤ 768px ────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .top-bar .container {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-2);
  }
  .top-bar-right {
    flex-direction: column;
    gap: var(--sp-1);
  }
  .mobile-menu-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: var(--sp-16) var(--sp-6);
    transition: right 0.3s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.5);
    z-index: 1001;
  }
  .nav-menu.active { right: 0; }
  .nav-menu li { width: 100%; }
  .nav-link {
    display: block;
    padding: var(--sp-4) 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
  }
  .mobile-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
  }
  .mobile-menu-overlay.active { display: block; }

  /* Hero — logo in dark sky at top, house image big below it */
  .hero {
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
  .hero-background-wrap {
    position: relative;
    width: 100%;
    height: auto;
  }
  .hero-background {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 700;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
  }
  .hero-overlay {
    display: none;
  }
  .hero-content {
    position: relative;
    z-index: 3;
    order: -1;
    background: var(--bg-deepest);
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
  }
  .hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--sp-4);
  }
  .hero-title {
    font-size: 1rem;
    margin-bottom: var(--sp-3);
  }
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: var(--sp-4);
  }
  .hero-actions { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  /* Trust */
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .trust-icon { width: 40px; height: 40px; font-size: 1rem; }
  .trust-label { font-size: 0.75rem; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }

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

  /* Sections */
  .section { padding: var(--sp-12) 0; }
  .cta-section { padding: var(--sp-12) 0; }
  .page-header { padding: var(--sp-12) 0 var(--sp-8); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
}

/* ── Small Mobile ≤ 480px ──────────────── */
@media (max-width: 480px) {
  .hero-logo { width: 150px; height: 150px; }
  .logo-text { font-size: 1.15rem; }
  .logo-image { width: 38px; height: 38px; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.82rem; }
  .card { padding: var(--sp-6); }
  .service-card { padding: var(--sp-6); }
  .contact-info { padding: var(--sp-6); }
  .contact-form-wrap { padding: var(--sp-6); }
  .cta-banner { padding: var(--sp-8) var(--sp-4); }
}
