.header-component {
    background: transparent;
    position: sticky;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    left: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    z-index: 2000;
    transition: transform 0.62s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, backdrop-filter 0.3s ease, opacity 0.42s ease;
    box-sizing: border-box;
    box-shadow: none;
    backdrop-filter: none;
}

.header-component.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(98, 135, 164, 0.04);
}

.header-component.is-hidden {
    transform: translateY(calc(-100% - 14px));
}

body::before {
    content: none;
}

body > * {
    position: relative;
    z-index: 1;
}

.header-component,
.header-component * {
    z-index: auto;
}

.header-component {
    z-index: 2000;
}

.mobile-menu-fullscreen,
.header-mobile-overlay {
    z-index: 2050;
}

body.no-scroll::before {
    opacity: 1;
}

.header-component::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 26px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-component.is-scrolled::after {
    opacity: 1;
}

@media (max-width: 1024px) {
    .header-inner {
        width: calc(100% - 64px);
    }
}

@media (max-width: 1100px) {
    .header-inner {
        width: calc(100% - 48px);
    }

    body::before {
        height: 180px;
        background:
            linear-gradient(180deg,
                rgba(59, 77, 99, 0.9) 0%,
                rgba(86, 108, 132, 0.58) 40%,
                rgba(191, 207, 219, 0.14) 76%,
                rgba(255, 255, 255, 0) 100%);
    }
}

.mobile-menu-fullscreen {
    display: none;
}

.header-inner {
    width: min(var(--container-width, 1920px), calc(100% - 80px));
    margin: 0 auto;
    height: 92px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-nav-container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 56px;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-right: 0;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
    padding-left: 0;
    flex-shrink: 0;
}

.brand img {
    display: block;
    height: clamp(22px, 2.2vw, 30px);
    width: auto;
}

.brand:hover {
    opacity: 0.8;
}

.brand-dot {
    width: 12px;
    height: 12px;
    background: #d9eef8;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(103, 152, 173, 0.4);
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(123, 160, 187, 0.14);
    color: #4b5f71;
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(111, 149, 177, 0.06);
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: #35506d;
    background: #ffffff;
    border-color: rgba(79, 130, 174, 0.18);
    transform: translateY(-1px);
}

.nav-link.is-active {
    background: linear-gradient(180deg, #3f95d9 0%, #2c79c5 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(52, 125, 194, 0.24);
}

.nav-cta {
    background: #fa700d !important;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    min-height: 54px;
    padding: 0 28px;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    box-shadow: 0 12px 28px rgba(250, 112, 13, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-cta::after {
    content: none;
}

.nav-cta:hover {
    background: #e66a10 !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.02);
}

/* Language Switcher */
.lang-menu {
    position: relative;
}

.lang-menu--mobile {
    display: none;
}

.lang-menu summary {
    list-style: none;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 34px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #425668;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.lang-menu-button::after {
    content: "▼";
    margin-left: 10px;
    font-size: 0.7em;
    color: #81a5c2;
}

.lang-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 88px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(123, 160, 187, 0.12);
    box-shadow: 0 18px 38px rgba(39, 66, 92, 0.1);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.unit-switcher {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(103, 152, 173, 0.08);
    border: 1px solid rgba(103, 152, 173, 0.12);
}

.unit-btn {
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(103, 152, 173, 0.72);
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.unit-btn:hover {
    color: #3c8dc7;
}

.unit-btn.active {
    background: rgba(255, 255, 255, 0.92);
    color: #324456;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: #66839b;
    padding: 0 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #35506d;
    background: rgba(103, 152, 173, 0.08);
}

.lang-btn.active {
    color: #35506d;
    background: rgba(109, 163, 191, 0.1);
}

/* Inline switchers wrapper */
.header-switchers-inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Settings dropdown (collapsed switchers) */
.header-switchers-dropdown {
    display: none;
    position: relative;
}

.header-settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(109, 163, 191, 0.08);
    border: 1px solid rgba(123, 160, 187, 0.14);
    color: #3c8dc7;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-settings-toggle:hover {
    background: rgba(109, 163, 191, 0.14);
    transform: translateY(-1px);
}

.header-settings-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(123, 160, 187, 0.12);
    box-shadow: 0 18px 38px rgba(39, 66, 92, 0.1);
    flex-direction: column;
    gap: 14px;
    z-index: 100;
}

.header-switchers-dropdown.is-open .header-settings-panel {
    display: flex;
}

@media (max-width: 1280px) {
    .header-switchers-inline {
        display: none;
    }
    .header-switchers-dropdown {
        display: block;
    }
}

.theme-toggle {
    display: none; /* Dark mode design not ready yet */
    width: 40px;
    height: 40px;
    background: rgba(109, 163, 191, 0.08);
    border: 1px solid rgba(123, 160, 187, 0.14);
    box-shadow: 0 8px 18px rgba(112, 147, 175, 0.06);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.toggle-bar {
    width: 22px;
    height: 2px;
    background-color: #3c8dc7;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 1200px) {
    .header-nav-container {
        margin-left: 24px;
    }
    .header-nav {
        gap: 8px;
    }
    .header-right {
        gap: 10px;
    }
    .nav-link {
        padding: 0 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 1100px) {
    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    body {
        overflow-x: clip;
    }

    .header-component {
        width: 100vw;
        max-width: 100vw;
        left: auto;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        position: sticky;
        top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .header-component::after {
        height: 120px;
    }

    .header-inner {
        width: 100%;
        padding: 0 18px;
        box-sizing: border-box;
        height: var(--header-height);
        position: relative;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 12px;
    }

    .header-left {
        display: contents;
    }

    .brand {
        padding-left: 0;
        margin-right: 0;
        justify-self: center;
        grid-column: 2;
    }

    .brand img {
        height: 20px;
    }

    .mobile-toggle {
        display: flex;
        position: relative;
        margin-left: 0;
        margin-right: 0;
        width: 44px;
        height: 44px;
        border-radius: 0;
        background: transparent;
        border: none;
        flex-shrink: 0;
        justify-self: end;
        grid-column: 3;
    }

    .header-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 24, 33, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1998;
    }

    .header-component.menu-open {
        z-index: 2060;
    }

    .header-component.menu-open .header-mobile-overlay {
        display: none;
    }

    .header-nav-container {
        display: none;
    }

    .lang-menu--desktop {
        display: none;
    }

    .lang-menu--mobile {
        display: block;
        justify-self: start;
    }

    .lang-menu-button--mobile {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(123, 160, 187, 0.16);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 18px rgba(112, 147, 175, 0.08);
        padding: 0;
    }

    .lang-menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #7d9db4;
        line-height: 1;
    }

    .lang-menu-icon svg {
        width: 22px;
        height: 22px;
    }

    .lang-menu-button--mobile::after {
        content: none;
    }

    .lang-menu--mobile .lang-menu-list {
        left: 0;
        right: auto;
        transform: none;
    }

    .mobile-menu-fullscreen {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 2050;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        flex-direction: column;
    }

    .header-component.menu-open .mobile-menu-fullscreen {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-menu-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 56px 25px 30px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mobile-menu-content::-webkit-scrollbar {
        display: none;
    }

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

    .mobile-close {
        display: none;
    }

    .close-bar {
        display: none;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-nav-link {
        font-family: 'Urbanist', sans-serif;
        font-size: 40px;
        font-weight: 600;
        color: #365072;
        text-decoration: none;
        padding: 8px 0;
        letter-spacing: 0;
        border-bottom: none;
        line-height: 1.1;
    }

    .mobile-nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        background: #fa700d;
        color: #ffffff;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 700;
        min-height: 52px;
        padding: 0 28px;
        border: none;
        border-radius: 100px;
        cursor: pointer;
        margin-top: 20px;
        box-shadow: 0 12px 28px rgba(250, 112, 13, 0.2);
    }

    .mobile-menu-footer {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-switchers {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-top: none;
    }

    .lang-switcher, .unit-switcher {
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        justify-content: flex-start;
    }

    .lang-switcher {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }

    .lang-switcher::after {
        content: none;
    }

    .lang-switcher .lang-btn {
        display: inline-flex;
        padding: 6px 14px;
        min-height: 0;
        font-family: 'Urbanist', sans-serif;
        font-size: 24px;
        font-weight: 600;
        color: #7a9dc0;
        background: none !important;
        border-radius: 8px;
        transition: color 0.2s ease;
    }

    .lang-switcher .lang-btn:hover {
        color: #365072;
    }

    .lang-switcher .lang-btn.active {
        color: #365072;
    }

    .unit-switcher {
        display: none;
    }

    .mobile-menu-switchers .theme-toggle {
        display: none;
    }

    .mobile-menu-description {
        margin: 0;
        padding-top: 0;
        color: rgba(22, 30, 35, 0.75);
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
        max-width: none;
        position: relative;
    }

    .mobile-menu-description::before {
        content: "";
        display: block;
        width: 151px;
        height: 8px;
        border-radius: 999px;
        background: #fa700d;
        margin-bottom: 25px;
    }

    /* Toggle Animation */
    .header-component.menu-open .toggle-bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    .header-component.menu-open .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .header-component.menu-open .toggle-bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .toggle-bar {
        width: 24px;
        height: 1.5px;
        margin: 1.5px 0;
        background-color: #365072;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 16px;
        grid-template-columns: 44px 1fr 44px;
        gap: 8px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        height: 18px;
    }

    .mobile-nav-link {
        font-size: clamp(28px, 8vw, 40px);
    }

    .mobile-menu-content {
        padding: 36px 20px 24px;
    }
}

/* Header Form Modal */
.header-form-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.header-form-modal[aria-hidden="false"] {
    display: flex;
}

.header-form-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.header-form-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: auto;
    scroll-padding-top: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: header-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-form-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-form-modal-close:hover {
    background: #e0e0e0;
}

.header-form-modal-logo {
    display: block;
    width: 180px;
    height: auto;
    margin-bottom: 16px;
}

@keyframes header-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.header-form-modal-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #1a2b3c;
    margin: 0 0 4px;
    line-height: 1.2;
}

.header-form-modal-description {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0 0 8px;
    line-height: 1.5;
}

.header-form-modal .ct-form-card {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    gap: 32px;
}

.header-form-modal .ct-gf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-form-modal .ct-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-form-modal .ct-form-label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: rgba(22, 30, 35, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-form-modal .ct-form-required {
    color: #ff5f5f;
}

.header-form-modal .ct-form-row {
    display: flex;
    gap: 16px;
}

.header-form-modal .ct-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-form-modal .ct-form-field-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(22, 30, 35, 0.75);
}

.header-form-modal .ct-form-input,
.header-form-modal .ct-form-textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    height: 42px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #161e23;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.header-form-modal .ct-form-textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.header-form-modal .ct-form-counter {
    display: none;
}

.header-form-modal .ct-form-input:focus,
.header-form-modal .ct-form-textarea:focus {
    border-color: rgba(103, 152, 173, 0.6);
}

.header-form-modal .ct-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fa700d;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 99px;
    padding: 14px 28px;
    cursor: pointer;
    width: fit-content;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(250, 112, 13, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-form-modal .ct-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(250, 112, 13, 0.25);
}

.header-form-modal .ct-form-select {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    height: 42px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #161e23;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

@media (max-width: 480px) {
    .header-form-modal-content {
        padding: 28px 20px;
        border-radius: 16px;
        width: 95%;
    }

    .header-form-modal .ct-form-row {
        flex-direction: column;
        gap: 12px;
    }
}
