/* =========================================
   FAMILY DENTAL CLINIC
   DESKTOP HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5eef1;
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(8, 72, 100, 0.12);
}


/* =========================================
   HEADER INNER
========================================= */

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 225px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: #06458f;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text small {
    margin-top: 5px;
    color: #008e9d;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}


/* =========================================
   DESKTOP NAV
========================================= */

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
    font-size: 0.9rem;
    font-weight: 700;
}

.desktop-nav > a:not(.nav-cta),
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 2px;
    color: #23465d;
}


/* =========================================
   NAV HOVER LINE
========================================= */

.desktop-nav > a:not(.nav-cta)::after,
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        #0875b9,
        #10b9b4
    );

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav > a:not(.nav-cta):hover::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.desktop-nav > a:not(.nav-cta):hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: #0875b9;
}


/* =========================================
   SERVICES DROPDOWN
========================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    border: 0;
    background: transparent;
    font: inherit;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================
   DROPDOWN BOX
========================================= */

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;

    transform:
        translateX(-50%)
        translateY(8px);

    width: 255px;
    padding: 9px;

    background: #ffffff;
    border: 1px solid #e2edf1;
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(10, 70, 100, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


/* =========================================
   DROPDOWN SHOW
========================================= */

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================
   DROPDOWN LINKS
========================================= */

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;

    border-radius: 8px;

    color: #23465d;
    font-size: 0.86rem;
    font-weight: 600;
}

.nav-dropdown-menu a:hover {
    color: #0875b9;
    background: #effbfd;
}


/* =========================================
   APPOINTMENT BUTTON
========================================= */

.nav-cta {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #0875b9,
            #08a7b2
        );

    padding: 11px 17px;
    border-radius: 11px;

    box-shadow:
        0 7px 18px
        rgba(8, 117, 185, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(8, 117, 185, 0.25);
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 9px;

    border:
        1px solid #d8e7eb;

    border-radius: 11px;

    background: #ffffff;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;

    border-radius: 2px;

    background: #075a86;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .desktop-nav {
        gap: 11px;
        font-size: 0.82rem;
    }

    .brand {
        min-width: 200px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-text strong {
        font-size: 0.92rem;
    }

    .brand-text small {
        font-size: 0.58rem;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }
}