:root {
    /* Brand Colors */
    --color-primary: #1a1b4b; /* Deep Navy Blue */
    --color-primary-light: #2c2d6e;
    --color-accent: #f39c12; /* Orange */
    --color-accent-hover: #e67e22;
    --color-success: #27ae60; /* Green */
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-border: #e9ecef;
    
    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    --font-primary: var(--font-en);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-pill: 50px;
    --transition-speed: 0.3s;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Accessible focus ring for keyboard users */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: #f0f2f5; /* Soft cool grey to contrast with white elements */
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* Premium Ambient Glow Background (Apple/Stripe Style) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(39, 174, 96, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 40%, rgba(26, 27, 75, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(243, 156, 18, 0.03) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 27, 75, 0.2);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Softened shadow to complement glass */
}

.header-container {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-success);
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--color-primary);
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.logo-text span {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.main-nav {
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav a.active {
    color: var(--color-accent);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: var(--border-radius-pill);
    background: var(--color-light-bg);
    transition: all var(--transition-speed);
}
.lang-switch-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0;
    background-color: var(--color-light-bg);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    z-index: 2;
    min-height: 400px;
}

.hero-image-wrapper img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(60px);
    pointer-events: none;
}

.blob-solid-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(26, 27, 75, 0.08); /* Faint primary color */
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.blob-solid-2 {
    width: 250px;
    height: 250px;
    background-color: rgba(243, 156, 18, 0.1); /* Faint accent color */
    right: -50px;
    bottom: -50px;
}

/* ==========================================================================
   Trust Banner
   ========================================================================== */
.trust-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px 0;
    text-align: center;
}

.trust-banner h3 {
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.9;
}

.trust-logos-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.trust-badges-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-badges-footer span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    transition: background 0.3s, border-color 0.3s;
}

.trust-badges-footer span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 12px;
}

.mobile-social {
    display: none;
}

@media (max-width: 768px) {
    .desktop-social {
        display: none !important;
    }
    .mobile-social {
        display: flex !important;
        justify-content: center;
        margin-bottom: 20px;
        padding-inline-end: 60px; /* Prevent overlap with WhatsApp button */
    }
}

.social-links a {
    color: var(--color-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
}

/* Permanent Brand Colors */
.social-links a.social-fb { background-color: #1877F2; }
.social-links a.social-yt { background-color: #FF0000; }
.social-links a.social-tt { background-color: #000000; border: 1px solid rgba(255,255,255,0.2); }
.social-links a.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* Universal Hover Animation */
.social-links a:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.1);
}

/* Specific Hover Glows */
.social-links a.social-fb:hover { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.5); }
.social-links a.social-yt:hover { box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5); }
.social-links a.social-tt:hover { box-shadow: 2px 2px 0px #ff0050, -2px -2px 0px #00f2fe; border-color: transparent; }
.social-links a.social-ig:hover { box-shadow: 0 4px 15px rgba(214, 36, 159, 0.5); }

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.footer-col ul a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
    max-width: 280px;
}

.footer-col ul.quick-links li {
    margin-bottom: 0;
}

.footer-col ul.quick-links a:hover {
    transform: translateY(-2px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--color-accent);
    margin-top: 5px;
}

.footer-bottom {
    background-color: #121334;
    padding: 20px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-container {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #b0b8c4;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--color-text);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

select.form-control {
    padding-inline-end: 40px;
    appearance: auto;
}

.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */
.faq-accordion {
    margin-bottom: 15px;
    background: var(--color-light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.faq-accordion summary {
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion summary::-webkit-details-marker {
    display: none; /* Hide default arrow in WebKit */
}

.faq-accordion summary::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--color-accent);
    transition: transform var(--transition-speed) ease;
}

.faq-accordion[open] summary::after {
    transform: rotate(180deg);
}

.faq-accordion p {
    padding: 0 25px 25px 25px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    /* Collapse menu early to prevent overlapping logo */
    .main-nav {
        display: none; 
    }
    
    /* Make mobile menu links much larger and easier to tap */
    .main-nav a {
        font-size: 1.3rem;
        font-weight: 700;
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem; /* Slightly larger hamburger */
    }
    
    /* Make the Language button more prominent on mobile */
    .lang-switch-btn {
        background-color: var(--color-primary);
        color: var(--color-white);
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .header-actions {
        gap: 24px; /* Increase gap between AR button and hamburger menu */
    }
    
    .header-actions .btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        min-height: auto;
    }

    .section-padding {
        padding: 40px 0;
    }
    
    .site-footer {
        padding-top: 30px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-col-contact {
        order: 2;
    }
    
    .footer-col-links {
        order: 3;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }

    .hero-image-wrapper img {
        max-height: 300px;
        object-fit: cover;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.1rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


/* RTL Support */
[dir="rtl"] {
    --font-primary: var(--font-ar);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    animation: none;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: var(--color-accent);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(243, 156, 18, 0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.cookie-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cookie-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    color: var(--color-primary);
}
.cookie-text p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(26, 27, 75, 0.85);
    line-height: 1.5;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.btn-cookie {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    flex: 1;
}
.cookie-banner .btn-outline {
    color: var(--color-primary);
    border-color: rgba(26, 27, 75, 0.35);
}
.cookie-banner .btn-outline:hover {
    background-color: rgba(26, 27, 75, 0.08);
    color: var(--color-primary);
    border-color: rgba(26, 27, 75, 0.5);
}
.cookie-banner .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: transparent;
}
.cookie-banner .btn-primary:hover {
    background-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(26, 27, 75, 0.3);
}
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 10px;
    }
}

/* Cookie Preferences Modal Styles */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 44, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
}

.cookie-prefs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    padding: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
}

/* iOS Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--color-accent);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* RTL adjustment for WhatsApp */
html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}
