/* Mobile Refresh — 2026-10-15
 * Site-wide, final-in-cascade overrides. This file is loaded LAST on each main page.
 * Desktop design (>899px) is intentionally unchanged except for the hidden menu button.
 */
.mobile-menu-toggle,
.cta-mobile-copy,
.hero-mobile-description,
.cta-label-mobile { display: none; }
.hero-company-line,
.hero-service-line { display: block; }

/* Leave existing desktop header/navigation layouts in place. */
@media (min-width: 900px) {
  body > header .mobile-menu-toggle { display: none !important; }
  .top-cta-bar .cta-desktop-copy { display: inline; }
  body > header #primary-navigation { display: block; }
}

/* Phone and small tablet header: one brand line, one compact menu control. */
@media (max-width: 899px) {
  html { scroll-padding-top: 14px !important; }
  body { padding-top: 0 !important; overflow-x: clip; }
  body > .top-cta-bar {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 9px 12px 8px !important;
    background: #f6d479 !important;
    color: #0b4a67 !important;
    text-align: center;
    line-height: 1.2 !important;
  }
  .top-cta-bar .cta-desktop-copy { display: none !important; }
  .top-cta-bar .cta-mobile-copy {
    display: flex !important;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    column-gap: 7px;
    row-gap: 3px;
    width: 100%;
    font-weight: 800;
  }
  .cta-mobile-copy .cta-call-label { font-size: 14px; }
  .top-cta-bar .cta-mobile-copy .phone-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 10px !important;
    font-size: clamp(16px, 4.1vw, 19px) !important;
    line-height: 1.1 !important;
    background: #ffdf88;
    color: #0b4a67 !important;
    border: 1px solid #cfb661;
    box-shadow: none;
    white-space: nowrap;
  }
  .cta-mobile-copy .cta-estimate { font-size: 13px; }
  .cta-mobile-copy .cta-service-note {
    flex: 0 0 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  body > header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 12px 16px !important;
    gap: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #0b4a67 !important;
    color: #fff !important;
  }
  body > header .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(65%, 340px) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(17px, 4.8vw, 23px) !important;
    font-weight: 800 !important;
    line-height: 1.16 !important;
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  body > header .mobile-menu-toggle {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 85px;
    min-height: 46px;
    padding: 8px 12px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 10px;
    background: #fff;
    color: #0b4a67;
    font: 800 15px/1 system-ui, -apple-system, Segoe UI, sans-serif;
    cursor: pointer;
  }
  .mobile-menu-toggle .menu-lines {
    display: flex;
    flex-flow: column nowrap;
    gap: 3px;
  }
  .mobile-menu-toggle .menu-lines span {
    display: block;
    width: 17px;
    height: 2px;
    background: currentColor;
    border-radius: 5px;
  }
  body > header .mobile-menu-toggle:focus-visible,
  body > header nav a:focus-visible,
  .top-cta-bar a:focus-visible {
    outline: 3px solid #f6d479;
    outline-offset: 3px;
  }
  body > header #primary-navigation {
    flex: 0 0 100% !important;
    width: 100%;
    min-width: 0;
    display: none !important;
    margin-top: 2px;
  }
  body > header #primary-navigation.is-open { display: block !important; }
  body > header #primary-navigation ul,
  body > header nav ul {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
    list-style: none !important;
  }
  body > header #primary-navigation li { margin: 0 !important; }
  body > header #primary-navigation a,
  body > header nav a {
    display: block !important;
    width: 100%;
    padding: 12px 15px !important;
    min-height: 46px;
    border-radius: 9px;
    color: #fff !important;
    background: rgba(255,255,255,.09);
    font-size: 16px !important;
    font-weight: 750;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none;
    white-space: normal;
  }
  body > header #primary-navigation a.active,
  body > header #primary-navigation a:hover {
    background: #f6d479 !important;
    border-color: #f6d479;
    color: #0b4a67 !important;
  }
  body > header .phone { display: none !important; }
  #header-spacer { display:none !important; height:0 !important; }

  /* Keep page content readable; prevent fixed-width children expanding phone viewport. */
  .container, .page-intro, main { min-width: 0; }
  img { max-width: 100%; }
}

/* Small phone: decrease topbar wrapping and reclaim room for the actual page. */
@media (max-width: 389px) {
  .top-cta-bar .cta-mobile-copy { column-gap: 5px; }
  .top-cta-bar .cta-mobile-copy .phone-pill { font-size: 16px !important; padding: 5px 8px !important; }
  .cta-mobile-copy .cta-estimate { font-size: 12px; }
  body > header { padding: 11px 12px !important; }
  body > header .site-brand { max-width: 64% !important; font-size: 17px !important; }
  body > header .mobile-menu-toggle { min-width: 79px; padding: 7px 9px; }
}

/* Homepage: get a value proposition and call button above the fold on phones. */
@media (max-width: 899px) {
  .hero.hero--split { min-height: 0 !important; padding: 0 !important; }
  .hero.hero--split .hero-split {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }
  .hero.hero--split .hero-left { padding: 16px 14px 8px !important; }
  .hero.hero--split .hero-panel {
    width: 100%;
    min-height: auto !important;
    padding: 20px 18px 18px !important;
    border-radius: 14px !important;
    background: #7594ab;
  }
  .hero.hero--split .experience-badge {
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
    border-radius: 9px;
  }
  .hero.hero--split .hero-panel h1 {
    margin: 15px 0 12px !important;
    text-align: left !important;
    text-shadow: 0 2px 6px rgba(0,0,0,.22);
    font-size: clamp(29px, 7.7vw, 36px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em;
  }
  .hero.hero--split .hero-company-line { display: none !important; }
  .hero.hero--split .hero-service-line { display: block !important; }
  .hero.hero--split .hero-panel p.hero-desktop-description { display: none !important; }
  .hero.hero--split .hero-panel p.hero-mobile-description {
    display: block !important;
    margin: 0 0 10px !important;
    font-size: 17px !important;
    line-height: 1.46 !important;
    text-align: left !important;
    color: #fff;
    text-shadow: none;
  }
  .hero.hero--split .hero-panel p.hero-prompt {
    margin: 0 0 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    color: #ffe493 !important;
    text-shadow: none;
  }
  .hero.hero--split .hero-call-row { gap: 8px !important; }
  .hero.hero--split .hero-call-row .cta-button.call-pill {
    min-height: 52px !important;
    padding: 10px 12px !important;
    border-width: 3px !important;
    font-size: clamp(15px, 4vw, 18px) !important;
  }
  .hero .cta-label-desktop { display: none !important; }
  .hero .cta-label-mobile { display: inline !important; }
  .hero.hero--split .hero-estimate-note {
    width: 100%;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
  .hero.hero--split .hero-right {
    min-height: 0 !important;
    padding: 4px 14px 14px !important;
    background: #efefef !important;
  }
  .hero.hero--split .hero-right .hero-img {
    display: block;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 260px !important;
    width: 100% !important;
    object-fit: contain !important;
  }
}


/* High-contrast, easy-to-see click-to-call phone number — 2026-10-15. */
.top-cta-bar a.phone-pill {
  background: #08445e !important;
  border: 2px solid #08445e !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .16) !important;
}
.top-cta-bar a.phone-pill:hover { background: #06354a !important; border-color: #06354a !important; }
.top-cta-bar a.phone-pill:focus-visible { outline: 3px solid #ffffff !important; outline-offset: 3px !important; }
@media (max-width: 899px) {
  .top-cta-bar .cta-mobile-copy a.phone-pill {
    background: #08445e !important;
    border: 2px solid #08445e !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    font-weight: 850 !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18) !important;
  }
  .hero.hero--split .hero-call-row .cta-button.call-pill {
    min-height: 76px !important;
    padding: 9px 10px !important;
    text-align: center;
  }
  .hero.hero--split .hero-call-row .cta-label-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
  }
  .hero.hero--split .hero-call-row .cta-mobile-text {
    display: block;
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 750;
    line-height: 1.25;
  }
  .hero.hero--split .hero-call-row .cta-mobile-number {
    display: block;
    font-size: clamp(22px, 5.6vw, 27px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: .012em;
  }
}
