/* AZ Marketing - Premium Stylesheet */

:root {
    /* Executive Color Palette (70/20/10 Rule System Tokens) */
    --az-navy-950: #04101F;
    --az-navy-900: #071B33;
    --az-navy-800: #0B2341;
    --az-navy-700: #12365A;

    --az-gold-700: #876515;
    --az-gold-600: #A67C1B;
    --az-gold-500: #C7A246;
    --az-gold-300: #E0C575;
    --az-gold-100: #F3E8CD;

    /* Surfaces & Neutrals */
    --az-white: #FFFFFF;
    --az-surface: #F7F8FA;
    --az-ivory: #FBF8F1;
    --az-blue-soft: #EEF3F8;

    /* High Contrast Typography */
    --az-text-heading: #071B33;
    --az-text-primary: #4F6072;
    --az-text-muted: #667587;
    --az-text-on-dark: #FFFFFF;
    --az-text-muted-on-dark: #CBD5DF;

    /* UI Borders & Rings */
    --az-border: #DCE3EA;
    --az-border-dark: #29415B;
    --az-error: #A23D3D;
    --az-success: #276854;
    --whatsapp-green: #25D366;
    --blue-accent: #007AFF;

    /* Typography Font Stacks */
    --az-font-heading-ar: "Alexandria", sans-serif;
    --az-font-body-ar: "Tajawal", sans-serif;
    --az-font-en: "Manrope", sans-serif;

    /* Shadows & Rings */
    --az-shadow-sm: 0 8px 24px rgba(7, 27, 51, 0.06);
    --az-shadow-md: 0 16px 40px rgba(7, 27, 51, 0.10);
    --az-focus-ring: 0 0 0 4px rgba(199, 162, 70, 0.18);

    /* Legacy Backward Compatibility Fallbacks */
    --primary-navy: var(--az-navy-900);
    --primary-navy-dark: var(--az-navy-950);
    --secondary-navy: var(--az-navy-800);
    --gold-primary: var(--az-gold-500);
    --gold-dark: var(--az-gold-600);
    --gold-light: var(--az-gold-300);
    --background-bone: var(--az-white);
    --background-bone-alt: var(--az-surface);
    --background-light: var(--az-white);
    --background-section-alt: var(--az-surface);
    --text-dark: var(--az-navy-900);
    --text-muted: var(--az-text-primary);
    
    --radius-btn: 10px;
    --radius-card: 18px;
    --radius-media: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5 System Section Theme Presets */
.section--white {
    background-color: var(--az-white) !important;
    color: var(--az-text-primary);
}

.section--soft {
    background-color: var(--az-surface) !important;
    color: var(--az-text-primary);
}

.section--warm {
    background-color: var(--az-ivory) !important;
    color: var(--az-text-primary);
}

.section--cool {
    background-color: var(--az-blue-soft) !important;
    color: var(--az-text-primary);
}

.section--dark {
    background-color: var(--az-navy-900) !important;
    color: var(--az-text-muted-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--az-white) !important;
}

/* Base resets & typography */
body {
    background-color: var(--background-bone, #FAF9F6);
    color: var(--text-dark, #0B1727);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

body.lang-ar {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
}

body.lang-en {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark, #0B1727);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

/* Metallic Gold Typography Accents */
.text-gold {
    color: var(--gold-primary) !important;
}

.light-section .text-gold {
    color: #a67c1e !important; /* Darker gold for better contrast on white background */
}

.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    color: var(--primary-navy-dark) !important;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(210, 169, 90, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 169, 90, 0.5);
    filter: brightness(1.1);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-light) !important;
    border: 2px solid var(--gold-primary);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: rgba(210, 169, 90, 0.1);
    border-color: var(--gold-light);
    transform: translateY(-3px);
}

/* ==========================================================================
   Header & Sticky Navigation Bar
   ========================================================================== */
.navbar-custom {
    background-color: var(--header-bg-custom, #FFFFFF) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition-smooth);
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand img {
    max-height: 55px;
    width: auto;
}

.navbar-custom .nav-link {
    color: var(--header-text-custom, #0B2341) !important;
    font-weight: 500;
    font-size: 1.02rem;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--header-hover-custom, #A67C1B) !important;
}

/* Mega-Menu Styling */
.navbar-custom .mega-menu {
    border-radius: 16px;
    border: 1px solid rgba(10, 25, 47, 0.12) !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.navbar-custom .mega-menu a.dropdown-item {
    color: #0A192F !important;
    transition: all 0.2s ease;
}

.navbar-custom .mega-menu a.dropdown-item:hover {
    background-color: rgba(181, 138, 56, 0.08) !important;
    color: var(--gold-primary, #B58A38) !important;
}

/* Glassmorphism Cards */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 30px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(210, 169, 90, 0.3);
    box-shadow: 0 15px 35px rgba(3, 11, 24, 0.6);
}

/* ==========================================================================
   Hero Section with 3D WebGL Background Animation
   ========================================================================== */
.hero-section,
.page-hero-header {
    background-color: var(--primary-navy, #071B33);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-section {
    min-height: 88vh;
    padding: 130px 0 100px 0;
    display: flex;
    align-items: center;
}

.page-hero-header {
    min-height: 380px;
    padding-top: 140px !important;
    padding-bottom: 75px !important;
    display: flex;
    align-items: center;
    position: relative;
}

.az-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
    pointer-events: none;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(7, 27, 51, 0.35) 0%, rgba(4, 16, 31, 0.85) 100%);
    z-index: 1 !important;
    pointer-events: none;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.hero-content h1,
.page-hero-header h1 {
    color: #FFFFFF !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
    -webkit-text-fill-color: initial !important;
}

.hero-content .lead,
.page-hero-header .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 75vh;
        padding: 90px 0 70px 0;
    }
    .page-hero-header {
        min-height: 320px;
        padding-top: 120px !important;
        padding-bottom: 55px !important;
    }
}

/* Editorial content blocks */
.section-padding {
    padding: 100px 0;
}

.light-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.light-section h2, .light-section h3, .light-section h4 {
    color: var(--primary-navy-dark);
}

.light-section .text-muted {
    color: var(--text-muted) !important;
}

/* Process Timeline styling */
.process-step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    color: var(--primary-navy-dark);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Metrics and statistics */
.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Floating Actions */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

body.lang-ar .floating-container {
    right: auto;
    left: 30px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.35 cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    outline: none;
    position: relative;
}

.floating-btn i {
    color: #FFFFFF !important;
    font-size: 1.65rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.floating-btn:hover i {
    transform: scale(1.18);
}

.btn-whatsapp {
    background-color: #25D366 !important;
    background-image: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    background-image: linear-gradient(135deg, #20BA5A 0%, #0E766A 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65) !important;
    transform: translateY(-4px) scale(1.08);
}

.btn-phone {
    background-color: #071B33 !important;
    background-image: linear-gradient(135deg, #0B2341 0%, #071B33 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid #C7A246 !important;
    box-shadow: 0 8px 25px rgba(7, 27, 51, 0.5) !important;
}

.btn-phone i {
    color: #C7A246 !important;
}

.btn-phone:hover {
    background-color: #04101F !important;
    background-image: linear-gradient(135deg, #071B33 0%, #04101F 100%) !important;
    color: #FFFFFF !important;
    border-color: #E0C575 !important;
    box-shadow: 0 12px 32px rgba(199, 162, 70, 0.55) !important;
    transform: translateY(-4px) scale(1.08);
}

.btn-phone:hover i {
    color: #FFFFFF !important;
}

/* Footer layout styling */
.footer-section {
    background-color: var(--footer-bg-custom, var(--primary-navy));
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}

.footer-section .text-muted {
    color: var(--footer-text-custom, rgba(255, 255, 255, 0.65)) !important;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-primary);
    display: inline-block;
    color: var(--footer-title-custom, #FFFFFF) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    color: var(--footer-text-custom, rgba(255, 255, 255, 0.75));
}

.footer-links a {
    color: var(--footer-text-custom, rgba(255,255,255,0.6));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--footer-hover-custom, var(--gold-primary)) !important;
    padding-left: 5px;
}

body.lang-ar .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* ==========================================================================
   Light 3D Animated Footer System (Upthouse.com Inspiration)
   ========================================================================== */
.footer-section.footer-light-3d {
    background: linear-gradient(180deg, #FDFCF9 0%, #FAF8F4 50%, #F5F1E8 100%) !important;
    border-top: 1px solid rgba(199, 162, 70, 0.22);
    position: relative;
    overflow: hidden;
    padding: 85px 0 35px 0;
    box-shadow: 0 -8px 30px rgba(7, 27, 51, 0.03);
}

.az-footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.footer-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(253, 252, 249, 0.25) 0%, rgba(250, 248, 244, 0.68) 100%);
    z-index: 2;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.footer-light-3d .footer-title {
    color: #0A192F !important;
    border-bottom: 2px solid var(--gold-primary, #C7A246);
    font-weight: 700;
}

.footer-light-3d .footer-links li,
.footer-light-3d .footer-links.text-muted li {
    color: #475569 !important;
}

.footer-light-3d .footer-links a {
    color: #475569 !important;
}

.footer-light-3d .footer-links a:hover {
    color: #B58A38 !important;
}

.footer-light-3d p.text-muted {
    color: #475569 !important;
}

.footer-light-3d .social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0A192F !important;
    border: 1px solid rgba(10, 25, 47, 0.1);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.05);
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 1.15rem;
}

.footer-light-3d .social-icon-btn:hover {
    background: linear-gradient(135deg, #E5C378 0%, #B58A38 100%);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(181, 138, 56, 0.35);
}

.footer-light-3d .footer-divider {
    border-color: rgba(10, 25, 47, 0.1) !important;
}

.footer-light-3d .footer-copyright {
    color: #64748B !important;
}

.footer-light-3d .footer-legal-links a {
    color: #64748B !important;
    transition: color 0.2s ease;
}

.footer-light-3d .footer-legal-links a:hover {
    color: #B58A38 !important;
}

/* Cookie Policy alert */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: rgba(11, 30, 56, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(210, 169, 90, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

body.lang-ar .cookie-banner {
    left: auto;
    right: 20px;
}

/* Multi-step wizard proposal form */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-navy);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.85rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.progress-node.active {
    background: var(--primary-navy-dark);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(210, 169, 90, 0.5);
}

.progress-node.complete {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--primary-navy-dark);
}

/* Premium Executive Service Cards & Link Styling */
a.service-btn-interactive,
a.service-btn-interactive:link,
a.service-btn-interactive:visited {
    color: var(--primary-navy, #0A192F) !important;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid rgba(10, 25, 47, 0.12);
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

a.service-btn-interactive:hover,
a.service-btn-interactive:active {
    background: linear-gradient(135deg, var(--gold-primary, #D2A95A) 0%, var(--gold-dark, #B58A38) 100%) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(210, 169, 90, 0.25) !important;
}

.interactive-service-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(10, 25, 47, 0.08) !important;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.interactive-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary, #D2A95A), var(--gold-dark, #B58A38));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.interactive-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(210, 169, 90, 0.4) !important;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08), 0 8px 16px rgba(210, 169, 90, 0.12) !important;
}

.interactive-service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(210, 169, 90, 0.12) 0%, rgba(10, 25, 47, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark, #B58A38);
    font-size: 1.65rem;
    transition: all 0.4s ease;
}

.interactive-service-card:hover .service-icon-box {
    background: linear-gradient(135deg, var(--gold-primary, #D2A95A) 0%, var(--gold-dark, #B58A38) 100%);
    color: #FFFFFF;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(210, 169, 90, 0.3);
}

body.lang-ar .interactive-service-card:hover a.service-btn-interactive i,
body.lang-ar .interactive-service-card:hover a.btn-gold i {
    transform: translateX(-6px);
}

body.lang-en .interactive-service-card:hover a.service-btn-interactive i,
body.lang-en .interactive-service-card:hover a.btn-gold i {
    transform: translateX(6px);
}

/* Service Interactive Button High-Contrast Styling */
.interactive-service-card a.service-btn-interactive,
.service-btn-interactive {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(135deg, #F1DDA8 0%, #D2A95A 100%);
    color: #071222 !important;
    font-weight: 700 !important;
    font-size: 0.92rem;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(210, 169, 90, 0.2);
    border: none;
}

.interactive-service-card a.service-btn-interactive:hover,
.service-btn-interactive:hover {
    background: linear-gradient(135deg, #D2A95A 0%, #B58A38 100%);
    color: #071222 !important;
    box-shadow: 0 8px 22px rgba(210, 169, 90, 0.45);
    transform: translateY(-2px);
}
