/* =========================================================
   GLOBAL FAMILY - FINAL HEADER CSS
   Modern 2026 Responsive Header
========================================================= */

:root {
    --gf-primary: #2563eb;
    --gf-primary-dark: #1d4ed8;
    --gf-primary-soft: #eff6ff;

    --gf-navy: #101a35;
    --gf-navy-light: #172554;

    --gf-text: #172033;
    --gf-text-light: #475569;
    --gf-muted: #64748b;

    --gf-white: #ffffff;
    --gf-bg: #f8fafc;
    --gf-border: #e5e7eb;

    --gf-radius: 10px;
    --gf-radius-lg: 14px;

    --gf-shadow:
        0 8px 30px rgba(15, 23, 42, 0.10);

    --gf-shadow-lg:
        0 18px 50px rgba(15, 23, 42, 0.16);

    --gf-transition: .25s ease;
}


/* =========================================================
   RESET
========================================================= */

#gf-site-header,
#gf-site-header *,
#gf-site-header *::before,
#gf-site-header *::after {
    box-sizing: border-box;
}

#gf-site-header {
    width: 100%;
    position: relative;
    z-index: 9999;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

#gf-site-header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#gf-site-header a {
    text-decoration: none;
}

#gf-site-header button,
#gf-site-header input,
#gf-site-header select {
    font-family: inherit;
}


/* =========================================================
   TOP BAR
========================================================= */

/* =========================================================
   TOP BAR - WHITE BACKGROUND / BLACK TEXT
========================================================= */

.gf-topbar {
    background: #ffffff !important;
    color: #000000 !important;

    border-bottom: 1px solid #e5e5e5;
}

.gf-topbar-inner {
    background: #ffffff !important;
}


/* All topbar text */

.gf-topbar a,
.gf-topbar span {
    color: #000000 !important;
}


/* Icons */

.gf-topbar svg,
.gf-topbar .gf-icon {
    color: #000000 !important;
    stroke: #000000 !important;
}


/* Post Information */

.gf-top-link {
    color: #000000 !important;
    background: transparent !important;
}

.gf-top-link:hover {
    color: #000000 !important;
    background: #f5f5f5 !important;
}


/* Language */

.gf-language {
    background: #ffffff !important;
    color: #000000 !important;

    border: 1px solid #cccccc !important;
}

.gf-language select {
    background: #ffffff !important;
    color: #000000 !important;
}

.gf-language option {
    background: #ffffff !important;
    color: #000000 !important;
}


/* Right side */

.gf-top-action,
.gf-user-link {
    color: #000000 !important;
    background: transparent !important;
}

.gf-top-action:hover,
.gf-user-link:hover {
    color: #000000 !important;
    background: #f5f5f5 !important;
}


/* Logout */

.gf-logout {
    color: #000000 !important;
}


/* Notification */

.gf-notification {
    color: #000000 !important;
}


/* =========================================================
   REMOVE OLD DARK/NAVY COLORS
========================================================= */

#gf-site-header .gf-topbar {
    background: #ffffff !important;
}

#gf-site-header .gf-topbar-inner {
    background: #ffffff !important;
}

#gf-site-header .gf-topbar * {
    color: #000000;
}


/* SVG */

#gf-site-header .gf-topbar svg {
    stroke: #000000 !important;
    color: #000000 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .gf-topbar {
        background: #ffffff !important;
    }

}
.gf-topbar-inner {
    width: 100%;
    max-width: 1440px;
    min-height: 42px;

    margin: auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gf-top-left,
.gf-top-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gf-top-right {
    margin-left: auto;
}


/* =========================================================
   TOP LINKS
========================================================= */

.gf-top-link,
.gf-top-action,
.gf-user-link {
    min-height: 32px;

    padding: 5px 9px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: rgba(255,255,255,.92);

    font-size: 13px;
    font-weight: 500;

    border-radius: 7px;

    transition: var(--gf-transition);
}

.gf-top-link:hover,
.gf-top-action:hover,
.gf-user-link:hover {
    color: #fff;
    background: rgba(255,255,255,.10);
}

.gf-user-name {
    max-width: 150px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gf-logout {
    color: #fecaca;
}

.gf-logout:hover {
    color: #fff;
    background: rgba(220,38,38,.20);
}


/* =========================================================
   LANGUAGE
========================================================= */

/* =========================================================
   LANGUAGE SELECTOR - SINGLE BOX
========================================================= */

.gf-language {
    height: 34px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0 9px;

    background: #ffffff;

    border: 1px solid #cccccc;
    border-radius: 7px;

    color: #111111;

    box-shadow: none;
}


/* Globe icon */

.gf-language .fa-globe {
    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #222222;

    font-size: 16px;

    flex-shrink: 0;
}


/* Remove SELECT's second box */

.gf-language select {
    height: 30px;

    padding: 0 22px 0 2px;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #111111;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    box-shadow: none !important;

    appearance: auto;
}


/* Remove focus border */

.gf-language select:focus {
    border: 0 !important;
    outline: 0 !important;

    box-shadow: none !important;
}


/* Options */

.gf-language select option {
    background: #ffffff;
    color: #111111;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .gf-language {
        height: 34px;
        padding: 0 8px;
    }

    .gf-language select {
        font-size: 13px;
    }

}

/* =========================================================
   MAIN HEADER
========================================================= */

.gf-main-header {
    width: 100%;
    height: 80px;

    background: #fff;

    border-bottom: 1px solid var(--gf-border);

    position: relative;
    z-index: 1000;

    transition: box-shadow .25s ease;
}

.gf-main-header.is-sticky,
.gf-main-header.sticky {
    box-shadow:
        0 5px 20px rgba(15,23,42,.08);
}

.gf-header-inner {
    width: 100%;
    max-width: 1440px;
    height: 100%;

    margin: auto;
    padding: 0 28px;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.gf-logo {
    flex: 0 0 auto;

    height: 64px;

    display: flex;
    align-items: center;
}

.gf-logo-image {
    display: block;

    width: auto;
    max-width: 205px;
    max-height: 58px;

    object-fit: contain;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.gf-desktop-nav {
    flex: 1;

    height: 100%;
    min-width: 0;
}

.gf-menu {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 3px;
}

.gf-menu-item {
    height: 100%;

    display: flex;
    align-items: center;

    position: relative;
}

.gf-menu-item > a {
    height: 44px;

    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #172033;

    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;

    white-space: nowrap;

    position: relative;

    transition: var(--gf-transition);
}

.gf-menu-item > a:hover {
    color: var(--gf-primary);
    background: var(--gf-primary-soft);
}

.gf-menu-item > a::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 2px;

    height: 2px;

    background: var(--gf-primary);

    border-radius: 20px;

    transform: scaleX(0);

    transition: transform .25s ease;
}

.gf-menu-item:hover > a::after,
.gf-menu-item.active > a::after {
    transform: scaleX(1);
}


/* =========================================================
   ARROW
========================================================= */

.gf-arrow {
    font-size: 10px;

    color: #64748b;

    transition: transform .25s ease;
}

.gf-has-dropdown:hover .gf-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP DROPDOWN
========================================================= */

.gf-dropdown {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;

    width: 250px;

    padding: 8px;

    background: #fff;

    border: 1px solid var(--gf-border);
    border-radius: 12px;

    box-shadow: var(--gf-shadow-lg);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    z-index: 9999;
}

.gf-has-dropdown:hover > .gf-dropdown,
.gf-has-dropdown:focus-within > .gf-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.gf-dropdown::before {
    content: "";

    position: absolute;

    top: -6px;
    left: 24px;

    width: 11px;
    height: 11px;

    background: #fff;

    border-left: 1px solid var(--gf-border);
    border-top: 1px solid var(--gf-border);

    transform: rotate(45deg);
}

.gf-dropdown li a {
    width: 100%;

    min-height: 40px;

    padding: 9px 12px;

    display: flex;
    align-items: center;

    color: #475569;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.35;

    border-radius: 7px;

    transition: var(--gf-transition);
}

.gf-dropdown li a:hover {
    color: var(--gf-primary);
    background: var(--gf-primary-soft);

    padding-left: 16px;
}

.gf-dropdown-wide {
    width: 290px;
}

.gf-dropdown-extra-wide {
    width: 330px;
}

.gf-dropdown-highlight {
    background: linear-gradient(
        135deg,
        #eff6ff,
        #fff
    );
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.gf-header-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================================================
   SEARCH BUTTON
   CSS ICON - NO FONT AWESOME REQUIRED
========================================================= */

.gf-search-button,
.gf-mobile-button {
    width: 43px;
    height: 43px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: #f1f5f9;
    color: #172033;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;

    transition: var(--gf-transition);
}

.gf-search-button:hover,
.gf-mobile-button:hover {
    background: var(--gf-primary-soft);
    color: var(--gf-primary);

    transform: translateY(-1px);
}


/* Search icon */

.gf-search-button i {
    display: none;
}

.gf-search-button::before {
    content: "";

    width: 15px;
    height: 15px;

    border: 2px solid currentColor;

    border-radius: 50%;

    position: absolute;

    top: 12px;
    left: 12px;
}

.gf-search-button::after {
    content: "";

    width: 8px;
    height: 2px;

    background: currentColor;

    position: absolute;

    transform: rotate(45deg);

    left: 26px;
    top: 28px;

    border-radius: 2px;
}


/* =========================================================
   SEARCH PANEL
========================================================= */

.gf-search-panel {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    padding: 18px 28px;

    background: rgba(255,255,255,.98);

    border-bottom: 1px solid var(--gf-border);

    box-shadow: var(--gf-shadow);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition: var(--gf-transition);

    z-index: 9000;
}

.gf-search-panel.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.gf-search-form {
    max-width: 900px;

    margin: auto;

    display: flex;
    align-items: center;

    gap: 10px;
}

.gf-search-input-wrap {
    flex: 1;
}

.gf-search-input-wrap input {
    width: 100%;
    height: 50px;

    padding: 0 16px;

    background: #f8fafc;

    border: 1px solid var(--gf-border);
    border-radius: 10px;

    color: #172033;

    outline: none;

    font-size: 14px;
}

.gf-search-input-wrap input:focus {
    background: #fff;

    border-color: var(--gf-primary);

    box-shadow:
        0 0 0 4px rgba(37,99,235,.10);
}

.gf-search-form button {
    height: 50px;

    padding: 0 25px;

    border: 0;
    border-radius: 10px;

    background: var(--gf-primary);
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--gf-transition);
}

.gf-search-form button:hover {
    background: var(--gf-primary-dark);
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.gf-mobile-button {
    display: none;
}

.gf-mobile-button i {
    display: none;
}


/* Hamburger CSS icon */

.gf-mobile-button::before,
.gf-mobile-button::after {
    content: "";

    position: absolute;

    width: 20px;
    height: 2px;

    background: currentColor;

    border-radius: 3px;

    transition: .25s ease;
}

.gf-mobile-button::before {
    box-shadow:
        0 -7px 0 currentColor,
        0 7px 0 currentColor;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.gf-mobile-overlay {
    position: fixed;

    inset: 0;

    background: rgba(15,23,42,.55);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    z-index: 99998;

    transition: .25s ease;
}

.gf-mobile-overlay.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.gf-mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: min(390px, 92vw);
    height: 100vh;

    background: #fff;

    box-shadow:
        -15px 0 45px rgba(15,23,42,.20);

    transform: translateX(105%);

    transition: transform .3s ease;

    z-index: 99999;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.gf-mobile-menu.active {
    transform: translateX(0);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.gf-mobile-menu-header {
    min-height: 70px;

    padding: 0 18px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gf-mobile-menu-header img {
    max-width: 165px;
    max-height: 45px;

    object-fit: contain;
}

.gf-mobile-close {
    width: 40px;
    height: 40px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;

    background: rgba(255,255,255,.08);

    color: #fff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}


/* =========================================================
   MOBILE CONTENT
========================================================= */

.gf-mobile-menu-content {
    flex: 1;

    padding: 12px;

    overflow-y: auto;
    overflow-x: hidden;
}

.gf-mobile-menu-content::-webkit-scrollbar {
    width: 5px;
}

.gf-mobile-menu-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}


/* =========================================================
   MOBILE LINKS
========================================================= */

.gf-mobile-link {
    min-height: 48px;

    padding: 10px 12px;

    display: flex;
    align-items: center;

    color: #172033;

    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;

    transition: var(--gf-transition);
}

.gf-mobile-link:hover {
    color: var(--gf-primary);
    background: var(--gf-primary-soft);
}


/* =========================================================
   MOBILE PARENT
========================================================= */

.gf-mobile-parent {
    width: 100%;

    display: flex;
    align-items: center;
}

.gf-mobile-parent > a {
    flex: 1;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.gf-mobile-toggle {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border: 0;

    background: transparent;

    color: #64748b;

    border-radius: 8px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: var(--gf-transition);
}

.gf-mobile-toggle:hover {
    color: var(--gf-primary);
    background: var(--gf-primary-soft);
}

.gf-mobile-toggle i {
    display: none;
}

.gf-mobile-toggle::before {
    content: "";

    width: 8px;
    height: 8px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg);

    margin-top: -4px;

    transition: .25s ease;
}

.gf-mobile-group.open .gf-mobile-toggle::before {
    transform: rotate(225deg);

    margin-top: 4px;
}


/* =========================================================
   MOBILE SUBMENU
========================================================= */

.gf-mobile-submenu {
    max-height: 0;

    overflow: hidden;

    margin-left: 12px;

    padding-left: 8px;

    border-left: 1px solid #e5e7eb;

    opacity: 0;

    transition:
        max-height .3s ease,
        opacity .25s ease;
}

.gf-mobile-group.open .gf-mobile-submenu {
    max-height: 1200px;

    opacity: 1;

    margin-bottom: 5px;
}

.gf-mobile-submenu a {
    min-height: 42px;

    padding: 8px 11px;

    display: flex;
    align-items: center;

    color: #475569;

    font-size: 13px;
    font-weight: 500;

    border-radius: 7px;

    transition: var(--gf-transition);
}

.gf-mobile-submenu a:hover {
    color: var(--gf-primary);
    background: var(--gf-primary-soft);

    padding-left: 15px;
}


/* =========================================================
   MOBILE ACCOUNT
========================================================= */

.gf-mobile-account {
    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid #e5e7eb;
}

.gf-mobile-account a {
    min-height: 44px;

    padding: 9px 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #172033;

    font-size: 13px;
    font-weight: 600;

    border-radius: 8px;
}

.gf-mobile-account a:hover {
    color: var(--gf-primary);
    background: var(--gf-primary-soft);
}


/* =========================================================
   BODY LOCK
========================================================= */

body.gf-menu-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .gf-header-inner {
        gap: 15px;
    }

    .gf-menu-item > a {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 13px;
    }

    .gf-logo-image {
        max-width: 180px;
    }
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991px) {

    .gf-topbar {
        display: none;
    }

    .gf-main-header {
        height: 68px;
    }

    .gf-header-inner {
        padding: 0 18px;
    }

    .gf-desktop-nav {
        display: none;
    }

    .gf-header-actions {
        margin-left: auto;
    }

    .gf-mobile-button {
        display: inline-flex;
    }

    .gf-logo-image {
        max-width: 190px;
        max-height: 50px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .gf-main-header {
        height: 64px;
    }

    .gf-header-inner {
        padding: 0 14px;
    }

    .gf-logo-image {
        max-width: 175px;
        max-height: 45px;
    }

    .gf-search-button,
    .gf-mobile-button {
        width: 40px;
        height: 40px;
    }

    .gf-search-panel {
        padding: 12px 14px;
    }

    .gf-search-form {
        gap: 7px;
    }

    .gf-search-input-wrap input,
    .gf-search-form button {
        height: 46px;
    }

    .gf-search-form button {
        padding: 0 16px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .gf-main-header {
        height: 60px;
    }

    .gf-header-inner {
        padding: 0 10px;
    }

    .gf-logo-image {
        max-width: 155px;
        max-height: 42px;
    }

    .gf-header-actions {
        gap: 5px;
    }

    .gf-search-button,
    .gf-mobile-button {
        width: 38px;
        height: 38px;
    }

    .gf-search-button::before {
        top: 10px;
        left: 10px;
    }

    .gf-search-button::after {
        left: 24px;
        top: 26px;
    }

    .gf-mobile-menu {
        width: 94vw;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .gf-logo-image {
        max-width: 135px;
    }

    .gf-search-button,
    .gf-mobile-button {
        width: 36px;
        height: 36px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

#gf-site-header a:focus-visible,
#gf-site-header button:focus-visible,
#gf-site-header input:focus-visible,
#gf-site-header select:focus-visible {
    outline: 2px solid var(--gf-primary);
    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION.gf-topbar
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #gf-site-header *,
    #gf-site-header *::before,
    #gf-site-header *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   GOOGLE TRANSLATE
========================================================= */

#gf-site-header #google_translate_element2 {
    display: none !important;
}

#gf-site-header .goog-te-banner-frame {
    display: none !important;
}

