/* =============================================
   ALFAWOOD CUSTOM HEADER — header.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Syne:wght@600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --aw-gold:       #c8a96e;
    --aw-gold-dark:  #b8935a;
    --aw-dark:       #1e1e1e;
    --aw-white:      #ffffff;
    --aw-radius:     50px;
    --aw-transition: 0.35s ease;
    --aw-font-en:    'Barlow', sans-serif;
    --aw-font-ar:    'Syne', sans-serif;
}

/* ===== RESET FOR HEADER ===== */
#aw-header *,
#aw-header *::before,
#aw-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== HEADER BASE ===== */
#aw-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    transition: background var(--aw-transition),
                box-shadow var(--aw-transition),
                padding var(--aw-transition);
}

/* Transparent state */
#aw-header.is-transparent {
    background: transparent;
}

/* Scrolled state */
#aw-header.is-scrolled {
    background: var(--aw-white);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

/* ===== INNER GRID ===== */
.aw-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 48px;
    max-width: 1440px;
    margin: 0 auto;
    transition: padding var(--aw-transition);
}

#aw-header.is-scrolled .aw-header-inner {
    padding: 10px 48px;
}

/* ===== COLUMNS ===== */
/* Unified layout for both EN & AR: Logo Left | Nav Center | Button Right */
.aw-col-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.aw-col-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aw-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* ===== LOGO ===== */
.aw-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.aw-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    transition: height var(--aw-transition);
    display: block;
}

#aw-header.is-scrolled .aw-logo-img {
    height: 46px;
}

.aw-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.aw-logo-ar {
    font-family: var(--aw-font-ar);
    font-size: 13px;
    font-weight: 700;
    color: var(--aw-gold);
    letter-spacing: 0.3px;
}

.aw-logo-en {
    font-family: var(--aw-font-en);
    font-size: 10px;
    font-weight: 600;
    color: var(--aw-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ===== NAV LINKS ===== */
.aw-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Arabic nav: reverse direction */
[dir="rtl"] .aw-nav {
    flex-direction: row-reverse;
}

.aw-nav .nav-link {
    font-family: var(--aw-font-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 25px !important;
    border-radius: 4px;
    position: relative;
    transition: color var(--aw-transition);
    white-space: nowrap;
}

/* Arabic nav font */
[dir="rtl"] .aw-nav .nav-link {
    font-family: var(--aw-font-ar);
    letter-spacing: 0;
    font-size: 13px;
}

/* Transparent: white links */
.is-transparent .aw-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Scrolled: dark links */
.is-scrolled .aw-nav .nav-link {
    color: var(--aw-dark);
}

/* Hover */
.aw-nav .nav-link:hover {
    color: var(--aw-gold) !important;
}

/* Active dot */
.aw-nav .nav-link.active {
    color: var(--aw-gold) !important;
}

.aw-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--aw-gold);
}

/* ===== LET'S TALK BUTTON ===== */
.aw-btn-talk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--aw-gold);
    color: var(--aw-white) !important;
    font-family: var(--aw-font-en);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 16px !important;
    border-radius: var(--aw-radius);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--aw-transition), transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(200, 169, 110, 0.35);
}

[dir="rtl"] .aw-btn-talk {
    font-family: var(--aw-font-ar);
    flex-direction: row-reverse;
}

.aw-btn-talk svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.aw-btn-talk:hover {
    background: var(--aw-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 169, 110, 0.45);
}

/* ===== HAMBURGER ===== */
.aw-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    outline: none;
    flex-shrink: 0;
}

.aw-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.is-transparent .aw-hamburger span {
    background: var(--aw-white);
}

.is-scrolled .aw-hamburger span {
    background: var(--aw-dark);
}

/* Hamburger open state */
#aw-header.menu-open .aw-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--aw-dark) !important;
}
#aw-header.menu-open .aw-hamburger span:nth-child(2) {
    opacity: 0;
}
#aw-header.menu-open .aw-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--aw-dark) !important;
}

/* ===== MOBILE MENU ===== */
.aw-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--aw-white);
    padding: 12px 32px 24px;
    border-top: 1px solid #f0ede8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.aw-mobile-menu.open {
    display: flex;
    max-height: 500px;
}

.aw-mobile-menu .nav-link {
    font-family: var(--aw-font-en);
    font-size: 15px;
    font-weight: 500;
    color: var(--aw-dark);
    text-decoration: none;
    padding: 13px 0;
    border-bottom: 1px solid #f5f2ee;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    display: block;
}

[dir="rtl"] .aw-mobile-menu .nav-link {
    font-family: var(--aw-font-ar);
    text-align: right;
}

.aw-mobile-menu .nav-link:hover,
.aw-mobile-menu .nav-link.active {
    color: var(--aw-gold);
}

.aw-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    gap: 12px;
}

[dir="rtl"] .aw-mobile-footer {
    flex-direction: row-reverse;
}

/* ===== RESPONSIVE ===== */
/* =====================================
   LARGE TABLETS & SMALL LAPTOPS
===================================== */
@media (max-width: 1280px) {

    .aw-header-inner {
        padding: 14px 30px;
    }

    .aw-logo-img {
        height: 54px;
    }

    .aw-nav .nav-link {
        padding: 6px 14px !important;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .aw-btn-talk {
        padding: 12px 18px !important;
        font-size: 13px;
    }
}

/* =====================================
   TABLETS
===================================== */
@media (max-width: 1024px) {

    .aw-header-inner {
        grid-template-columns: auto 1fr auto;
        padding: 12px 24px;
        gap: 10px;
    }

    .aw-nav {
        display: none;
    }

    .aw-hamburger {
        display: flex;
    }

    .aw-logo-img {
        height: 48px;
    }

    .aw-btn-talk {
        padding: 10px 16px !important;
        font-size: 12px;
    }

    .aw-logo-ar {
        font-size: 11px;
    }

    .aw-logo-en {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

}

/* =====================================
   MOBILE
===================================== */
@media (max-width: 768px) {

    .aw-header-inner {
        padding: 12px 18px;
        margin: 0 auto;
    }

    .aw-logo-text {
        display: none;
    }

    .aw-logo-img {
        height: 42px;
    }

    .aw-btn-talk {
        min-width: auto;
        padding: 10px 14px !important;
        font-size: 11px;
        gap: 6px;
    }

    .aw-btn-talk svg {
        width: 14px;
        height: 14px;
    }

    .aw-mobile-menu {
        padding: 12px 20px 20px;
    }
}

/* =====================================
   SMALL MOBILE
===================================== */
@media (max-width: 480px) {

    .aw-header-inner {
        padding: 10px 14px;
    }

    .aw-logo-img {
        height: 38px;
    }

    .aw-btn-talk {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border-radius: 50%;
        justify-content: center;
    }

    .aw-btn-talk span {
        display: none;
    }

    .aw-btn-talk svg {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    .aw-hamburger {
        padding: 4px;
    }

    .aw-mobile-menu .nav-link {
        font-size: 14px;
    }
}

/* =====================================
   EXTRA SMALL DEVICES
===================================== */
@media (max-width: 360px) {

    .aw-header-inner {
        padding: 8px 10px;
    }

    .aw-logo-img {
        height: 34px;
    }

    .aw-btn-talk {
        width: 36px;
        height: 36px;
    }
}

/* ===== BODY OFFSET (prevent content under fixed header) ===== */
body {
    padding-top: 0 !important; /* hero pages: no offset, header overlaps */
}
