/* Local integration and responsive refinements for the PHP homepage. */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { overflow-x: clip; }
.container { max-width: 1240px; }
.reveal { opacity: 1; transform: none; }
main { min-width: 0; }
button { cursor: pointer; }
.blog-card[hidden], .portal-table tr[hidden], .blog-state[hidden] { display:none !important; }
section[id], article[id], #about { scroll-margin-top: 110px; }
#site-header { background: #0145a8 !important; }
#site-header.is-scrolled { background: #0145a8 !important; box-shadow: 0 6px 24px #03122725; }
#site-header.is-scrolled nav { height: 5.25rem !important; }
#site-header.is-scrolled nav > a img { height: 92px !important; }
#mobile-navigation { visibility: hidden; }
#mobile-navigation[aria-hidden="false"] {
  visibility: visible; max-height: calc(100dvh - var(--header-height, 180px)) !important;
  overflow-y: auto !important; overscroll-behavior: contain;
  box-shadow: 0 12px 28px #0a162826;
}
#site-header.menu-open button[aria-controls="mobile-navigation"] span:first-child { transform: translateY(8px) rotate(45deg) !important; }
#site-header.menu-open button[aria-controls="mobile-navigation"] span:nth-child(2) { opacity: 0 !important; }
#site-header.menu-open button[aria-controls="mobile-navigation"] span:last-child { transform: translateY(-8px) rotate(-45deg) !important; }
.prog-accordion-btn[aria-expanded="true"] > svg { transform: rotate(180deg) !important; }
[data-carousel] { position: relative; }
[data-carousel] button[data-slide]:focus-visible { outline: 2px solid #0145a8; outline-offset: 5px; }
[data-carousel].is-paused .testi-progress-fill { animation-play-state: paused; }
[data-carousel] template { display: none; }
.hero-logo { max-width: 100%; height: auto !important; width: min(100%, 445px) !important; }
.price-scroll { padding-top: 1rem; }
.price-card { min-width: 0; }
.price-scroll > .price-card { overflow: visible; }
.testi-center-card { max-width: 100%; }
.area-map-wrap iframe { display: block; }
#mobile-navigation .nav-mobile-link { overflow-wrap: anywhere; }
@media (min-width: 1024px) and (max-width: 1279px) {
  #site-header .lg\:flex, #site-header .lg\:block { display: none !important; }
  #site-header .lg\:hidden { display: flex !important; }
}
@media (min-width: 1280px) { #mobile-navigation { display: none; } }
@media (max-width: 767px) {
  .price-scroll > .price-card { min-width: min(280px, calc(100vw - 3rem)); }
  .price-scroll { scroll-snap-type: x proximity; }
  .price-card { scroll-snap-align: center; }
  #about { padding-inline: 1rem; }
  .ab-split-grid { min-height: 0 !important; }
  #about .ab-split-right { padding: 3rem 1.5rem !important; }
  .hero-section { min-height: 100svh !important; }
}
@media (max-width: 600px) {
  #site-header > div:first-child .container { gap: .25rem 1rem !important; font-size: .7rem !important; }
  #site-header nav { height: 8rem !important; }
  #site-header nav > a img { height: 138px !important; }
  #site-header.is-scrolled nav { height: 4.5rem !important; }
  #site-header.is-scrolled nav > a img { height: 78px !important; }
  .hero-section { padding-top: 13.5rem !important; padding-bottom: 6rem !important; }
  .hero-content { max-width: 100% !important; }
  .hero-logo { width: min(100%, 355px) !important; }
  .hero-scroll-wrap { bottom: .7rem !important; }
  .hero-scroll-line { height: 16px !important; }
  .hero-scroll-label { font-size: .55rem !important; }
  .ab-feature-card { min-width: 0; }
  .testi-coverflow { padding-inline: 0; }
  .testi-center-card { width: 100% !important; padding: 2rem 1.5rem !important; }
  .areas-grid-bottom .area-card { width: 100%; }
  footer { padding-bottom: 5rem !important; }
}
@media (max-width: 380px) {
  #site-header > div:first-child .container { gap: .15rem .5rem !important; }
  .nav-cart-action { width: 42px; height: 44px; }
  .hero-title { font-size: 2rem !important; }
  .hero-cta .hero-action-button { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-css-slider .slide-1 { opacity: 1 !important; animation: none !important; }
  .hero-css-slider .slide-2 { display: none; }
}

@media (max-width: 900px) {
  .testi-center-card { flex: 0 1 480px !important; width: min(100%, 480px); }
}

.nav-account-desktop { position:relative; display:none; }
.nav-account-menu { position:absolute; top:calc(100% + 8px); right:0; width:220px; z-index:100; padding:.5rem; background:#fff; color:#0a1628; border:1px solid #e2ebf5; border-radius:12px; box-shadow:0 14px 40px #0a162833; }
.nav-account-menu p { margin:0; padding:.65rem .75rem; font-weight:800; border-bottom:1px solid #e2ebf5; }
.nav-account-menu a, .nav-account-menu button { display:block; width:100%; padding:.65rem .75rem; text-align:left; border-radius:8px; font-size:.85rem; }
.nav-account-menu a:hover, .nav-account-menu button:hover { background:#eff6ff; color:#0145a8; }
.cart-mobile-count { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px; padding:0 7px; background:#dc263e; color:#fff; border:2px solid #fff; border-radius:50%; }
@media(min-width:1280px) { .nav-account-desktop { display:block; } }
