/* Homepage reference layout only. Existing tablet/desktop presentation is preserved. */
.m-header, .m-home, .m-tabs, .m-shared-footer { display: none; }
.mobile-design-switch { display: none; }

@media (max-width: 767px) {
  .mobile-design-switch { display: block; padding: 24px 20px 32px; background: #111; text-align: center; }
  .mobile-design-switch button { min-height: 48px; width: 100%; max-width: 440px; padding: 14px 20px; border: 1px solid #fac600; border-radius: 6px; background: #fac600; color: #102536; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .mobile-design-switch button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
  body.qs-mobile-shell {
    --m-ink: #193448;
    --m-yellow: #fac600;
    --m-soft: #edf3f5;
    --m-line: #d6e0e5;
    --m-white: #fff;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    background: var(--m-white);
  }
  body.qs-mobile-refresh { color: var(--m-ink); }
  .qs-mobile-shell > .topbar,
  .qs-mobile-shell > .site-header,
  .qs-mobile-shell > .call-bar { display: none; }
  .qs-mobile-refresh > #main-content { display: none; }
  .qs-mobile-shell .m-header, .qs-mobile-shell .m-home { display: block; }
  .m-header { padding: 12px 20px 14px; text-align: center; background: var(--m-white); color: var(--m-ink); }
  .m-logo { display: inline-flex; margin-bottom: 10px; }
  .m-logo img { display: block; width: 50px; height: 50px; }
  .m-header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; margin: auto; }
  .m-home { font-size: 15px; line-height: 1.65; }
  .m-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .m-home h1, .m-home h2, .m-home h3 { font-family: inherit; color: var(--m-ink); letter-spacing: -.025em; }
  .m-home h2 { font-size: clamp(27px, 7.3vw, 36px); font-weight: 800; line-height: 1.16; margin: 0 0 22px; }
  .m-home p { margin: 0 0 24px; color: inherit; }
  .m-home a, .m-header a, .m-tabs a { color: inherit; }
  .m-home [id] { scroll-margin-top: 20px; }
  .m-section { padding: 54px 24px; text-align: center; }
  .m-inner { max-width: 480px; margin-inline: auto; }
  .m-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; background: var(--m-yellow); border: 1px solid var(--m-yellow); border-radius: 3px; color: #102536; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
  .m-button-outline { background: var(--m-white); }
  .m-button-wide { width: 100%; }
  .m-header .m-button { border-radius: 0; }
  .m-hero { position: relative; isolation: isolate; padding: 34px 24px 24px; text-align: center; background: #1d2a34; color: var(--m-white); }
  .m-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/media/images/hq-residential-driveway.webp') center 42% / cover; opacity: .26; }
  .m-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 8.1vw, 40px); line-height: 1.06; font-weight: 800; color: var(--m-white); }
  .m-hero .m-location { font-weight: 700; margin: 0 0 16px; }
  .m-hero .m-intro { max-width: 350px; margin: 0 auto 22px; font-size: 14px; }
  .m-hero-call { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; border-radius: 7px; background: var(--m-white); color: var(--m-ink) !important; text-decoration: none; }
  .m-hero-call strong { font-size: 21px; }
  .m-hero-call span { font-size: 18px; }
  .m-callback-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; text-decoration: underline; }
  .m-hero small { display: block; font-size: 11px; }
  .m-reviews { background: #f8fafb; border-bottom: 1px solid var(--m-line); }
  .m-reviews .m-button-wide { margin-top: 16px; }
  .m-review-list { display: grid; gap: 16px; margin: 28px 0; }
  .m-review-card { padding: 24px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-white); text-align: left; }
  .m-review-stars { margin-bottom: 14px; color: #936600; font-size: 20px; letter-spacing: .12em; line-height: 1; }
  .m-review-card blockquote { margin: 0 0 18px; padding: 0; border: 0; color: var(--m-ink); font-size: 14px; font-style: normal; line-height: 1.7; }
  .m-review-card footer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 16px; border-top: 1px solid var(--m-line); }
  .m-review-card footer strong { font-size: 14px; }
  .m-review-card footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
  .m-services { padding-inline: 16px; }
  .m-services > .m-inner > p { padding-inline: 12px; }
  .m-carousel { position: relative; margin: 52px auto 24px; padding-inline: 40px; }
  .m-service-card { position: relative; display: flex; flex-direction: column; min-height: 350px; padding: 52px 20px 20px; border: 1px solid var(--m-yellow); text-align: left; }
  .m-service-card h3 { font-size: 22px; margin: 0 0 18px; line-height: 1.3; }
  .m-service-card p { font-size: 14px; margin-bottom: 28px; }
  .m-service-card .m-button { margin-top: auto; }
  .m-service-card .m-learn { margin-top: 10px; background: var(--m-white); border-color: var(--m-ink); }
  .m-service-icon { position: absolute; top: -27px; left: calc(50% - 27px); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--m-yellow); border: 3px solid var(--m-white); font-size: 23px; }
  .m-carousel-button { position: absolute; top: calc(50% - 24px); width: 44px; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--m-ink); font-size: 32px; cursor: pointer; }
  .m-carousel-prev { left: -4px; }
  .m-carousel-next { right: -4px; }
  .m-dots { display: flex; justify-content: center; margin: 0 0 24px; }
  .m-dot { display: grid; place-items: center; width: 36px; min-height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; }
  .m-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #b5c0c7; }
  .m-dot[aria-pressed='true']::before { background: var(--m-yellow); width: 10px; height: 10px; }
  .m-kicker { display: block; margin-bottom: 16px; font-size: 10px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
  .m-callback { background: var(--m-soft); }
  .m-callback h2 { font-size: 30px; }
  .m-form { padding: 24px; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-white); text-align: left; }
  .m-form label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 700; }
  .m-form .m-field { margin-bottom: 18px; }
  .m-form input:not([type='hidden']), .m-form select { width: 100%; min-height: 52px; padding: 12px; border: 1px solid #c9d6df; border-radius: 6px; background: #fbfcfe; color: var(--m-ink); font: inherit; font-size: 16px; }
  .m-form .m-button { font-size: 15px; }
  .m-form .m-form-note { margin: 14px 0 0; font-size: 11px; text-align: center; }
  .m-form button:disabled { opacity: .65; cursor: wait; }
  .m-steps { list-style: none; counter-reset: steps; padding: 0; margin: 10px 0 0; text-align: left; }
  .m-steps li { display: flex; align-items: center; gap: 16px; padding: 20px 0; font-size: 14px; border-bottom: 1px solid var(--m-line); counter-increment: steps; }
  .m-steps li:last-child { border-bottom: 0; }
  .m-steps li::before { content: counter(steps); display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid var(--m-line); border-radius: 8px; background: #f2f6f8; font-weight: 700; }
  .m-faq { padding-top: 36px; }
  .m-faq details { text-align: left; border-top: 1px solid var(--m-line); }
  .m-faq details:last-child { border-bottom: 1px solid var(--m-line); }
  .m-faq summary { padding: 22px 0; cursor: pointer; font-size: 14px; font-weight: 700; }
  .m-faq details p { font-size: 14px; margin-bottom: 22px; }
  .m-connect { background: #f6f7f7; }
  .m-connect h2 { font-size: 25px; }
  .m-profile { display: block; padding: 24px 16px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-white); text-decoration: none; }
  .m-profile strong, .m-profile span { display: block; }
  .m-profile span { margin-top: 6px; font-size: 12px; }
  .m-final { color: var(--m-white); background: #193448; }
  .m-final h2 { color: var(--m-white); text-transform: none; }
  .m-final .m-button { background: var(--m-white); border-color: var(--m-white); color: var(--m-ink); }
  .m-footer { line-height: 1.65; padding: 32px 24px; background: #0e1c2a; color: var(--m-white); font-size: 12px; }
  .m-footer p { margin-bottom: 14px; color: inherit; }
  .m-footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  .m-footer a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
  .qs-mobile-shell .m-tabs { position: fixed; inset: auto 0 0; z-index: 1000; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: var(--m-white); border-top: 1px solid var(--m-line); box-shadow: 0 -2px 8px #19344812; }
  .m-tabs a, .m-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 58px; min-width: 0; padding: 7px 4px; color: var(--m-ink); background: transparent; border: 0; border-radius: 8px; font: inherit; font-size: 11px; line-height: 1.2; text-decoration: none; cursor: pointer; }
  .m-tabs i { font-size: 21px; }
  .m-tabs .m-tab-call { background: var(--m-yellow); }
  .m-tabs [aria-current='location']:not(.m-tab-call) { background: var(--m-soft); }
  .qs-mobile-shell .mobile-drawer { background: var(--m-white); color: var(--m-ink); z-index: 1200; max-width: calc(100vw - 24px); padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
  .qs-mobile-shell .mobile-drawer nav a, .qs-mobile-shell .mobile-subtoggle, .qs-mobile-shell .mobile-drawer .menu-toggle { color: var(--m-ink); }
  .qs-mobile-shell .mobile-drawer a:focus-visible, .qs-mobile-shell .mobile-drawer a:hover { background: var(--m-soft); }
  .qs-mobile-shell .mobile-drawer .mobile-sub { border-color: var(--m-line); }
  .qs-mobile-shell .mobile-drawer .btn-outline-light { color: var(--m-ink); border-color: var(--m-line); }
  .qs-mobile-shell .mobile-drawer > div:last-child p { color: var(--m-ink) !important; }
  .qs-mobile-shell .mobile-backdrop { z-index: 1100; }
  .m-home :focus-visible, .m-header :focus-visible, .m-tabs :focus-visible, .qs-mobile-shell .mobile-drawer :focus-visible { outline: 3px solid #1274ab; outline-offset: 4px; }
  .m-home [hidden] { display: none !important; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .qs-mobile-shell .mobile-drawer { transition: none; }
  }
}
