/* ==========================================================================
   OrtoER Header
   Font: IBM Plex Sans
   ========================================================================== */

:root {
    --ortoer-blue-dark: #1a2b5f;
    --ortoer-blue-accent: #0360D9;
    --ortoer-blue-solid: #0C458E;
    --ortoer-blue-gradient: linear-gradient(to bottom, #2C77D9 0%, #0C458E 100%);
    --ortoer-bg-header: #E1EEFF;
    --ortoer-text-dark: #1a2b5f;
    --ortoer-text-gray: #6b7a99;
    --ortoer-white: #ffffff;
    --ortoer-font: 'IBM Plex Sans', sans-serif;
    --ortoer-header-height: 120px;
}

/* Front page: header transparent over hero */
.ortoer-front-page .ortoer-header {
    background: transparent;
    box-shadow: none;
    position: absolute;
}

/* Reset Astra header defaults */
.ast-above-header,
.ast-below-header,
.ast-main-header-wrap,
#masthead {
    display: none !important;
}

/* ==========================================================================
   Header Base
   ========================================================================== */

.ortoer-header {
    background-color: var(--ortoer-bg-header);
    font-family: var(--ortoer-font);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ortoer-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ortoer-header-height);
    gap: 24px;
}

/* ==========================================================================
   Hamburger (mobile only)
   ========================================================================== */

.ortoer-header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 1001;
}

.ortoer-header__hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--ortoer-text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active state (X) */
.ortoer-header__hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.ortoer-header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.ortoer-header__hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Logo
   ========================================================================== */

.ortoer-header__logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ortoer-logo__img {
    height: 60px;
    width: auto;
    display: block;
}

/* ==========================================================================
   Navigation (desktop)
   ========================================================================== */

.ortoer-header__nav {
    display: flex;
    align-items: center;
}

.ortoer-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.ortoer-header__menu li a {
    font-family: var(--ortoer-font);
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0D2B46;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ortoer-header__menu li a:hover {
    color: #0360D9;
}

.ortoer-header__menu li a.active {
    font-weight: 500;
    color: #0360D9;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: auto;
}

/* ==========================================================================
   CTA Buttons
   ========================================================================== */

.ortoer-header__cta {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.ortoer-btn {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ortoer-btn--outline {
    width: 175px;
    height: 51px;
    background: transparent;
    color: #0360D9;
    border: 1px solid #0360D9;
    border-radius: 50px;
    font-family: var(--ortoer-font);
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
}

.ortoer-btn--outline:hover {
    background: var(--ortoer-text-dark);
    color: var(--ortoer-white);
}

.ortoer-btn--solid {
    width: 175px;
    height: 51px;
    background: linear-gradient(to bottom, #2C77D9 0%, #0C458E 100%);
    color: var(--ortoer-white);
    border: none;
    border-radius: 50px;
    font-family: var(--ortoer-font);
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
}

.ortoer-btn--solid:hover,
.ortoer-btn--solid:focus,
.ortoer-btn--solid:visited {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 43, 95, 0.3);
    color: #ffffff !important;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */

.ortoer-mobile-menu {
    display: none;
    background: var(--ortoer-bg-header);
    padding: 24px;
    border-top: 1px solid rgba(26, 43, 95, 0.1);
}

.ortoer-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ortoer-mobile-menu ul li a {
    font-family: var(--ortoer-font);
    font-size: 18px;
    font-weight: 500;
    color: var(--ortoer-text-dark);
    text-decoration: none;
    padding: 8px 0;
    display: block;
}

.ortoer-mobile-menu ul li a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.ortoer-mobile-menu.open {
    display: block;
}

/* ==========================================================================
   Responsive — Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .ortoer-header__container {
        height: 64px;
        padding: 0 16px;
        gap: 12px;
    }

    .ortoer-header__hamburger {
        display: flex;
    }

    .ortoer-header__nav {
        display: none;
    }

    .ortoer-logo__img {
        height: 45px;
    }

    .ortoer-btn--outline,
    .ortoer-btn--solid {
        width: auto;
        height: 40px;
        font-size: 13px;
        padding: 0 16px;
    }
}

/* ==========================================================================
   Responsive — Small mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .ortoer-header__container {
        gap: 8px;
        padding: 0 12px;
    }

    .ortoer-logo__img {
        height: 38px;
    }

    .ortoer-btn--outline,
    .ortoer-btn--solid {
        height: 36px;
        font-size: 11px;
        padding: 0 12px;
    }

    .ortoer-header__cta {
        gap: 8px;
    }
}
