/* Electric blue + cool gray. Shared frontend navigation and surface theme. */
:root {
    --electric-blue: #245bff;
    --electric-hover: #1747d1;
    --surface-gray: #f2f4f7;
    --bs-primary: #245bff;
    --bs-primary-rgb: 36, 91, 255;
    --bs-link-color: #1747d1;
    --bs-link-hover-color: #1037ab;
}

.navbar-custom,
.navbar-custom.scrolled {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-top: 3px solid var(--electric-blue);
    border-bottom: 1px solid #dce1e9;
    border-radius: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(51, 65, 85, .06);
    transition: box-shadow .2s ease, background .2s ease;
}
.navbar-custom.scrolled {
    background: #fff;
    box-shadow: 0 8px 30px rgba(51, 65, 85, .12);
}
.nav-shell {
    max-width: 1440px;
    min-height: 84px;
    padding: 12px 32px;
    gap: 24px;
}
.navbar-custom .navbar-brand {
    padding-right: 28px;
    border-right: 1px solid #dce1e9;
    max-width: 30%;
}
.navbar-custom .brand-logo-nav {
    width: auto;
    max-width: 100%;
    height: 50px;
    object-fit: contain;
}
.navbar-custom .navbar-nav { gap: 4px; }
.navbar-custom .navbar-nav > .nav-item > .nav-link,
.navbar-custom.scrolled .navbar-nav > .nav-item > .nav-link,
.navbar-custom:not(.scrolled) .navbar-nav > .nav-item > .nav-link {
    min-height: 46px;
    padding: 12px 13px !important;
    border: 0;
    border-radius: 7px;
    color: #475569 !important;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: 0;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
}
.navbar-custom .navbar-nav > .nav-item > .nav-link::before {
    inset: auto 13px 3px;
    height: 3px;
    border-radius: 2px;
    background: var(--electric-blue);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 1;
    transition: transform .2s ease;
}
.navbar-custom .navbar-nav > .nav-item > .nav-link:hover,
.navbar-custom .navbar-nav > .nav-item > .nav-link:focus-visible,
.navbar-custom .navbar-nav > .nav-item > .nav-link.active {
    color: var(--electric-hover) !important;
    background: #f2f4f7;
}
.navbar-custom .navbar-nav > .nav-item > .nav-link:hover::before,
.navbar-custom .navbar-nav > .nav-item > .nav-link:focus-visible::before,
.navbar-custom .navbar-nav > .nav-item > .nav-link.active::before { transform: scaleX(1); }
.navbar-custom .nav-dropdown-menu {
    min-width: 260px;
    max-width: min(340px, calc(100vw - 32px));
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #dce1e9;
    border-top: 3px solid var(--electric-blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(51, 65, 85, .15);
}
.navbar-custom .nav-dropdown-menu::before { display: none; }
.navbar-custom .nav-dropdown-menu .dropdown-item,
.navbar-custom .nav-dropdown-menu .dropdown-toggle {
    color: #475569;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: normal;
}
.navbar-custom .nav-dropdown-menu .dropdown-item:hover,
.navbar-custom .nav-dropdown-menu .dropdown-toggle:hover,
.navbar-custom .nav-dropdown-menu .active {
    background: #edf2ff;
    color: var(--electric-hover);
    transform: none;
}
.navbar-custom .navbar-nav > .nav-item:last-child > .nav-dropdown-menu { right: 0; left: auto; }
.navbar-custom .navbar-nav > .nav-item:last-child .dropdown-submenu > .dropdown-menu { left: auto; right: calc(100% + .18rem); }
.navbar-custom .navbar-nav > .nav-item:last-child .dropdown-submenu::after { left: auto; right: 100%; }
.navbar-custom .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 9px;
    color: var(--electric-blue);
    background: #f2f4f7;
    border: 1px solid #dce1e9;
    border-radius: 9px;
}
.navbar-custom a:focus-visible,
.navbar-custom button:focus-visible,
#mobileNav a:focus-visible,
#mobileNav button:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 3px;
    box-shadow: none;
}
#mobileNav { width: min(390px, 100vw); background: #f2f4f7; }
#mobileNav .offcanvas-header { background: #fff; border-top: 3px solid var(--electric-blue); border-bottom: 1px solid #dce1e9; padding: 22px; }
#mobileNav .offcanvas-title { color: #293548; font-size: 1.1rem; }
#mobileNav .mobile-menu-node { border-radius: 9px; background: #fff; box-shadow: none; }
#mobileNav .mobile-menu-link { color: #475569; font-weight: 600; }
#mobileNav .mobile-menu-link.active { color: var(--electric-hover); background: #edf2ff; }
#mobileNav .mobile-menu-toggle { color: var(--electric-hover); background: #f2f4f7; }
.btn-primary-modern,
.btn-quote { background: var(--electric-blue); box-shadow: 0 7px 18px rgba(36, 91, 255, .2); }
.btn-primary-modern:hover,
.btn-quote:hover { background: var(--electric-hover); color: #fff; }
.footer-dark { background: linear-gradient(115deg, #1747d1, #245bff); border-top: 6px solid #dce1e9; }
.footer-dark .text-white-50 { color: rgba(255,255,255,.85) !important; }
.footer-dark .footer-menu-link,
.footer-dark .footer-link,
.footer-dark .footer-office-text { color: rgba(255,255,255,.88); }
.footer-dark .footer-office-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
@media (min-width: 1200px) {
    .navbar-custom .navbar-toggler { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-shell { padding-inline: 24px; gap: 16px; }
    .navbar-custom .navbar-brand { padding-right: 20px; max-width: 24%; }
    .navbar-custom .navbar-nav > .nav-item > .nav-link,
    .navbar-custom.scrolled .navbar-nav > .nav-item > .nav-link,
    .navbar-custom:not(.scrolled) .navbar-nav > .nav-item > .nav-link { padding-inline: 9px !important; font-size: .82rem; }
}
@media (max-width: 1199.98px) {
    .nav-shell { min-height: 74px; padding: 10px 22px; gap: 16px; }
    .navbar-custom .navbar-brand { border: 0; padding: 0; max-width: calc(100% - 64px); }
    .navbar-custom .brand-logo-nav { height: 46px; }
}
@media (max-width: 575.98px) {
    .nav-shell { min-height: 70px; padding-inline: 16px; }
    .navbar-custom .brand-logo-nav { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .navbar-custom, .navbar-custom *, #mobileNav * { transition: none !important; }
}

/* Footer: company copy, optional social icons, one full-width office. */
.footer-company-copy { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.footer-social-link:hover { background: #fff; color: var(--electric-hover); }
.footer-social-link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.footer-office-single { width: 100%; padding: 18px 20px; }
.footer-office-single .footer-office-title { font-size: .8rem; letter-spacing: .04em; white-space: normal; }
.footer-office-single .footer-office-text { font-size: .9rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .footer-social-column.is-empty { display: none; } }

/* Home client logos keep their original proportions. */
.client-wide .client-slide-card { width: 180px; min-width: 180px; flex-basis: 180px; height: 100px; padding: 16px; box-shadow: none; border-color: #dce1e9; }
.client-wide .client-slider { padding-block: 8px; }
.client-wide .client-arrow:focus-visible, .client-wide .client-slider:focus-visible { outline: 3px solid var(--electric-blue); outline-offset: 3px; }
@media (max-width: 575.98px) { .client-wide .client-slide-card { width: 140px; min-width: 140px; flex-basis: 140px; height: 84px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .client-wide .client-slider { scroll-behavior: auto; } }

/* Continuous client strip; duplicate group makes the loop seamless. */
.client-wide.section-spacing { padding-top: 28px; padding-bottom: 28px; }
.client-wide .client-slider-shell { margin-top: 12px; }
.client-wide .client-marquee { display: block; overflow: hidden; padding: 8px 0; scroll-snap-type: none; }
.client-marquee-track { display: flex; width: max-content; min-width: 200%; animation: clientMarquee 32s linear infinite; }
.client-marquee-group { display: flex; align-items: center; justify-content: space-around; flex: 1 0 auto; gap: 16px; padding-right: 16px; }
.client-marquee:hover .client-marquee-track,
.client-marquee:focus-within .client-marquee-track { animation-play-state: paused; }
.client-marquee.is-static .client-marquee-track { min-width: 100%; width: 100%; animation: none; }
.client-marquee.is-static .client-marquee-group[aria-hidden="true"] { display: none; }
@keyframes clientMarquee { to { transform: translateX(-50%); } }
@media (max-width: 575.98px) { .client-wide.section-spacing { padding-block: 22px; } }
@media (prefers-reduced-motion: reduce) {
    .client-wide .client-marquee { overflow-x: auto; }
    .client-marquee-track { animation: none; min-width: 100%; }
    .client-marquee-group[aria-hidden="true"] { display: none; }
}

/* Compact service grid fits the viewport without horizontal scrolling. */
.home-services-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; padding: 4px 0; }
.home-service-column { min-width: 0; }
.home-services-track .home-service-body { display: flex; flex-direction: column; flex: 1; padding: 16px !important; }
.home-services-track .home-service-card { display: flex; flex-direction: column; }
.home-services-track .home-service-media { min-height: 0; }
.home-services-track .home-service-image { height: auto; aspect-ratio: 4 / 3; }
.home-services-track .home-service-title { font-size: 1rem; line-height: 1.4; margin-bottom: 10px; overflow-wrap: anywhere; }
.home-services-track .home-service-badge { left: 10px; bottom: 10px; font-size: .65rem; padding: 5px 8px; max-width: calc(100% - 20px); }
.home-service-description { color: var(--text-muted); line-height: 1.6; font-size: .82rem; overflow-wrap: anywhere; }
.home-services-track .home-service-action { margin-top: auto; font-size: .8rem; }
@media (max-width: 575.98px) { .home-services-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .home-services-track .home-service-body { padding: 12px !important; } .home-services-track .home-service-title { font-size: .9rem; } }
@media (max-width: 359.98px) { .home-services-track { grid-template-columns: 1fr; } }

.home-services-track .home-service-badge { white-space: normal; line-height: 1.4; overflow-wrap: anywhere; }
