/* ============================================
   Header & Footer - Professional Redesign
   Matches Home & About Design Language
   ============================================ */

:root {
    --font-heading: 'Playfair Display', 'Cairo', Georgia, serif;
    --font-body: 'DM Sans', 'Poppins', -apple-system, sans-serif;
    --gold: #C6A87C;
    --gold-light: #d4b896;
    --forest: #0b1d16;
    --forest-light: #142a22;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 3000;
    background: #fff;
    box-shadow: 0 1px 0 rgba(11, 29, 22, 0.08);
}

.site-header__top {
    background: var(--forest);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
}

.site-header__top-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header__top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search in top bar */
.site-header__search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s;
}

.site-header__search:hover,
.site-header__search:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
}

.site-header__search-input {
    width: 140px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.8125rem;
}

.site-header__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.site-header__search-input:focus {
    outline: none;
}

.site-header__search-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    transition: color 0.2s;
}

.site-header__search-btn:hover {
    color: #fff;
}

.site-header__tagline {
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.site-header__phone {
    color: #fff;
}

.site-header__phone i {
    margin-inline-end: 8px;
    color: var(--gold);
    font-size: 0.875rem;
}

/* Custom language dropdown (no select) */
.site-header__lang-wrap {
    position: relative;
}

.site-header__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.site-header__lang-btn:hover,
.site-header__lang-btn:focus {
    border-color: var(--gold);
    outline: none;
}

.site-header__lang-btn i {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.site-header__lang-wrap.site-header__lang-wrap--open .site-header__lang-btn i {
    transform: rotate(180deg);
}

.site-header__lang-list {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    min-width: 140px;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid rgba(11, 29, 22, 0.08);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 4000;
}

.site-header__lang-list--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__lang-item {
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--forest);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.site-header__lang-item:hover {
    background: rgba(198, 168, 124, 0.12);
    color: var(--gold);
}

.site-header__lang-item--active {
    background: rgba(198, 168, 124, 0.15);
    color: var(--gold);
    font-weight: 600;
}

.site-header__main {
    position: relative;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.site-header__logo:hover {
    color: var(--forest);
    opacity: 0.9;
}

.site-header__logo-svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-header__links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.site-header__link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.site-header__link:hover,
.site-header__link--active {
    color: var(--gold);
}

/* Products dropdown */
.site-header__dropdown-wrap {
    position: relative;
}

.site-header__link--has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-header__link--has-dropdown i {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.site-header__dropdown-wrap:hover .site-header__link--has-dropdown i {
    transform: rotate(180deg);
}

.site-header__dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    margin: 0;
    padding: 12px 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(11, 29, 22, 0.08);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
}

.site-header__dropdown-wrap:hover .site-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__dropdown li {
    margin: 0;
}

.site-header__dropdown a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--forest);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-header__dropdown a:hover {
    background: rgba(198, 168, 124, 0.12);
    color: var(--gold);
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--forest) !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.site-header__cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 168, 124, 0.35);
}

/* Mobile menu toggle */
.site-header__toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--forest);
}

.site-header__toggle i {
    font-size: 1.5rem;
}

.site-header__search-mobile {
    display: none;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--forest);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
}

.site-footer__main {
    padding: 80px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.site-footer__brand {
    max-width: 320px;
}

.site-footer__logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 20px;
    text-decoration: none;
}

.site-footer__logo:hover {
    color: var(--gold-light);
}

.site-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
}

.site-footer__social {
    display: flex;
    gap: 12px;
}

.site-footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.site-footer__social-link:hover {
    background: var(--gold);
    color: var(--forest);
}

.site-footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links li {
    margin-bottom: 12px;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.site-footer__links a:hover {
    color: var(--gold);
}

.site-footer__contact p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.site-footer__contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.site-footer__contact a:hover {
    color: var(--gold);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 5%;
    text-align: center;
}

.site-footer__copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* RTL */
html[dir="rtl"] .site-header__phone i {
    margin-inline-end: 0;
    margin-inline-start: 8px;
}

html[dir="rtl"] .site-header__cta i.fa-arrow-right {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 1024px) {
    .site-header__top-left .site-header__tagline {
        display: none;
    }
    .site-header__search {
        display: none;
    }
    .site-header__nav {
        gap: 24px;
    }
    .site-header__links {
        gap: 24px;
    }
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header__top {
        padding: 8px 5%;
    }
    .site-header__top-left .site-header__phone {
        display: none;
    }
    .site-header__lang-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .site-header__main {
        padding: 12px 5%;
    }
    .site-header__nav {
        display: none;
    }
    .site-header__nav--open {
        display: flex;
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        inset-inline-end: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
    .site-header__search-mobile {
        display: flex !important;
        margin-bottom: 20px;
        border: 2px solid rgba(11, 29, 22, 0.1);
        border-radius: 4px;
        overflow: hidden;
    }
    .site-header__search-mobile-input {
        flex: 1;
        padding: 12px 16px;
        border: none;
        font-family: var(--font-body);
        font-size: 1rem;
    }
    .site-header__search-mobile-input:focus {
        outline: none;
    }
    .site-header__search-mobile-btn {
        padding: 12px 16px;
        background: var(--gold);
        color: var(--forest);
        border: none;
        cursor: pointer;
    }
    .site-header__links {
        flex-direction: column;
        gap: 0;
    }
    .site-header__links li {
        border-bottom: 1px solid rgba(11, 29, 22, 0.06);
    }
    .site-header__link {
        display: block;
        padding: 16px 0;
    }
    .site-header__dropdown-wrap {
        border-bottom: 1px solid rgba(11, 29, 22, 0.06);
    }
    .site-header__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-inline-start: 20px;
        margin: 0 0 12px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .site-header__dropdown--open {
        max-height: 300px;
    }
    .site-header__dropdown a {
        padding: 10px 0;
        border: none;
    }
    .site-header__dropdown-wrap:hover .site-header__dropdown {
        transform: none;
    }
    .site-header__toggle {
        display: block;
    }
    .site-footer__main {
        padding: 60px 5% 40px;
    }
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .site-footer__brand {
        max-width: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .site-header__top {
        padding: 8px 3%;
    }
    .site-header__main {
        padding: 12px 3%;
    }
    .site-header__lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .site-header__lang-list {
        min-width: 120px;
    }
}
