/* ==========================================================================
   FouRenov - Professional Stylesheet
   Corporate identity: Blue (#1a5a9e) + Gold (#e8a838)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    --primary: #1a5a9e;
    --primary-light: #4a90d9;
    --primary-dark: #0d3b6e;
    --secondary: #e8a838;
    --secondary-light: #f5c45a;
    --secondary-dark: #c98a2e;
    --accent: #2d9f6e;
    --accent-light: #45c38b;
    --dark: #1a1a2e;
    --darker: #0f0f1f;
    --light: #f8f9fa;
    --gray-100: #f0f5ff;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Cairo', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* --------------------------------------------------------------------------
   2. Base Styles
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.display-4, .display-5, .display-6 {
    font-family: var(--font-display);
}

a {
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   3. Navigation / Navbar
   -------------------------------------------------------------------------- */
.navbar-fourenov {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-fourenov.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #0a2d52 0%, var(--primary-dark) 100%) !important;
}

.navbar-fourenov .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.navbar-fourenov .nav-link:hover,
.navbar-fourenov .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-fourenov .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2.5px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.navbar-fourenov .nav-link:hover::after,
.navbar-fourenov .nav-link.active::after {
    transform: scaleX(1);
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: white !important;
    letter-spacing: 0.5px;
}

.brand-logo i {
    color: var(--secondary);
    margin-right: 4px;
}

.navbar-fourenov .dropdown-menu {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    padding: 8px;
}

.navbar-fourenov .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.85);
    border-radius: 6px;
    padding: 8px 16px;
    transition: var(--transition);
}

.navbar-fourenov .dropdown-menu .dropdown-item:hover {
    background: rgba(232,168,56,0.15);
    color: var(--secondary);
}

.lang-switch {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.2);
    color: white !important;
}

/* --------------------------------------------------------------------------
   4. Hero Section - Panoramic with gradient overlay
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    color: white;
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-section .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 59, 110, 0.92) 0%,
        rgba(26, 90, 158, 0.85) 40%,
        rgba(26, 122, 181, 0.75) 70%,
        rgba(13, 59, 110, 0.65) 100%
    );
    z-index: 1;
}

.hero-section .hero-bg img,
.hero-section .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--secondary) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, var(--accent) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, var(--primary-light) 0%, transparent 50%);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-actions {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(232,168,56,0.2);
    border: 1px solid rgba(232,168,56,0.3);
    color: var(--secondary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.05s forwards;
    opacity: 0;
}

.hero-stats-container {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats-container .stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero-stats-container .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Hero Image / Video BG variants */
.hero-with-bg {
    padding: 100px 0 60px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn-fourenov {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--dark);
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-fourenov::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-fourenov:hover::before {
    left: 0;
}

.btn-fourenov:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232,168,56,0.4);
    color: var(--dark);
}

.btn-outline-fourenov {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-fourenov:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45,159,110,0.4);
    color: white;
}

/* --------------------------------------------------------------------------
   6. Section Styles
   -------------------------------------------------------------------------- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.bg-soft-primary {
    background-color: var(--gray-100);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: white;
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* --------------------------------------------------------------------------
   7. Service Cards with hover effects
   -------------------------------------------------------------------------- */
.service-card {
    border: none;
    border-radius: var(--radius-md);
    padding: 35px 25px;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

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

.service-icon i {
    font-size: 30px;
    color: white;
}

/* Service detail page cards */
.service-detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-detail-icon i {
    font-size: 46px;
    color: white;
}

/* --------------------------------------------------------------------------
   8. Stats Section
   -------------------------------------------------------------------------- */
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-card {
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background: white;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   9. Blog Cards
   -------------------------------------------------------------------------- */
.blog-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   10. Testimonial / Témoignages
   -------------------------------------------------------------------------- */
.testimonial-card {
    border: none;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 35px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    left: 25px;
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    padding-top: 10px;
}

.testimonial-card .testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

.testimonial-card .testimonial-project {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.testimonial-card .stars {
    color: var(--secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Testimonials carousel */
.testimonials-carousel .carousel-inner {
    padding: 20px 0;
}

/* --------------------------------------------------------------------------
   11. Gallery / Portfolio
   -------------------------------------------------------------------------- */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,59,110,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay h5 {
    color: white;
    margin-bottom: 5px;
}

.gallery-item .gallery-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. FAQ Section
   -------------------------------------------------------------------------- */
.faq-item {
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 18px 24px;
    color: var(--primary);
    background: white;
    border: none;
}

.faq-item .accordion-button:not(.collapsed) {
    background: var(--gray-100);
    color: var(--primary-dark);
    box-shadow: none;
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a5a9e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-item .accordion-body {
    padding: 0 24px 18px;
    color: var(--gray-700);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Contact Form
   -------------------------------------------------------------------------- */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232,168,56,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.form-control-custom {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 90, 158, 0.12);
}

.form-control-custom.is-valid {
    border-color: var(--accent);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-floating-custom label {
    position: absolute;
    top: 14px;
    left: 18px;
    color: var(--gray-500);
    transition: var(--transition);
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.form-floating-custom input:focus ~ label,
.form-floating-custom input:not(:placeholder-shown) ~ label,
.form-floating-custom textarea:focus ~ label,
.form-floating-custom textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer-fourenov {
    background: var(--darker);
    color: rgba(255,255,255,0.8);
    position: relative;
}

.footer-fourenov::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
}

.footer-fourenov h5,
.footer-fourenov h6 {
    color: white;
}

.footer-fourenov a:not(.btn) {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-fourenov a:not(.btn):hover {
    color: var(--secondary);
}

.footer-fourenov .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: var(--transition);
    color: rgba(255,255,255,0.7);
}

.footer-fourenov .social-icon:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-fourenov .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* --------------------------------------------------------------------------
   15. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.55);
    color: white;
}

.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

/* --------------------------------------------------------------------------
   16. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.animate-on-scroll-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.animate-on-scroll-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   17. Features / Why Us
   -------------------------------------------------------------------------- */
.feature-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(232,168,56,0.05);
}

.feature-item .feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--dark);
}

.feature-item .feature-icon.blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.feature-item .feature-icon.green {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

/* --------------------------------------------------------------------------
   18. Page Header (secondary pages)
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 120px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,168,56,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: var(--secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   19. Loader / Spinner
   -------------------------------------------------------------------------- */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* --------------------------------------------------------------------------
   20. Card Enhancements
   -------------------------------------------------------------------------- */
.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    transition: var(--transition);
}

.card {
    transition: var(--transition);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   21. Progress Bar
   -------------------------------------------------------------------------- */
.progress-bar {
    transition: width 0.6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
}

/* --------------------------------------------------------------------------
   22. Badges
   -------------------------------------------------------------------------- */
.badge-fourenov {
    background: var(--primary);
    color: white;
}

.badge-fourenov-gold {
    background: var(--secondary);
    color: var(--dark);
}

/* --------------------------------------------------------------------------
   23. Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* --------------------------------------------------------------------------
   24. Table responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .table-responsive-cards table, 
    .table-responsive-cards thead, 
    .table-responsive-cards tbody, 
    .table-responsive-cards th, 
    .table-responsive-cards td, 
    .table-responsive-cards tr {
        display: block;
    }
    .table-responsive-cards thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .table-responsive-cards td {
        border: none;
        position: relative;
        padding-left: 50%;
    }
    .table-responsive-cards td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

/* --------------------------------------------------------------------------
   25. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .navbar, .sidebar, .footer-fourenov, .whatsapp-float, .btn, .breadcrumb {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
}

/* --------------------------------------------------------------------------
   26. Responsive Design - Full responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        padding: 110px 0 70px;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-stats-container {
        margin-top: 2rem;
    }
    .section-padding {
        padding: 70px 0;
    }
    .page-header {
        padding: 100px 0 50px;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .gallery-item img {
        height: 230px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .page-header {
        padding: 90px 0 40px;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .stat-card {
        padding: 20px 15px;
    }
    .gallery-item img {
        height: 200px;
    }
    .testimonial-card {
        padding: 25px;
    }
    .testimonial-card::before {
        font-size: 3.5rem;
        top: 10px;
        left: 15px;
    }
    .hero-stats-container .stat-value {
        font-size: 1.8rem;
    }
    .footer-fourenov {
        text-align: center;
    }
    .footer-fourenov .social-icon {
        margin: 0 5px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-section {
        padding: 90px 0 50px;
    }
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .service-card {
        padding: 25px 20px;
    }
    .gallery-item img {
        height: 180px;
    }
    .display-5 {
        font-size: 1.8rem;
    }
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --------------------------------------------------------------------------
   27. RTL / Arabic Support
   -------------------------------------------------------------------------- */
[dir="rtl"] .navbar-fourenov .nav-link::after {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-card::before {
    left: auto;
    right: 25px;
}

/* --------------------------------------------------------------------------
   28. Utility classes
   -------------------------------------------------------------------------- */
.text-primary-fourenov { color: var(--primary); }
.bg-primary-fourenov { background-color: var(--primary); }
.text-secondary-fourenov { color: var(--secondary); }
.bg-secondary-fourenov { background-color: var(--secondary); }
.border-primary-fourenov { border-color: var(--primary); }

.fw-extra-bold { font-weight: 800; }
.ls-1 { letter-spacing: 0.05em; }
.ls-2 { letter-spacing: 0.1em; }

/* Image aspect ratio helpers */
.aspect-16-9 {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.aspect-4-3 {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.aspect-1-1 {
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Z-index helpers */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ==========================================================================
   Advanced Animations & Effects - FouRenov Premium
   ========================================================================== */

/* Gallery masonry-like grid */
.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .gallery-masonry { column-count: 2; }
}
@media (max-width: 576px) {
    .gallery-masonry { column-count: 1; }
}

/* Smooth image reveal on scroll */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    z-index: 2;
    transform: translateX(0);
    transition: transform 0.8s ease;
}

.img-reveal.revealed::before {
    transform: translateX(100%);
}

.img-reveal img {
    transform: scale(1.1);
    transition: transform 0.8s ease;
}

.img-reveal.revealed img {
    transform: scale(1);
}

/* Counter animation */
.counter-animate {
    display: inline-block;
}

/* Shimmer loader for images */
.img-shimmer {
    background: linear-gradient(90deg, 
        var(--gray-100) 0%, 
        var(--gray-200) 50%, 
        var(--gray-100) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hover card with depth */
.card-depth {
    perspective: 1000px;
}

.card-depth .card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-depth:hover .card {
    transform: rotateY(-3deg) rotateX(3deg) translateY(-5px);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.12);
}

/* Glass morphism effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Parallax effect on hero */
.hero-parallax .hero-bg img {
    transform: translateZ(-1px) scale(1.5);
    will-change: transform;
}

/* Smooth reveal animation */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image zoom on hover with overlay */
.img-zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.img-zoom-container img {
    transition: transform 0.6s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.08);
}

.img-zoom-container .img-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,59,110,0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.img-zoom-container:hover .img-overlay-content {
    opacity: 1;
}

/* Image lazy load blur effect */
img.lazy-load {
    filter: blur(10px);
    transition: filter 0.4s ease;
}

img.lazy-load.loaded {
    filter: blur(0);
}

/* Badge pulse animation */
.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(232,168,56,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(232,168,56,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,168,56,0); }
}

/* Floating animation for icons */
.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Gradient text animation */
.text-gradient-animated {
    background: linear-gradient(90deg, 
        var(--secondary), 
        var(--secondary-light), 
        var(--accent), 
        var(--secondary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ripple effect on buttons */
.btn-fourenov::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                                rgba(255,255,255,0.3) 0%, 
                                transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-fourenov:active::after {
    opacity: 1;
    transition: 0s;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        var(--gray-100) 25%, 
        var(--gray-200) 37%, 
        var(--gray-100) 63%
    );
    background-size: 400% 100%;
    animation: skeletonLoading 1.4s ease infinite;
    border-radius: 4px;
}

@keyframes skeletonLoading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Border glow on focus */
input:focus, textarea:focus, select:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(232,168,56,0.15) !important;
}

/* Smooth shadow transition for all cards */
.card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar for Webkit - enhanced */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Check list animation */
.check-list-animated li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInCheck 0.5s ease forwards;
}

.check-list-animated li:nth-child(1) { animation-delay: 0.1s; }
.check-list-animated li:nth-child(2) { animation-delay: 0.2s; }
.check-list-animated li:nth-child(3) { animation-delay: 0.3s; }
.check-list-animated li:nth-child(4) { animation-delay: 0.4s; }
.check-list-animated li:nth-child(5) { animation-delay: 0.5s; }
.check-list-animated li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInCheck {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile bottom navigation upgrade */
@media (max-width: 576px) {
    .btn-group-responsive {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Stats counter animation */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Section title underline animation */
.section-title-underline {
    position: relative;
    display: inline-block;
}

.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    transition: width 0.8s ease;
    border-radius: 2px;
}

.section-title-underline.visible::after {
    width: 100%;
}

/* Image gallery lightbox enhancements */
.modal-backdrop.show {
    opacity: 0.8;
}

.modal-content.bg-transparent .btn-close {
    z-index: 1060;
}

/* Hero video fallback animation */
.hero-section .hero-bg-pattern {
    animation: patternShift 20s ease infinite alternate;
}

@keyframes patternShift {
    0% { opacity: 0.04; }
    50% { opacity: 0.08; }
    100% { opacity: 0.04; }
}

/* WhatsApp float - enhanced */
.whatsapp-float {
    animation: whatsappPulse 2s infinite, whatsappFloat 4s ease-in-out infinite;
}

@keyframes whatsappFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Staggered service cards entrance */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image loading placeholder */
.img-placeholder {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.img-placeholder i {
    font-size: 2rem;
    color: var(--gray-500);
    opacity: 0.5;
}

/* Smooth page transitions */
body {
    animation: pageFadeIn 0.4s ease;
}

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

/* Hero image overlay enhancement */
.hero-overlay-gradient {
    background: linear-gradient(
        135deg,
        rgba(13, 59, 110, 0.92) 0%,
        rgba(26, 90, 158, 0.80) 35%,
        rgba(26, 122, 181, 0.65) 65%,
        rgba(13, 59, 110, 0.5) 100%
    );
}

/* Smooth hover for social icons */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial card entrance */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FAQ accordion smooth transition */
.accordion-collapse {
    transition: height 0.35s ease;
}

/* Image object-fit helpers for consistent sizing */
.obj-cover { object-fit: cover; }
.obj-contain { object-fit: contain; }
.img-h-200 { height: 200px; object-fit: cover; }
.img-h-250 { height: 250px; object-fit: cover; }
.img-h-300 { height: 300px; object-fit: cover; }
.img-h-400 { height: 400px; object-fit: cover; }

/* Better mobile touch targets */
@media (pointer: coarse) {
    .nav-link, .btn, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   29. Gallery Lightbox Modal
   ========================================================================== */
#galleryModal .modal-content {
    background: transparent;
    border: none;
}

#galleryModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    z-index: 1060;
}

#galleryModal .btn-close:hover {
    opacity: 1;
}

#galleryModal img {
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* --------------------------------------------------------------------------
   30. Page Loading & Accessibility Enhancements
   -------------------------------------------------------------------------- */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Service detail image enhancements */
.img-zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.img-zoom-container img {
    transition: transform 0.6s ease;
    width: 100%;
}

.img-zoom-container:hover img {
    transform: scale(1.05);
}

.img-zoom-container .img-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,59,110,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.img-zoom-container:hover .img-overlay-content {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   31. Section Divider Enhancement
   -------------------------------------------------------------------------- */
.section-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 2px;
    margin: 0 auto 1.2rem;
}

/* --------------------------------------------------------------------------
   32. Breadcrumb Enhancement
   -------------------------------------------------------------------------- */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   33. Image fallback background
   -------------------------------------------------------------------------- */
img.hero-fallback {
    min-height: 300px;
    background: linear-gradient(135deg, #0d3b6e 0%, #1a5a9e 50%, #1a7ab5 100%);
}

/* --------------------------------------------------------------------------
   34. Enhanced responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .img-zoom-container .img-overlay-content {
        opacity: 1;
        background: linear-gradient(to top, rgba(13,59,110,0.8) 0%, transparent 50%);
    }
    
    #galleryModal img {
        max-height: 70vh;
    }
}

@media (max-width: 576px) {
    .navbar-fourenov .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem !important;
    }
    .section-title.display-5 {
        font-size: 1.6rem;
    }
    .gallery-item img {
        height: 200px;
    }
}

/* --------------------------------------------------------------------------
   35. Safe Image Loading
   -------------------------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   36. Print-friendly services page
   -------------------------------------------------------------------------- */
@media print {
    .page-header {
        padding: 20px 0;
        background: var(--primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .img-zoom-container .img-overlay-content {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   26. Mobile Navbar Fixes
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Fix mobile dropdown menu inside collapse */
    .navbar-fourenov .dropdown-menu {
        background: rgba(13,59,110,0.6);
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0 0 0 15px;
    }
    
    .navbar-fourenov .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.75);
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .navbar-fourenov .dropdown-menu .dropdown-item:hover {
        background: transparent;
        color: var(--secondary);
    }
    
    /* Ensure collapse menu has proper background and spacing */
    #navbarNav {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    #navbarNav .navbar-nav {
        padding: 10px 0;
    }
    
    /* Fix the nav-link styling on mobile */
    #navbarNav .nav-link {
        padding: 10px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    #navbarNav .nav-link::after {
        display: none;
    }
    
    /* Style the toggler button */
    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.3);
        padding: 6px 10px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px var(--secondary);
    }
    
    /* Lang switch mobile */
    .lang-switch {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.15);
        padding: 8px 16px;
        display: inline-block;
        margin: 10px 16px;
    }
    
    /* Espace Pro mobile styling */
    #navbarNav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 575px) {
    .navbar-fourenov .brand-logo {
        font-size: 1.3rem;
    }
}

/* --------------------------------------------------------------------------
   27. Custom Dropdown (replaces Bootstrap dropdown)
   -------------------------------------------------------------------------- */
/* Both mobile and desktop: toggle dropdown */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 200px;
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    padding: 8px;
}
.dropdown-menu-custom.show {
    display: block;
}
.dropdown-menu-custom .dropdown-item {
    color: rgba(255,255,255,0.85);
    border-radius: 6px;
    padding: 8px 16px;
    transition: var(--transition);
}
.dropdown-menu-custom .dropdown-item:hover {
    background: rgba(232,168,56,0.15);
    color: var(--secondary);
}
/* Desktop: show on hover */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu-custom {
        display: block;
    }
}
/* Mobile: override position */
@media (max-width: 991.98px) {
    .dropdown-menu-custom {
        position: static;
        background: rgba(13,59,110,0.4);
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0 0 0 15px;
        width: 100%;
    }
    .dropdown-menu-custom .dropdown-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Dropdown toggle arrow (replacing bootstrap's) */
.dropdown-toggle-custom::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    color: var(--secondary);
    transition: transform 0.3s ease;
}
.dropdown-toggle-custom[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
