/*
  Header and footer styles for headernew.ascx and FooterNew.ascx.
  Icons are inline SVG in the controls; this file contains no icon font.
*/

:root {
    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 300ms;
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../vendor/fonts/source-sans-3-latin-var.woff2") format("woff2");
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../vendor/fonts/space-grotesk-latin-var.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1f2937;
    background: #ffffff;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

address {
    font-style: normal;
}

.inline-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Shared layout */

.container {
    width: 100%;
    padding: 0 0.75rem;
    margin: 0 auto;
}

.row {
    --gutter-x: 1.5rem;
    --gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gutter-y));
    margin-right: calc(-0.5 * var(--gutter-x));
    margin-left: calc(-0.5 * var(--gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 calc(0.5 * var(--gutter-x));
    margin-top: var(--gutter-y);
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

/* Header */

.modern-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    font-family: var(--font-body);
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 86, 179, 0.15);
}

.modern-header .top-bar {
    position: relative;
    inset: auto;
    z-index: auto;
    display: none;
    padding: 0.5rem 0;
    align-items: initial;
    justify-content: initial;
    background: linear-gradient(135deg, #0056b3 0%, #004494 50%, #0056b3 100%);
    color: #ffffff;
    font-size: 0.875rem;
}

.modern-header .top-bar .col-md-auto {
    margin-left: auto;
}

.modern-header .top-bar .contact-link,
.modern-header .top-bar .action-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-header .top-bar .contact-link {
    margin-right: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.modern-header .top-bar .contact-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.modern-header .top-bar .contact-link .inline-icon {
    margin-right: 0.5rem;
}

.modern-header .top-bar .action-link {
    margin-right: 0.5rem;
    padding: 0.375rem 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
}

.modern-header .top-bar .action-link .inline-icon {
    margin-right: 0.375rem;
}

.modern-header .top-bar .action-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.modern-header .top-bar .cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.modern-header .top-bar .cta-button + .cta-button {
    margin-left: 0.5rem;
}

.modern-header .top-bar .cta-button:hover {
    color: #92400e;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
}

.main-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.modern-header .navbar.main-header {
    position: relative;
    padding: 0.75rem 0;
    background: #ffffff;
    box-shadow: none;
}

.logo-link:hover {
    display: inline-block;
    transform: scale(1.05);
}

/* Navbar and dropdowns */

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: inline-block;
    padding: 0.3125rem 0;
    margin-right: 1rem;
    white-space: nowrap;
}

.modern-header .navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: auto;
    padding-left: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    display: block;
    padding: 0.75rem 0;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #0056b3;
}

.modern-header .navbar-collapse {
    display: none;
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    min-width: 0;
}

.navbar-toggler {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: rgba(0, 0, 0, 0.55);
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.modern-header .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    color: #0056b3;
    border: 1px solid rgba(0, 86, 179, 0.18);
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.modern-header .navbar-toggler:hover,
.modern-header .navbar-toggler:focus-visible {
    color: #004494;
    background: rgba(0, 86, 179, 0.06);
    border-color: rgba(0, 86, 179, 0.35);
    outline: none;
}

.navbar-toggler-svg {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}

.modern-header .logo-link img {
    width: 63px;
    height: 63px;
    object-fit: contain;
}

.mobile-header-actions {
    display: none;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    color: #212529;
    text-align: left;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

.dropdown-menu.show {
    display: block;
}

.navbar-nav .dropdown-menu {
    margin-top: 0.25rem;
    padding: 1rem;
    border: 1px solid rgba(0, 86, 179, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.navbar-nav .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    clear: both;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: inherit;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: rgba(0, 86, 179, 0.05);
    color: #0056b3;
    transform: translateX(4px);
}

.dropdown-submenu {
    position: relative;
}

/* Footer */

footer.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    font-family: var(--font-body);
    color: #ffffff;
    background: linear-gradient(135deg, #343a40 0%, #0056b3 50%, #343a40 100%);
}

footer.site-footer::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.05) 2px, transparent 0),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.05) 2px, transparent 0);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

footer.site-footer > .container > .row {
    --gutter-y: 1.5rem;
}

footer.site-footer > .position-absolute {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    padding: 1rem;
    margin-top: -0.5rem;
    margin-right: -0.5rem;
}

footer.site-footer h6 {
    margin-bottom: 1rem;
    color: #f8f9fa;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

footer.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer.site-footer a:hover {
    color: #fbbf24;
    transform: translateY(-1px);
}

footer.site-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer.site-footer .text-warning {
    color: #ffc107 !important;
}

footer.site-footer .small,
footer.site-footer small {
    font-size: 0.875em;
}

footer.site-footer .lh-lg {
    line-height: 2;
}

footer.site-footer .list-unstyled {
    padding-left: 0;
    list-style: none;
}

footer.site-footer .mb-1 {
    margin-bottom: 0.25rem;
}

footer.site-footer .mb-2 {
    margin-bottom: 0.5rem;
}

footer.site-footer .mb-4 {
    margin-bottom: 1.5rem;
}

footer.site-footer .d-flex .inline-icon {
    margin-right: 0.5rem;
}

footer.site-footer .scroll-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

footer.site-footer .scroll-to-top:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1) translateY(-2px);
}

footer.site-footer .copyright-bar {
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

footer.site-footer .copyright-bar .col-md-auto {
    margin-top: 0.5rem;
}

footer.site-footer .copyright-bar .mx-2 {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

footer.site-footer .copyright-bar .align-middle {
    vertical-align: middle;
}

.wa-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: #ffffff;
    font-size: 1.5rem;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
    transition: all var(--duration) var(--ease);
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .col-md {
        flex: 1 0 0%;
        width: auto;
    }

    .col-md-auto {
        flex: 0 0 auto;
        width: auto;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .modern-header .top-bar .col-md-auto {
        margin-left: auto !important;
    }

    .justify-content-md-end {
        justify-content: flex-end !important;
    }

    footer.site-footer .copyright-bar {
        text-align: left;
    }

    footer.site-footer .copyright-bar .col-md-auto {
        margin-top: 0 !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    /* Keep the desktop navigation compact, including pages with page-level navbar styles. */
    .modern-header .navbar.main-header {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .modern-header .top-bar {
        display: block !important;
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    footer.site-footer > .position-absolute {
        display: block !important;
    }

    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .modern-header .navbar-nav {
        flex-direction: row;
        width: auto;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .modern-header .navbar-nav.ml40percent {
        margin-left: 40% !important;
    }

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        display: none;
        margin-left: 0.1rem;
    }

    .dropdown-submenu:hover .dropdown-menu {
        display: block;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile header and footer refinements. */

@media (max-width: 991px) {
    .modern-header .navbar.main-header {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .modern-header .navbar > .container {
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-left: calc(1rem + env(safe-area-inset-left));
    }

    .modern-header .logo-link img {
        width: 52px;
        height: 52px;
    }

    .modern-header .navbar-collapse.show {
        display: block;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(0, 86, 179, 0.1);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .modern-header .navbar-nav {
        margin-left: 0;
    }

    .modern-header .navbar-nav .nav-item + .nav-item {
        border-top: 1px solid rgba(0, 86, 179, 0.08);
    }

    .modern-header .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
    }

    .modern-header .navbar-nav .dropdown-toggle::after {
        margin-left: auto;
    }

    .modern-header .navbar-collapse .dropdown-menu,
    .modern-header .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
    }

    .modern-header .dropdown-menu {
        display: none;
        padding: 0.25rem 0.5rem 0.5rem 1rem;
        margin: 0 0 0.25rem;
        background: #f8fbff;
        border: 0;
        border-left: 2px solid rgba(0, 86, 179, 0.14);
        border-radius: 0;
        box-shadow: none;
    }

    .modern-header .dropdown-menu.show {
        display: block;
    }

    .modern-header .dropdown-submenu .dropdown-menu {
        display: none;
        position: static !important;
        width: 100%;
        padding: 0;
        margin: 0.25rem 0 0.5rem;
        border: none;
        box-shadow: none;
    }

    .modern-header .dropdown-submenu .dropdown-menu.show {
        display: block;
    }

    .modern-header .navbar-nav .dropdown-item {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        margin-bottom: 0;
        white-space: normal;
        line-height: 1.35;
        transform: none;
    }

    .modern-header .mobile-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0.75rem 0.25rem 0;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(0, 86, 179, 0.1);
    }

    .modern-header .mobile-header-action {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 0.6rem 0.5rem;
        color: #0056b3;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        background: #f8fbff;
        border: 1px solid rgba(0, 86, 179, 0.12);
        border-radius: 0.5rem;
    }

    .modern-header .mobile-header-action .inline-icon {
        margin-right: 0.35rem;
    }

    .modern-header .mobile-header-action:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.28);
        outline-offset: 2px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .modern-header .mobile-header-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    footer.site-footer {
        padding-top: 2.25rem;
        padding-bottom: 1rem;
    }

    footer.site-footer > .container {
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-left: calc(1rem + env(safe-area-inset-left));
    }

    footer.site-footer > .container > .row {
        --gutter-y: 1.75rem;
        row-gap: 1.75rem;
    }

    footer.site-footer h6 {
        margin-bottom: 0.65rem;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    footer.site-footer .lh-lg {
        line-height: 1.65;
    }

    footer.site-footer .mb-4 {
        margin-bottom: 0.75rem;
    }

    footer.site-footer .d-flex {
        align-items: flex-start !important;
    }

    footer.site-footer .d-flex .inline-icon {
        margin-top: 0.25rem;
    }

    footer.site-footer a,
    footer.site-footer .small {
        overflow-wrap: anywhere;
    }

    footer.site-footer .copyright-bar {
        padding-top: 1.25rem;
        margin-top: 2rem;
    }

    footer.site-footer .copyright-bar .row {
        row-gap: 0.65rem;
    }

    footer.site-footer .copyright-bar .small {
        line-height: 1.5;
    }

    footer.site-footer .copyright-bar .col-md-auto {
        margin-top: 0.25rem;
    }
}

@media (max-width: 575px) {
    .modern-header .mobile-header-action[href^="mailto:"] {
        display: none;
    }

    .wa-float {
        right: calc(1rem + env(safe-area-inset-right));
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
    }
}
