/* Mobile-first overrides loaded after style.css. Desktop styling is unchanged. */

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .section-wrap,
  .service-hero-content,
  .service-detail-grid,
  .quote-inner {
    min-width: 0;
    max-width: 100%;
  }

  .navbar {
    overflow: visible;
  }

  .nav-inner {
    min-height: 60px;
    padding: 0.5rem 0.75rem;
  }

  .nav-logo-brand {
    max-width: calc(100% - 108px);
    min-width: 0;
    overflow: hidden;
  }

  .nav-logo-brand svg {
    width: 30px;
    height: 30px;
  }

  .brand-logo-text,
  .bl-red,
  .bl-white {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger-menu-btn {
    min-width: 96px;
    min-height: 44px;
    justify-content: flex-end;
  }

  .mobile-menu {
    top: 60px;
    max-height: 0;
    padding: 0;
    overflow-y: hidden;
  }

  .mobile-menu.open {
    max-height: calc(100dvh - 60px - 72px - env(safe-area-inset-bottom, 0px));
    padding: 0.5rem 0;
    overflow-y: auto;
  }

  .mobile-menu a {
    display: flex;
    min-height: 48px;
    align-items: center;
  }

  .mobile-menu .mob-cta-btn {
    justify-content: center;
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .hero,
  .service-page-hero {
    padding-top: 60px;
  }

  .hero-light-wire {
    top: 60px;
    width: 100%;
    overflow: hidden;
  }

  .wire-bulbs {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-body {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-content,
  .hero-btns {
    width: 100%;
  }

  .hero-btns {
    align-items: center;
  }

  .hero-btns .btn,
  .center-btn .btn,
  .about-cta-wrap .btn {
    width: min(100%, 340px);
    max-width: 100%;
    min-height: 48px;
    padding-right: 1rem;
    padding-left: 1rem;
    white-space: normal;
    text-align: center;
  }

  .service-page-hero {
    min-height: 420px;
    background-position: 62% center;
  }

  .service-hero-content {
    width: 100%;
    padding: 2.5rem 1rem;
  }

  .service-hero-sub {
    font-size: 1rem;
  }

  .service-detail-section,
  .service-features-box,
  .service-cta-banner {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .fast-quote-form input,
  .fast-quote-form-vert input,
  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    font-size: 16px;
  }

  .fast-quote-form input,
  .fast-quote-form-vert input,
  .quote-form input,
  .quote-form select {
    min-height: 48px;
  }

  .btn,
  .btn-fast-quote,
  .open-modal-btn {
    min-height: 44px;
  }

  .modal-close-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .fade-in.fade-left,
  .fade-in.fade-right {
    transform: translateY(24px);
  }

  .about-photo-wrap,
  .about-text-content,
  .serve-header-banner,
  .van-map-banner-container,
  .map-bg-image,
  .map-interactive-box {
    max-width: 100%;
  }

  .about-bullets li,
  .service-checklist li,
  .footer-col li {
    overflow-wrap: anywhere;
  }

  .marquee-section,
  .marquee-row {
    max-width: 100%;
    overflow: hidden;
  }

  .sticky-bar {
    min-height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sticky-bar .sticky-btn {
    min-height: 48px;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  .site-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .thank-you-nav .nav-logo-brand {
    max-width: calc(100% - 116px);
  }

  .thank-you-nav .nav-phone {
    min-height: 44px;
    align-items: center;
    font-size: 0.78rem;
  }

  .thank-you-card {
    width: 100%;
    padding: 2rem 1rem;
  }

  .thank-you-actions .btn {
    min-height: 48px;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

  .nav-logo-brand {
    gap: 0.35rem;
    max-width: calc(100% - 98px);
  }

  .bl-red {
    font-size: 0.72rem;
  }

  .bl-white {
    font-size: 0.64rem;
  }

  .hamburger-menu-btn {
    min-width: 88px;
    padding-right: 0;
    padding-left: 0.2rem;
  }

  .menu-label-text {
    font-size: 0.96rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-eyebrow {
    line-height: 1.35;
  }

  .fast-quote-wrapper {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .fast-quote-box,
  .quote-form,
  .service-features-box,
  .service-cta-banner {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .thank-you-nav .nav-logo-brand {
    max-width: calc(100% - 108px);
  }

  .thank-you-nav .nav-logo-brand svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-btn,
  .wb,
  .snowflakes i,
  .marquee-track {
    animation: none !important;
  }

  .btn,
  .btn-fast-quote,
  .mobile-menu,
  .fade-in {
    transition: none !important;
  }
}
