/* Shared responsive enhancements loaded after each page's inline styles. */

:focus-visible {
  outline: 3px solid #f0a830;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-menu-btn {
  color: #0d2e4a;
}

.mobile-menu-btn[aria-expanded="true"] {
  background: #e8f2fa;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }

  .header-inner {
    min-height: 72px;
    padding: 10px 20px;
  }

  .header .logo {
    min-width: 0;
    gap: 10px;
  }

  .header .logo img {
    width: 44px !important;
    height: 44px !important;
  }

  .header .logo-text {
    font-size: 16px;
  }

  .header .logo-text span {
    font-size: 11px;
  }

  .header-phone {
    display: none !important;
  }

  .header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #fff;
    border-top: 1px solid #e2e4e9;
    box-shadow: 0 16px 28px rgba(9, 31, 51, 0.14);
  }

  .header.mobile-nav-open nav {
    display: block;
  }

  .header.mobile-nav-open .nav-links {
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
  }

  .header.mobile-nav-open .nav-links a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #f0f1f4;
    color: #0d2e4a;
  }

  .hero {
    padding: 54px 0 58px;
  }

  .hero::before {
    top: -160px;
    right: -250px;
    width: 520px;
    height: 520px;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    gap: 0;
    text-align: left !important;
  }

  .hero-badge,
  .page-hero-badge {
    padding: 7px 13px;
    margin-bottom: 18px;
    font-size: 12px;
  }

  .hero h1 {
    max-width: 620px;
    margin-bottom: 16px;
    font-size: clamp(32px, 9.2vw, 44px);
    letter-spacing: -0.7px;
  }

  .hero-description {
    max-width: 580px;
    margin: 0 0 26px !important;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-buttons {
    justify-content: flex-start !important;
    margin-bottom: 34px;
  }

  .hero-buttons .btn {
    justify-content: center;
    min-height: 48px;
  }

  .hero-features {
    justify-content: initial !important;
    gap: 12px 14px;
  }

  .hero-feature {
    align-items: flex-start;
    font-size: 13px;
  }

  .page-hero {
    overflow: hidden;
    padding: 46px 0 50px;
  }

  .page-hero::before {
    top: -180px;
    right: -260px;
    width: 500px;
    height: 500px;
  }

  .page-hero-content,
  .page-hero > .container {
    text-align: left !important;
  }

  .page-hero h1 {
    max-width: 680px;
    font-size: clamp(30px, 8.7vw, 40px);
    letter-spacing: -0.5px;
  }

  .page-hero p {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.65;
  }

  .section {
    padding-block: 56px;
  }

  .section-header {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-header .section-label {
    justify-content: flex-start;
  }

  .section-header .section-label::before {
    display: none;
  }

  .section-subtitle {
    margin-left: 0;
  }

  .footer {
    padding-top: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .header-inner {
    padding-inline: 16px;
  }

  .hero {
    padding: 46px 0 50px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid,
  .products-grid,
  .features-grid,
  .areas-grid,
  .brands-grid,
  .service-areas-grid {
    grid-template-columns: 1fr !important;
  }

  .cta-buttons,
  .quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-buttons .btn,
  .quick-actions .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
