/* ============================================================
   GF Luxury Header Widget — Frontend CSS
   Version 1.1.0 — Astra conflict fixed
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
.gf-header-wrap *,
.gf-header-wrap *::before,
.gf-header-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Astra Theme Conflict Fix ─────────────────────────────── */
body.gf-header-active #masthead,
body.gf-header-active .ast-desktop-header,
body.gf-header-active #ast-fixed-header,
body.gf-header-active .ast-above-header-wrap,
body.gf-header-active .ast-primary-header-bar,
body.gf-header-active .ast-below-header-wrap,
body.gf-header-active header.ast-header-break-point,
body.gf-header-active #ast-hfb-header {
    display: none !important;
}

body.gf-header-active {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.gf-header-active .ast-above-header {
    display: none !important;
}

/* ── Header Bar ───────────────────────────────────────────── */
.gf-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px;
    z-index: 99999 !important;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.4s ease, box-shadow 0.35s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.gf-header.is-sticky {
    background-color: rgba(10, 10, 10, 0.92) !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* ── Header Inner ─────────────────────────────────────────── */
.gf-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100%;
    padding: 0 32px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.gf-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    z-index: 2;
    flex-shrink: 0;
    order: 1;
}

.gf-logo img {
    width: 60px;
    height: auto;
    display: block;
}

.gf-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
}

/* ── Burger Button ────────────────────────────────────────── */
.gf-burger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #ffffff !important;
    padding: 10px 12px !important;
    border-radius: 4px;
    z-index: 100001 !important;
    position: relative;
    transition: color 0.25s ease, background-color 0.25s ease;
    line-height: 1;
    order: 2;
    flex-shrink: 0;
    box-shadow: none !important;
    outline: none;
    /* SVG burger size */
    width: 44px;
    height: 44px;
}

.gf-burger:hover {
    color: #c9a96e !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.gf-burger:focus {
    outline: 2px solid rgba(201, 169, 110, 0.5);
    outline-offset: 2px;
}

/* ── Burger spans ─────────────────────────────────────────── */
.gf-burger-open,
.gf-burger-close {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* FontAwesome icon override — no dots */
.gf-burger-open i,
.gf-burger-close i {
    font-size: 22px !important;
    line-height: 1 !important;
    display: block;
}

.gf-burger-open i::before,
.gf-burger-close i::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* SVG inside burger */
.gf-burger-open svg,
.gf-burger-close svg {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* ── Fullscreen Menu ──────────────────────────────────────── */
.gf-fullscreen-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100000 !important;
    background-color: rgba(12, 10, 8, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gf-fullscreen-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Slide Down animation */
.gf-header-wrap[data-overlay-anim="slide-down"] .gf-fullscreen-menu {
    opacity: 1;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(.77,0,.175,1), visibility 0.45s;
}
.gf-header-wrap[data-overlay-anim="slide-down"] .gf-fullscreen-menu.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: all;
}

/* Scale In animation */
.gf-header-wrap[data-overlay-anim="scale-in"] .gf-fullscreen-menu {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.gf-header-wrap[data-overlay-anim="scale-in"] .gf-fullscreen-menu.is-open {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: all;
}

/* ── Nav ──────────────────────────────────────────────────── */
.gf-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.gf-nav-links {
    list-style: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 !important;
    margin: 0 !important;
}

/* Nav Link */
.gf-nav-link {
    display: inline-block;
    text-decoration: none !important;
    color: #e8e0d0 !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    background: none !important;
    box-shadow: none !important;
}

.gf-nav-links.has-underline .gf-nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #c9a96e;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}
.gf-nav-links.has-underline .gf-nav-link:hover::after,
.gf-nav-links.has-underline .gf-nav-link.current-menu-item::after {
    width: 100%;
}

.gf-nav-link:hover {
    color: #c9a96e !important;
}

.gf-nav-link.current-menu-item {
    color: #c9a96e !important;
}

/* ── SEARCH COMPLETELY REMOVED ────────────────────────────── */
.gf-fullscreen-menu .search-form,
.gf-fullscreen-menu .searchform,
.gf-fullscreen-menu input[type="search"],
.gf-fullscreen-menu .wp-block-search,
.gf-fullscreen-menu form,
.gf-nav-links .search-item,
.gf-nav-links li:has(input[type="search"]) {
    display: none !important;
    visibility: hidden !important;
}

/* ── Contact Bar ──────────────────────────────────────────── */
.gf-menu-contact-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.gf-menu-contact {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Didact Gothic', 'Gill Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.gf-menu-contact svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.gf-menu-contact a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.25s ease;
}
.gf-menu-contact a:hover {
    color: #c9a96e;
}

/* ── Menu link stagger animation ──────────────────────────── */
.gf-nav-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gf-fullscreen-menu.is-open .gf-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(1) { transition-delay: 0.08s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(2) { transition-delay: 0.13s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(3) { transition-delay: 0.18s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(4) { transition-delay: 0.23s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(5) { transition-delay: 0.28s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(6) { transition-delay: 0.33s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(7) { transition-delay: 0.38s; }
.gf-fullscreen-menu.is-open .gf-nav-item:nth-child(8) { transition-delay: 0.43s; }

/* ── Body scroll lock ─────────────────────────────────────── */
body.gf-menu-open {
    overflow: hidden !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .gf-menu-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 24px;
    }

    .gf-header-inner {
        padding: 0 20px;
    }
}
