/*
Theme Name: Altivoo
Theme URI: https://altivoo.sa
Author: Altivoo Team
Author URI: https://altivoo.sa
Description: Custom WordPress Theme for Altivoo - VIP & Executive Delegation Services
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: altivoo
*/

:root {
    --alt-green: #134031;
    --alt-green-light: #1a5c45;
    --alt-green-dark: #0d2e23;
    --alt-gold: #A8844B;
    --alt-gold-light: #c4a06a;
    --alt-gold-dark: #8a6a3a;
    --alt-light: #fdfbf7;
    --alt-light-warm: #f5f0e8;
}

/* ====================================
   EXPLICIT COLOR CLASSES & UTILITIES
==================================== */
.bg-alt-green { background-color: #134031 !important; }
.bg-alt-green-light { background-color: #1a5c45 !important; }
.bg-alt-green-dark { background-color: #0d2e23 !important; }
.bg-alt-green\/10 { background-color: rgba(19, 64, 49, 0.1) !important; }
.bg-alt-green\/98 { background-color: rgba(19, 64, 49, 0.98) !important; }

.text-alt-green { color: #134031 !important; }
.text-alt-green\/70 { color: rgba(19, 64, 49, 0.7) !important; }
.text-alt-green\/65 { color: rgba(19, 64, 49, 0.65) !important; }
.text-alt-green\/60 { color: rgba(19, 64, 49, 0.6) !important; }

.bg-alt-gold { background-color: #A8844B !important; }
.bg-alt-gold-light { background-color: #c4a06a !important; }
.bg-alt-gold-dark { background-color: #8a6a3a !important; }
.bg-alt-gold\/5 { background-color: rgba(168, 132, 75, 0.05) !important; }
.bg-alt-gold\/10 { background-color: rgba(168, 132, 75, 0.1) !important; }
.bg-alt-gold\/20 { background-color: rgba(168, 132, 75, 0.2) !important; }
.bg-alt-gold\/40 { background-color: rgba(168, 132, 75, 0.4) !important; }

.text-alt-gold { color: #A8844B !important; }
.text-alt-gold-light { color: #c4a06a !important; }
.text-alt-gold-dark { color: #8a6a3a !important; }

.border-alt-gold { border-color: #A8844B !important; }
.border-alt-gold\/10 { border-color: rgba(168, 132, 75, 0.1) !important; }
.border-alt-gold\/20 { border-color: rgba(168, 132, 75, 0.2) !important; }
.border-alt-gold\/40 { border-color: rgba(168, 132, 75, 0.4) !important; }

.bg-alt-light { background-color: #fdfbf7 !important; }
.bg-alt-light-warm { background-color: #f5f0e8 !important; }

.hover\:bg-alt-gold-dark:hover { background-color: #8a6a3a !important; }
.hover\:text-alt-gold:hover { color: #A8844B !important; }

/* =========================
   RTL FIX FOR FONT AWESOME
========================= */

/* العربية */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* منع استبدال خط Font Awesome */
html[dir="rtl"] .fa-solid,
html[dir="rtl"] .fa-regular,
html[dir="rtl"] .fa-brands,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fab,
html[dir="rtl"] i {
    font-family: "Font Awesome 6 Free",
                 "Font Awesome 6 Brands" !important;
    font-style: normal !important;
}

/* عناصر التواصل تبقى LTR */
html[dir="rtl"] .social-icons,
html[dir="rtl"] .contact-icons,
html[dir="rtl"] .whatsapp-wrapper {
    direction: ltr;
}

/* منع انعكاس svg */
html[dir="rtl"] svg {
    flex-shrink: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', 'Inter', sans-serif; background-color: var(--alt-light); color: var(--alt-green); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body, [dir="rtl"] * { font-family: 'Cairo', sans-serif; }
[dir="ltr"] body { font-family: 'Inter', sans-serif; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { font-family: 'Playfair Display', serif; }

/* Service Arrow flip in LTR */
[dir="ltr"] .service-arrow {
    transform: rotate(180deg);
}


/* ===== RTL POSITIONING ===== */
@media (min-width: 768px) {
    .hero-floating-stats {
        right: 1.5rem;
        left: auto;
    }
    [dir="rtl"] .hero-floating-stats {
        right: auto;
        left: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .hero-floating-stats { right: 2rem; }
    [dir="rtl"] .hero-floating-stats { left: 2rem; }
}
@media (min-width: 1280px) {
    .hero-floating-stats { right: 3rem; }
    [dir="rtl"] .hero-floating-stats { left: 3rem; }
}

/* ===== ENLARGED HERO STATS (RESPONSIVE) ===== */
.hero-floating-stats .glass {
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
@media (min-width: 640px) {
    .hero-floating-stats .glass {
        padding: 1.25rem 1.5rem;
        border-radius: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .hero-floating-stats .glass {
        padding: 1.5rem 2rem;
    }
}
.hero-floating-stats .counter-number {
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
@media (min-width: 640px) {
    .hero-floating-stats .counter-number {
        font-size: 2.25rem;
    }
}
@media (min-width: 1024px) {
    .hero-floating-stats .counter-number {
        font-size: 3rem;
    }
}
@media (min-width: 640px) {
    .hero-floating-stats .counter-number {
        font-size: 2.75rem;
    }
}
@media (min-width: 1024px) {
    .hero-floating-stats .counter-number {
        font-size: 3.25rem;
    }
}
.hero-floating-stats [data-i18n] {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}
@media (min-width: 640px) {
    .hero-floating-stats [data-i18n] {
        font-size: 0.95rem;
    }
}
@media (min-width: 1024px) {
    .hero-floating-stats [data-i18n] {
        font-size: 1.05rem;
    }
}

.about-experience-badge { right: -1rem; left: auto; }
[dir="rtl"] .about-experience-badge { right: auto; left: -1rem; }
@media (min-width: 640px) {
    .about-experience-badge { right: -1.5rem; }
    [dir="rtl"] .about-experience-badge { left: -1.5rem; }
}

.about-frame { position: relative; }
.about-frame::before {
    content: ''; position: absolute; top: -10px; left: -10px; right: 10px; bottom: 10px;
    border: 2px solid #1a4637; border-radius: 12px; z-index: -1;
}
[dir="rtl"] .about-frame::before { left: 10px; right: -10px; }

.whatsapp-wrapper { right: 1rem; left: auto; }
[dir="rtl"] .whatsapp-wrapper { right: auto; left: 1rem; }
@media (min-width: 640px) {
    .whatsapp-wrapper { right: 1.5rem; }
    [dir="rtl"] .whatsapp-wrapper { left: 1.5rem; }
}

.whatsapp-tooltip { right: 0; left: auto; }
[dir="rtl"] .whatsapp-tooltip { right: auto; left: 0; }

.counter-number { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ===== NAVBAR ===== */
.navbar-scrolled {
    background: rgba(19, 64, 49, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ===== GLASS ===== */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.stagger-children > * { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1); }
.stagger-children.active > *:nth-child(1) { transition-delay:0.05s; opacity:1; transform:translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay:0.1s; opacity:1; transform:translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay:0.15s; opacity:1; transform:translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay:0.2s; opacity:1; transform:translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay:0.25s; opacity:1; transform:translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay:0.3s; opacity:1; transform:translateY(0); }

@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse-gold { 0%,100%{box-shadow:0 0 0 0 rgba(168,132,75,0.5)} 50%{box-shadow:0 0 0 12px rgba(168,132,75,0)} }
@keyframes float-slow { 0%,100%{transform:translateY(0) rotate(0deg)} 33%{transform:translateY(-8px) rotate(1deg)} 66%{transform:translateY(4px) rotate(-1deg)} }

.animate-float { animation: heroFloat 6s ease-in-out infinite; }
.animate-float-delay { animation: heroFloat 6s ease-in-out 2s infinite; }
.animate-float-delay-2 { animation: heroFloat 6s ease-in-out 4s infinite; }
.animate-float-delay-3 { animation: heroFloat 6s ease-in-out 1s infinite; }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }

.hero-title-animate { animation: fadeInUp 1s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
.hero-subtitle-animate { animation: fadeInUp 1s cubic-bezier(0.16,1,0.3,1) 0.6s both; }
.hero-cta-animate { animation: fadeInUp 1s cubic-bezier(0.16,1,0.3,1) 0.9s both; }
.hero-badge-animate { animation: fadeIn 1s ease 0.1s both; }

/* ===== CARDS ===== */
.service-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(19,64,49,0.12); }
.service-card:hover .service-icon { background-color: #A8844B !important; color: white !important; transform: scale(1.1); }
.service-icon { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }

.why-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.why-card:hover { transform: translateY(-6px) scale(1.02); }
.why-card:hover .why-icon { transform: scale(1.15) rotate(5deg); }
.why-icon { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }

.value-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.value-card:hover { transform: translateY(-6px); }
.value-card:hover .value-icon { transform: scale(1.15); }
.value-icon { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }

.team-card:hover .team-img { transform: scale(1.05); }
.team-card:hover .team-overlay { opacity: 1; }
.team-img { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.team-overlay { opacity: 0; transition: opacity 0.4s ease; }

.client-logo { filter: grayscale(100%); opacity: 0.5; transition: all 0.4s ease; }
.client-logo:hover { filter: grayscale(0%); opacity: 1; }

/* ===== SWIPER ===== */
.swiper-pagination-bullet { background-color: var(--alt-green) !important; opacity: 0.3 !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; background-color: var(--alt-gold) !important; }

/* ===== MOBILE MENU ===== */
.mobile-menu { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.open { transform: translateX(0) !important; }

/* ===== BUTTONS ===== */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: rotate(30deg) translateX(-100%); transition: transform 0.6s ease;
}
.btn-gold:hover::after { transform: rotate(30deg) translateX(100%); }

.section-divider { width: 60px; height: 3px; background: linear-gradient(to right, #A8844B, #c4a06a); border-radius: 2px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--alt-green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--alt-gold); }

.hero-overlay { background: linear-gradient(135deg, rgba(13,46,35,0.92) 0%, rgba(19,64,49,0.85) 40%, rgba(19,64,49,0.75) 70%, rgba(168,132,75,0.3) 100%); }

.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; width: 0; height: 2px; background: var(--alt-gold); transition: width 0.3s ease; }
[dir="ltr"] .nav-link::after { left: 0; right: auto; }
[dir="rtl"] .nav-link::after { right: 0; left: auto; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.form-input:focus { border-color: #A8844B !important; box-shadow: 0 0 0 3px rgba(168,132,75,0.15) !important; }

.whatsapp-tooltip { opacity: 0; transform: translateY(8px); transition: all 0.3s ease; pointer-events: none; }
.whatsapp-wrapper:hover .whatsapp-tooltip { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 767px) {
    .hero-floating-stats {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        margin-top: 2rem !important;
        width: 100% !important;
    }
    [dir="rtl"] .hero-floating-stats {
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
    .hero-floating-stats .glass {
        min-width: unset !important;
        width: 100% !important;
    }
    .about-experience-badge {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: 1rem !important;
    }
    [dir="rtl"] .about-experience-badge {
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
    .stagger-children > * { opacity: 1; transform: none; }
}
