/* Global safety and responsive overflow fixes */
html,body{max-width:100%;overflow-x:clip}
img,svg,video,canvas{max-width:100%}
.container{min-width:0}
@media(max-width:800px){.topbar-inner{flex-wrap:wrap}.nav-wrap{gap:15px}.primary-nav{width:100%}}
@media(max-width:540px){.topbar-inner{gap:8px}.brand{max-width:calc(100% - 55px)}}

/* Use one consistent, cache-independent frame for footer heading icons. */
.quote-footer .quote-footer-title-icon {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(35, 153, 226, .55);
  border-radius: 9px;
  background: linear-gradient(145deg, #75d0ff, #27a8f4);
}
.quote-footer .quote-footer-title-icon svg {
  display: block;
  width: 76%;
  height: 76%;
  max-width: none;
  fill: none;
  stroke: #073c8c;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-footer .quote-footer-contact-icon svg {
  width: 76%;
  height: 76%;
  stroke-width: 3.1;
}
.quote-footer .quote-footer-image-icon {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.quote-footer .quote-footer-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Keep the home carousel controls on the hero image on narrow screens. */
@media (max-width: 760px) {
  .home-reference .ref-about {
    background-image: linear-gradient(135deg, #f5f9fd 0%, #fff 52%, #eef5fc 100%) !important;
  }

  .home-reference .hero-slide {
    display: flex;
    min-height: max(520px, calc(100svh - 160px));
    flex-direction: column;
    justify-content: center;
    padding: 38px 0 68px;
    box-sizing: border-box;
  }
  .home-reference .ref-hero-inner { flex: 1 1 auto; align-items: center; }
  .home-reference .hero-slide.is-active .hero-bg {
    animation: none;
    transform: none;
    will-change: auto;
  }
  .home-reference .hero-slide .ref-hero-copy > * {
    transform: none;
    transition: opacity .4s ease;
  }
  .home-reference .hero-slide:not(.is-active) .ref-hero-copy > * {
    transform: none;
  }
  .home-reference .hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .home-reference .home-faq-layout {
    width: calc(100% - 36px);
    max-width: none;
    margin-inline: auto;
  }
  .home-reference .home-faq-list details[open] summary::after {
    content: "\2212";
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 500;
  }
  #faq > .faq-layout {
    width: calc(100% - 36px);
    max-width: none;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .quote-form-section > .container {
    width: calc(100% - 36px);
    max-width: none;
    margin-inline: auto;
  }
  .quote-form-section .inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
  }
  .quote-form-section .inquiry-layout > .contact-aside,
  .quote-form-section .inquiry-layout > .inquiry-form-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
}
