/* =========================================================
   DIVINE CREATIONS — GLOBAL HEADER
   ========================================================= */

/* =========================================================
   ROOT HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    padding: 22px 0;

    background: transparent;

    transition:
        background-color 0.35s ease,
        padding 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.site-header > .container {
    width: min(calc(100% - 80px), 1280px);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-header .logo {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    margin: 0;
    padding: 0;

    text-decoration: none;
    line-height: 1;
}

.site-header .logo .site-logo {
    display: block;

    width: 190px;
    height: auto;

    max-height: 58px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header .main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
}

.site-header .nav-menu {
    display: flex;
    align-items: center;

    gap: 34px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-header .nav-menu > li {
    margin: 0;
    padding: 0;
}

.site-header .nav-menu > li > a {
    position: relative;

    display: inline-block;

    padding: 8px 0;

    color: rgba(255, 255, 255, 0.92);

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;

    letter-spacing: 0.8px;

    text-decoration: none;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}


/* Gold underline */

.site-header .nav-menu > li > a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 1px;

    width: 0;
    height: 1px;

    background: #c9a66b;

    transition: width 0.3s ease;
}


/* Hover + active */

.site-header .nav-menu > li > a:hover,
.site-header .nav-menu > li.current-menu-item > a,
.site-header .nav-menu > li.current_page_item > a {
    color: #c9a66b;
}

.site-header .nav-menu > li > a:hover::after,
.site-header .nav-menu > li.current-menu-item > a::after,
.site-header .nav-menu > li.current_page_item > a::after {
    width: 100%;
}


/* =========================================================
   HEADER CTA
   ========================================================= */

.site-header .header-cta {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}

.site-header .header-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 118px;

    padding: 11px 20px;

    border: 1px solid #c9a66b;

    background: #c9a66b;
    color: #171615;

    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;

    letter-spacing: 1px;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.site-header .header-cta .btn:hover {
    background: transparent;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.site-header .menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;
}

.site-header .menu-toggle span {
    display: block;

    width: 20px;
    height: 1px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        background-color 0.3s ease;
}


/* =========================================================
   SCROLLED HEADER
   ========================================================= */

.site-header.scrolled {
    padding: 14px 0;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* Scrolled navigation */

.site-header.scrolled .nav-menu > li > a {
    color: #171b2d;
}

.site-header.scrolled .nav-menu > li > a:hover,
.site-header.scrolled .nav-menu > li.current-menu-item > a,
.site-header.scrolled .nav-menu > li.current_page_item > a {
    color: #c9a66b;
}

.site-header.scrolled .nav-menu > li > a::after {
    background: #c9a66b;
}


/* Scrolled mobile menu */

.site-header.scrolled .menu-toggle {
    border-color: rgba(23, 27, 45, 0.25);
}

.site-header.scrolled .menu-toggle span {
    background: #171b2d;
}


/* =========================================================
   TESTIMONIAL PAGE HEADER
   =========================================================
   
   IMPORTANT:
   Testimonials hero must sit behind the header.
   We therefore keep the header absolute on this page,
   regardless of the global fixed/scrolled state.
   ========================================================= */

body.page-template-page-testimonial-php .site-header,
body.page-template-page-testimonial .site-header,
body:has(.testimonial-page-wrapper) .site-header {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    z-index: 99999 !important;

    padding: 22px 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* =========================================================
   TESTIMONIAL PAGE — FORCE NON-SCROLLED APPEARANCE
   =========================================================
   
   This is the key fix.
   
   If main.js adds .scrolled, the global .scrolled
   styles must NOT turn this header white.
   ========================================================= */

body.page-template-page-testimonial-php .site-header.scrolled,
body.page-template-page-testimonial .site-header.scrolled,
body:has(.testimonial-page-wrapper) .site-header.scrolled {
    position: absolute !important;

    top: 0 !important;

    padding: 22px 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* =========================================================
   TESTIMONIAL PAGE — LOGO
   ========================================================= */

body.page-template-page-testimonial-php .site-header .logo,
body.page-template-page-testimonial .site-header .logo,
body:has(.testimonial-page-wrapper) .site-header .logo {
    position: relative;
    z-index: 100000;

    color: #ffffff !important;

    text-decoration: none !important;
}

body.page-template-page-testimonial-php .site-header .site-logo,
body.page-template-page-testimonial .site-header .site-logo,
body:has(.testimonial-page-wrapper) .site-header .site-logo {
    display: block;

    opacity: 1;
}


/* =========================================================
   TESTIMONIAL PAGE — NAVIGATION
   ========================================================= */

body.page-template-page-testimonial-php .site-header .nav-menu > li > a,
body.page-template-page-testimonial .site-header .nav-menu > li > a,
body:has(.testimonial-page-wrapper) .site-header .nav-menu > li > a {
    color: rgba(255, 255, 255, 0.94) !important;
}

body.page-template-page-testimonial-php .site-header .nav-menu > li > a:hover,
body.page-template-page-testimonial-php .site-header .nav-menu > li.current-menu-item > a,
body.page-template-page-testimonial-php .site-header .nav-menu > li.current_page_item > a,

body.page-template-page-testimonial .site-header .nav-menu > li > a:hover,
body.page-template-page-testimonial .site-header .nav-menu > li.current-menu-item > a,
body.page-template-page-testimonial .site-header .nav-menu > li.current_page_item > a,

body:has(.testimonial-page-wrapper) .site-header .nav-menu > li > a:hover,
body:has(.testimonial-page-wrapper) .site-header .nav-menu > li.current-menu-item > a,
body:has(.testimonial-page-wrapper) .site-header .nav-menu > li.current_page_item > a {
    color: #c9a66b !important;
}

body.page-template-page-testimonial-php .site-header .nav-menu > li > a::after,
body.page-template-page-testimonial .site-header .nav-menu > li > a::after,
body:has(.testimonial-page-wrapper) .site-header .nav-menu > li > a::after {
    background: #c9a66b !important;
}


/* =========================================================
   TESTIMONIAL PAGE — SCROLLED NAVIGATION PROTECTION
   ========================================================= */

body.page-template-page-testimonial-php .site-header.scrolled .nav-menu > li > a,
body.page-template-page-testimonial .site-header.scrolled .nav-menu > li > a,
body:has(.testimonial-page-wrapper) .site-header.scrolled .nav-menu > li > a {
    color: rgba(255, 255, 255, 0.94) !important;
}

body.page-template-page-testimonial-php .site-header.scrolled .nav-menu > li > a:hover,
body.page-template-page-testimonial-php .site-header.scrolled .nav-menu > li.current-menu-item > a,
body.page-template-page-testimonial-php .site-header.scrolled .nav-menu > li.current_page_item > a,

body.page-template-page-testimonial .site-header.scrolled .nav-menu > li > a:hover,
body.page-template-page-testimonial .site-header.scrolled .nav-menu > li.current-menu-item > a,
body.page-template-page-testimonial .site-header.scrolled .nav-menu > li.current_page_item > a,

body:has(.testimonial-page-wrapper) .site-header.scrolled .nav-menu > li > a:hover,
body:has(.testimonial-page-wrapper) .site-header.scrolled .nav-menu > li.current-menu-item > a,
body:has(.testimonial-page-wrapper) .site-header.scrolled .nav-menu > li.current_page_item > a {
    color: #c9a66b !important;
}


/* =========================================================
   TESTIMONIAL PAGE — CTA
   ========================================================= */

body.page-template-page-testimonial-php .site-header .header-cta .btn,
body.page-template-page-testimonial .site-header .header-cta .btn,
body:has(.testimonial-page-wrapper) .site-header .header-cta .btn {
    background: #c9a66b !important;

    border-color: #c9a66b !important;

    color: #171615 !important;
}

body.page-template-page-testimonial-php .site-header .header-cta .btn:hover,
body.page-template-page-testimonial .site-header .header-cta .btn:hover,
body:has(.testimonial-page-wrapper) .site-header .header-cta .btn:hover {
    background: #dfc795 !important;

    border-color: #dfc795 !important;

    color: #171615 !important;
}


/* =========================================================
   TESTIMONIAL PAGE — MOBILE TOGGLE
   ========================================================= */

body.page-template-page-testimonial-php .site-header .menu-toggle,
body.page-template-page-testimonial .site-header .menu-toggle,
body:has(.testimonial-page-wrapper) .site-header .menu-toggle {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

body.page-template-page-testimonial-php .site-header .menu-toggle span,
body.page-template-page-testimonial .site-header .menu-toggle span,
body:has(.testimonial-page-wrapper) .site-header .menu-toggle span {
    background: #ffffff !important;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid #c9a66b;

    outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .site-header > .container {
        width: min(calc(100% - 50px), 1280px);

        gap: 25px;
    }

    .site-header .nav-menu {
        gap: 20px;
    }

    .site-header .nav-menu > li > a {
        font-size: 11px;
    }

    .site-header .header-cta .btn {
        min-width: 105px;

        padding: 10px 16px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .site-header {
        padding: 16px 0;
    }

    .site-header > .container {
        width: calc(100% - 36px);

        gap: 15px;
    }

    .site-header .logo .site-logo {
        width: 145px;
        max-height: 48px;
    }


    /* Mobile navigation */

    .site-header .main-nav {
        position: absolute;

        top: 100%;
        left: 18px;
        right: 18px;

        margin: 0;

        padding: 20px;

        background: rgba(23, 22, 21, 0.98);

        border: 1px solid rgba(201, 166, 107, 0.2);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .site-header.menu-open .main-nav {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }


    /* Mobile menu list */

    .site-header .nav-menu {
        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }

    .site-header .nav-menu > li > a {
        display: block;

        padding: 13px 4px;

        font-size: 12px;
    }

    .site-header .nav-menu > li > a::after {
        display: none;
    }


    /* Hide CTA */

    .site-header .header-cta {
        margin-left: auto;
    }

    .site-header .header-cta .btn {
        display: none;
    }


    /* Hamburger */

    .site-header .menu-toggle {
        display: flex;
    }


    /* Hamburger animation */

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }


    /* Normal scrolled header */

    .site-header.scrolled {
        padding: 12px 0;
    }


    /* Testimonial page must remain overlayed */

    body.page-template-page-testimonial-php .site-header,
    body.page-template-page-testimonial .site-header,
    body:has(.testimonial-page-wrapper) .site-header,

    body.page-template-page-testimonial-php .site-header.scrolled,
    body.page-template-page-testimonial .site-header.scrolled,
    body:has(.testimonial-page-wrapper) .site-header.scrolled {
        padding: 16px 0 !important;

        position: absolute !important;

        background: transparent !important;

        box-shadow: none !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }


    /* Testimonial mobile menu remains dark */

    body.page-template-page-testimonial-php .site-header .main-nav,
    body.page-template-page-testimonial .site-header .main-nav,
    body:has(.testimonial-page-wrapper) .site-header .main-nav {
        background: rgba(18, 14, 11, 0.98) !important;

        border-color: rgba(201, 166, 107, 0.25) !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .site-header > .container {
        width: calc(100% - 28px);
    }

    .site-header .logo .site-logo {
        width: 125px;
    }
}
/* =========================================================
   PROJECTS — ACTIVE NAVIGATION LINK
   ========================================================= */

.site-header .nav-menu a.dc-projects-active {
    color: #c9b27e !important;
}

.site-header .nav-menu a.dc-projects-active::after {
    right: 0 !important;
    width: 100% !important;
    opacity: 1 !important;
    background: #c9b27e !important;
}