/* =============================================
   AL-ZARA TRAVELS & EXCHANGE — LANDING PAGE CSS
   ============================================= */

/* --- DESIGN TOKENS --- */
:root {
    --gold: #c8933a;
    --gold-light: #e8b55a;
    --gold-dark: #a07020;
    --navy: #0e1d35;
    --navy-mid: #162340;
    --navy-light: #1e3057;
    --white: #ffffff;
    --off-white: #f8f6f2;
    --gray-light: #e8e8e8;
    --gray-text: #666;
    --text-dark: #111827;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-main: 'Inter', 'Outfit', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; }

img { display: block; max-width: 100%; }

/* =============================================
   VIDEO LOADER (preserved from original)
   ============================================= */
#video-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#intro-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

#enter-btn {
    position: relative;
    z-index: 10;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 2px solid #fff;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    font-family: var(--font-main);
    animation: fadeInBtn 2s forwards 3s;
}

@keyframes fadeInBtn { to { opacity: 1; } }

#enter-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

#video-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Hidden utility */
.hidden { display: none !important; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid rgba(200,147,58,0.15);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.logo-az {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.5px;
}

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

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
    white-space: nowrap;
}

.nav-link {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 6px 7px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    position: relative;
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 16px);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color var(--transition);
    white-space: nowrap;
}

.header-phone i { color: var(--gold); font-size: 0.75rem; }

.header-phone:hover { color: var(--gold); }

.btn-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy);
    border-radius: 6px;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    padding: 16px 24px 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav .nav-link {
    display: block;
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.mobile-nav .mobile-login {
    margin-top: 8px;
    display: inline-block;
    padding: 10px 20px;
    background: var(--navy);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(14, 29, 53, 0.82) 0%,
        rgba(14, 29, 53, 0.55) 45%,
        rgba(14, 29, 53, 0.10) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px 50px;
    display: flex;
    align-items: flex-end;
}

.hero-text {
    max-width: 520px;
    animation: heroFadeIn 1s ease both 0.3s;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-accent {
    color: var(--gold-light);
    display: block;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.7;
}

.hero-cta-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--gold-light);
    border-radius: 30px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    font-family: var(--font-main);
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,147,58,0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 11px 26px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 30px;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
    background: var(--white);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 3px solid var(--gray-light);
    box-shadow: var(--shadow-md);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px 24px;
    background: var(--white);
    border-right: 1px solid var(--gray-light);
    transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--gold);
    transition: width var(--transition);
}

.service-card:hover::before { width: 100%; }

.service-card:last-child { border-right: none; }

.service-card:hover {
    box-shadow: 0 -4px 24px rgba(200,147,58,0.1), var(--shadow-md);
    background: #fffdf8;
}

/* Icons */
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.icon-gold {
    background: rgba(200,147,58,0.12);
    border: 2px solid var(--gold);
    color: var(--gold);
}

.icon-navy {
    background: var(--navy);
    border: 2px solid var(--navy);
    color: var(--white);
}

/* Service Info */
.service-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-info p {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 14px;
    font-weight: 400;
}

.service-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    transition: color var(--transition), gap var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover { color: var(--gold-dark); letter-spacing: 0.3px; }

/* =============================================
   INFO SECTION — FOREX + WHY CHOOSE US
   ============================================= */
.info-section {
    background: var(--off-white);
    padding: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

/* Forex Panel */
.forex-panel {
    background: var(--navy);
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.forex-panel .panel-title {
    color: var(--white);
}

.rates-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.rate-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 70px;
}

.rate-pair {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rate-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.rate-up {
    color: #4ade80;
    font-size: 0.75rem;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-2px); }
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-light);
    transition: color var(--transition), gap var(--transition);
    margin-top: auto;
}

.view-all-link:hover { color: var(--white); gap: 8px; }

/* Why Choose Panel */
.why-panel {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    overflow: hidden;
    position: relative;
}

.why-content {
    padding: 40px 36px;
    flex: 1;
    z-index: 2;
}

.why-title { color: var(--white); }

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--white);
}

.why-list li i {
    color: var(--white);
    font-size: 0.9rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.why-image {
    width: 240px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--gold);
    padding: 0;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    transition: opacity var(--transition);
}

.footer-link:hover { opacity: 0.85; }

.footer-link i {
    font-size: 1rem;
    opacity: 0.9;
}

/* =============================================
   RESPONSIVE — TABLETS & MOBILE
   ============================================= */
@media (max-width: 1320px) {
    .main-nav ul { gap: 2px; }
    .nav-link { font-size: 0.72rem; padding: 5px 5px; }
    .header-phone { font-size: 0.75rem; }
}

@media (max-width: 1150px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .btn-login { display: none; }
    .header-inner { height: 64px; }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card:nth-child(3) { border-right: 1px solid var(--gray-light); }
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        border-top: 1px solid var(--gray-light);
    }
    .service-card:nth-child(5) { border-right: none; }
}

@media (max-width: 900px) {
    .info-grid { grid-template-columns: 1fr; }

    .why-panel {
        min-height: 240px;
    }

    .why-image {
        width: 180px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        border-right: 1px solid var(--gray-light) !important;
    }

    .service-card:nth-child(even) { border-right: none !important; }

    .service-card:nth-child(n+3) {
        border-top: 1px solid var(--gray-light);
    }

    .hero-content { padding: 48px 24px 40px; }

    .forex-panel { padding: 32px 24px; }
    .why-content { padding: 32px 24px; }

    .rates-grid { gap: 14px; }

    .why-image { width: 140px; }
}

@media (max-width: 540px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none !important;
        border-bottom: 1px solid var(--gray-light) !important;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .service-icon { margin-bottom: 0; }

    .hero-title { font-size: 1.7rem; }

    .why-image { display: none; }

    .why-panel { padding: 0; }
    .why-content { padding: 28px 20px; }

    .info-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up:nth-child(1) { transition-delay: 0.0s; }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
