/* ============================================================
   ZAEM EL GOLD — HEADER & FOOTER COMPONENTS
   ============================================================ */

/* ========== HEADER ========== */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    height: 72px;
    background: rgba(4, 13, 31, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 140, 255, 0.14);
    transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
#site-header.scrolled {
    background: rgba(4, 13, 31, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 64px;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo-img {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    border: 2px solid rgba(0, 140, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 150, 255, 0.3);
    flex-shrink: 0;
    transition: box-shadow .3s ease;
}
.header-logo:hover .header-logo-img {
    box-shadow: 0 0 28px rgba(0, 150, 255, 0.55);
}
.header-logo-img img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%; display: block;
}
.header-logo-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(90deg,#c8a400,#ffe066,#fff5b0,#ffd700,#c8a400,#ffe066);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hdr-gold 3s linear infinite;
    white-space: nowrap;
}
@keyframes hdr-gold {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* Desktop Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    font-family: 'Cairo', sans-serif;
    color: rgba(200, 225, 255, 0.7);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 10px;
    transition: color .25s, background .25s;
    white-space: nowrap;
}
.nav-link:hover {
    color: #fff;
    background: rgba(0, 140, 255, 0.1);
}
.nav-link.active {
    color: #0096ff;
    background: rgba(0, 150, 255, 0.1);
}

/* CTA button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0055cc, #0096ff);
    color: #fff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(0, 150, 255, 0.4);
    transition: transform .25s, box-shadow .25s;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 150, 255, 0.55);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5.5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background .25s;
    flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.07); }
.hamburger span {
    display: block;
    width: 24px; height: 2.5px;
    background: #fff;
    border-radius: 4px;
    transition: transform .35s ease, opacity .35s ease, width .35s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ========== MOBILE OVERLAY ========== */
#mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 8999;
    background: rgba(2, 8, 20, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    overflow-y: auto;
    padding: 30px 20px;
}
#mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s;
}
.mobile-close:hover { background: rgba(255,255,255,.14); }

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
}
.mobile-logo img {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    border: 2px solid rgba(0, 150, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.35);
}
.mobile-logo span {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(90deg,#c8a400,#ffe066,#fff5b0,#ffd700,#c8a400,#ffe066);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hdr-gold 3s linear infinite;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    margin-bottom: 44px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    color: rgba(200, 225, 255, 0.75);
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 140, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: all .25s ease;
    opacity: 0;
    transform: translateY(20px);
}
.mobile-nav-link i {
    width: 22px;
    text-align: center;
    color: rgba(0, 150, 255, 0.7);
    font-size: 1rem;
}
#mobile-overlay.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: .06s; }
#mobile-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: .12s; }
#mobile-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: .18s; }
#mobile-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: .24s; }
#mobile-overlay.open .mobile-nav-link:nth-child(5) { transition-delay: .30s; }

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 140, 255, 0.1);
    border-color: rgba(0, 140, 255, 0.35);
    color: #fff;
}
.mobile-nav-link.active { color: #0096ff; }
.mobile-nav-link.active i { color: #0096ff; }

.mobile-social {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.mobile-social a {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(0,140,255,.18);
    color: rgba(180,220,255,.8);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background .25s, border-color .25s, color .25s;
}
.mobile-social a:hover {
    background: rgba(0,140,255,.12);
    border-color: rgba(0,140,255,.4);
    color: #fff;
}

.mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0055cc, #0096ff);
    color: #fff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(0, 150, 255, 0.45);
    transition: transform .25s, box-shadow .25s;
}
.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.6);
}


/* ========== FOOTER ========== */
#site-footer {
    position: relative;
    z-index: 1;
    background: rgba(2, 8, 22, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 140, 255, 0.14);
    font-family: 'Cairo', sans-serif;
}

.footer-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 28px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

/* Brand column */
.footer-brand {}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-decoration: none;
}
.footer-logo-img {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    border: 2px solid rgba(0, 140, 255, 0.35);
}
.footer-logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-logo-text {
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient(90deg,#c8a400,#ffe066,#fff5b0,#ffd700,#c8a400);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hdr-gold 3s linear infinite;
}
.footer-desc {
    font-size: .86rem;
    color: rgba(255,255,255,.5);
    line-height: 1.85;
    margin-bottom: 22px;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(0,140,255,.15);
    color: rgba(180,220,255,.7);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.footer-social a:hover {
    background: rgba(0,140,255,.12);
    border-color: rgba(0,140,255,.38);
    color: #fff;
    transform: translateY(-3px);
}

/* Links columns */
.footer-col h4 {
    font-size: .92rem;
    font-weight: 800;
    color: #e8f4ff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 140, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col h4 i { color: #0096ff; font-size: .8rem; }
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(180, 220, 255, 0.55);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .25s, gap .25s;
}
.footer-links a i { font-size: .65rem; color: rgba(0,150,255,.5); }
.footer-links a:hover { color: #fff; gap: 12px; }
.footer-links a:hover i { color: #0096ff; }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(0, 140, 255, 0.1);
    padding: 18px 28px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: .78rem;
    color: rgba(255,255,255,.28);
}
.footer-copy span {
    background: linear-gradient(90deg,#c8a400,#ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,200,100,.08);
    border: 1px solid rgba(0,200,100,.22);
    color: rgba(0,220,120,.7);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}


/* ========== GLOBAL — body spacing ========== */
body { padding-top: 72px; }


/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .header-nav  { display: none; }
    .header-cta  { display: none; }
    .hamburger   { display: flex; }

    .footer-top  { grid-template-columns: 1fr 1fr; }
    .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .footer-top  { grid-template-columns: 1fr; padding: 40px 20px 30px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .header-inner { padding: 0 16px; }
}
