/* ALL PRO HVAC — requested mobile and readability adjustments. */

/* Keep the supplied horizontal logo at its natural proportions. */
.site-header .bar > .brand:empty { display:none !important; }
.site-header .brand img.logo-dk,
footer .f-brand .brand img.logo-dk {
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  max-width:100% !important;
  aspect-ratio:2000 / 309 !important;
  object-fit:contain !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  margin:0 !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
}
.site-header .brand img.logo-dk { width:220px !important; }
footer .f-brand .brand img.logo-dk { width:300px !important; }
.site-header .brand,
footer .f-brand .brand {
  width:auto !important;
  height:auto !important;
  max-width:100%;
  overflow:visible;
}

/* Use the actual edited homepage label, without generated duplicate text. */
.is-home .hero .elementor-element-51c9bc7 .eyebrow {
  display:block !important;
  width:auto !important;
  font-size:14px !important;
  line-height:1.45 !important;
  letter-spacing:.06em;
  white-space:normal;
}
.is-home .hero .elementor-element-51c9bc7 .eyebrow::before {
  content:none !important;
  display:none !important;
}

/* Remove the requested dial, service ticker and experience counters. */
.hero .dial, .ticker-sec { display:none !important; }
.nums > li:has(> b[data-count="15"][data-suf="+"]),
.nums > li:has(> b[data-count="12"]) { display:none !important; }
.nums:has(> li > b[data-count="15"][data-suf="+"]):has(> li > b[data-count="12"]):not(:has(> li:nth-child(3))),
.elementor-widget-html:has(> .nums > li > b[data-count="15"][data-suf="+"]):has(> .nums > li > b[data-count="12"]):not(:has(> .nums > li:nth-child(3))) {
  display:none !important;
}

/* What We Do: retain the service names and links as readable text cards. */
.is-home .svx .cat-img,
.is-home .svx .cat-veil,
.is-home .svx .cat-top,
.is-home .svx .cat-ic,
.is-home .svx .mini img,
.is-home .svx .mini-veil,
.is-home .svx .mini-go,
.is-home .svx svg { display:none !important; }
.is-home .svx .cat {
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  padding:26px 22px !important;
}
.is-home .svx .cat-b {
  position:static !important;
  width:auto !important;
  padding:0 !important;
}
.is-home .svx .cat-b h3 { line-height:1.2; }
.is-home .svx .cat-b p { line-height:1.55; text-shadow:none; }
.is-home .svx .cat-links a { min-height:44px; padding-block:10px; }
.is-home .svx .mini-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.is-home .svx .mini {
  display:flex !important;
  align-items:center;
  min-height:64px;
  height:auto !important;
  aspect-ratio:auto !important;
  padding:16px;
}
.is-home .svx .mini-t {
  position:static !important;
  display:block;
  font-size:16px;
  line-height:1.4;
  transform:none !important;
}

/* Plan Your Visit: blue text and clearly selected controls on light surfaces. */
.is-home .plan-sec { color:#0f3b7d !important; }
.is-home .plan-sec .head h2,
.is-home .plan-sec .head h2 em,
.is-home .plan-sec .head .sub,
.is-home .plan-sec .head .eyebrow,
.is-home .plan-sec .pl-step legend,
.is-home .plan-sec .pl-out .gtitle,
.is-home .plan-sec .pl-out .gk,
.is-home .plan-sec .pl-out .goal-why,
.is-home .plan-sec .pl-out .goal-note,
.is-home .plan-sec .pl-svc,
.is-home .plan-sec .pl-svc small,
.is-home .plan-sec .pl-brief .pb-h,
.is-home .plan-sec .pl-brief .pb-t { color:#0f3b7d !important; }
.is-home .plan-sec .eyebrow::before { background:#0f3b7d !important; }
.is-home .plan-sec .pl-o {
  background:#fff;
  color:#0f3b7d;
  border:1.5px solid #9bacc3;
  box-shadow:none;
  line-height:1.4;
}
.is-home .plan-sec .pl-o:hover { background:#f0f5fb; border-color:#0f3b7d; }
.is-home .plan-sec .pl-o[aria-pressed="true"] {
  background:#dce9f8;
  border-color:#0f3b7d;
  box-shadow:inset 0 0 0 1px #0f3b7d;
  color:#0f3b7d;
}
.is-home .plan-sec .pl-o:focus-visible,
.is-home .plan-sec .pl-svc:focus-visible {
  outline:3px solid #0f3b7d;
  outline-offset:3px;
}
.is-home .plan-sec .pl-brief { background:#e7eef7; color:#0f3b7d; }
.is-home .plan-sec .pl-out { box-shadow:0 12px 30px -18px rgba(15,59,125,.3); }
.is-home .areas.dark > .wrap > .head h2,
.is-home .areas.dark > .wrap > .head h2 em,
.is-home .areas.dark > .wrap > .head .sub,
.is-home .areas.dark > .wrap > .head .eyebrow { color:#0f3b7d !important; }

/* Remove yellow ambient glare throughout the site. */
.hero { --g1:transparent; --g2:transparent; }
.hero-bg::before, .hero-bg::after,
.contact-sec::before, .phero::before, .cta::before, .zone {
  background-image:none !important;
  box-shadow:none !important;
}

/* Homepage gallery: one native, swipeable photo reel without moving clones. */
.is-home .gal .mqs {
  display:block !important;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible !important;
  mask-image:none !important;
  -webkit-mask-image:none !important;
}
.is-home .gal .mq {
  display:block !important;
  width:100% !important;
  max-width:100%;
  min-width:0;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding:8px 0 20px;
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
  scrollbar-width:auto;
  scrollbar-color:#0f3b7d #dce3ed;
}
.is-home .gal .mq-track {
  display:flex !important;
  flex-wrap:nowrap !important;
  width:max-content !important;
  max-width:none;
  gap:16px;
  padding-right:0;
  animation:none !important;
  transform:none !important;
  will-change:auto;
}
.is-home .gal .mq-track[aria-hidden="true"] { display:none !important; }
.is-home .gal .mq-i {
  flex:0 0 auto !important;
  width:clamp(240px,75vw,360px);
  height:clamp(240px,75vw,330px);
  aspect-ratio:auto !important;
  scroll-snap-align:start;
}
.is-home .gal .mq-i img { object-fit:contain; background:#eef1f5; }
.is-home .gal .mq-i:hover { transform:none; }

/* Gallery page: keep every existing photo in one horizontal row. */
.page-id-40 .masonry[data-gallery] {
  display:flex !important;
  flex-flow:row nowrap;
  gap:16px;
  columns:auto !important;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  padding:8px 0 20px;
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
  scrollbar-width:auto;
  scrollbar-color:#0f3b7d #dce3ed;
}
.page-id-40 .masonry[data-gallery] > .gi {
  flex:0 0 clamp(240px,75vw,360px);
  width:clamp(240px,75vw,360px);
  height:clamp(260px,78vw,360px);
  margin:0 !important;
  break-inside:auto;
  scroll-snap-align:start;
}
.page-id-40 .masonry[data-gallery] > .gi img {
  width:100%;
  height:100%;
  object-fit:contain;
  background:#eef1f5;
}
.is-home .gal .mq-i:focus-visible,
.page-id-40 .masonry[data-gallery] > .gi:focus-visible {
  outline:3px solid #0f3b7d;
  outline-offset:2px;
}

/* Keep the horizontal logo readable against the header and footer backgrounds. */
.site-header .brand:has(img.logo-dk),
footer .f-brand .brand:has(img.logo-dk) {
  background:#fff;
  padding:8px 10px;
  border-radius:6px;
  box-sizing:border-box;
}
.hero .hero-art:has(> .dial:only-child),
.hero .elementor-widget-html:has(> .hero-art > .dial:only-child) { display:none !important; }
.cf-ic,
.callfab:hover .cf-ic,
.callfab:focus-visible .cf-ic { box-shadow:0 8px 20px -10px rgba(15,59,125,.35) !important; }
.cf-ic::before, .cf-ic::after { content:none !important; animation:none !important; }

/* Visible controls for the swipeable galleries. */
.aph-gallery-controls {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin:12px 0 20px;
  padding-inline:4px;
  color:#0f3b7d;
}
.gal .aph-gallery-controls { padding-inline:18px; }
.aph-gallery-controls span { margin-right:auto; font-size:14px; line-height:1.4; }
.aph-gallery-controls button {
  display:grid;
  place-items:center;
  flex:0 0 44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  border:1.5px solid #0f3b7d;
  border-radius:8px;
  background:#fff;
  color:#0f3b7d;
  font-size:24px;
  cursor:pointer;
}
.aph-gallery-controls button:hover { background:#e7eef7; }
.aph-gallery-controls button:disabled { opacity:.4; cursor:default; }
.aph-gallery-controls button:focus-visible,
[data-aph-reel]:focus-visible { outline:3px solid #0f3b7d; outline-offset:3px; }
.lb { z-index:100100; }
.lb-x, .lb-n { font-size:32px; line-height:1; }
.lb button:focus-visible { outline:3px solid #fff; outline-offset:3px; }

/* Keep the menu and hero copy clear of one another on phones. */
.admin-bar .site-header { top:32px; }
@media (max-width:1020px) {
  .is-home .hero .hero-grid { padding-top:94px !important; }
  .is-home .hero h1, .phero h1 { width:100% !important; }
  .site-header #nav { top:68px; }
  .site-header.scrolled #nav { top:60px; }
  .admin-bar .site-header #nav { top:100px; }
  .admin-bar .site-header.scrolled #nav { top:92px; }
}
@media (max-width:782px) {
  .admin-bar .site-header { top:46px; }
  .admin-bar .site-header #nav { top:114px; }
  .admin-bar .site-header.scrolled #nav { top:106px; }
}
@media (max-width:600px) {
  .admin-bar .site-header.scrolled { top:0; }
  .admin-bar .site-header.scrolled #nav { top:60px; }
  .lb { padding:76px 16px 88px; }
  .lb img { max-height:65vh; }
  .lb figcaption { font-size:14px; line-height:1.45; }
  .lb-prev { left:8px; }
  .lb-next { right:8px; }
}

/* Responsive headings and spacing on phones. */
@media (max-width:1020px) {
  .site-header .brand img.logo-dk { width:clamp(180px,50vw,230px) !important; }
}
@media (max-width:767px) {
  .is-home .hero h1,
  .phero h1 {
    font-size:clamp(32px,8.5vw,48px) !important;
    line-height:1.16 !important;
    max-width:100%;
    white-space:normal;
    overflow-wrap:break-word;
    text-wrap:balance;
  }
  main section h2,
  main section h2.elementor-heading-title {
    font-size:clamp(27px,7vw,36px) !important;
    line-height:1.22 !important;
    white-space:normal;
    overflow-wrap:break-word;
    text-wrap:balance;
  }
  .is-home .svx .mini-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .is-home .svx .mini { padding:14px; }
  .is-home .svx .cat { padding:24px 20px !important; }
  .is-home .svx .cat-b h3 { font-size:27px; }
  .is-home .svx .cat-b p,
  .is-home .svx .cat-links a,
  .is-home .plan-sec .head .sub { font-size:16px; line-height:1.55; }
  .is-home .plan-sec .pl-o { min-height:50px; padding:12px 10px; }
  .is-home .plan-sec .pl-step legend { font-size:19px; line-height:1.4; }
  .is-home .plan-sec .pl-body { padding:22px; }
  .is-home .plan-sec .pl-brief { padding:20px 22px; }
  .is-home .plan-sec .pl-out .goal-note { padding:14px 22px 20px; }
}
