:root {
    --primary-color: #1a1a1a; /* Dark Charcoal / Black */
    --secondary-color: #c39353; /* Wood / Gold / Bronze */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & Utilities */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-title.light h2 {
    color: var(--bg-white);
}

.section-title.light p {
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #d97706;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

header.scrolled .nav-container {
    height: 60px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.logo .highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn-quote):hover,
.nav-links a.active:not(.btn-quote) {
    color: var(--secondary-color);
}

.nav-links a:not(.btn-quote)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-quote):hover::after,
.nav-links a.active:not(.btn-quote)::after {
    width: 100%;
}

.btn-quote {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-quote:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

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

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
}

.slides-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4); /* Darker overlay for better image visibility */
    z-index: 3;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator .scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Intro Text Section */
.intro-text {
    padding: 6rem 0;
    background-color: var(--bg-white);
    text-align: center;
}

.intro-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.intro-text h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.service-features i {
    color: var(--secondary-color);
}

/* Technology & Process */
.technology {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px dashed var(--secondary-color);
    transition: var(--transition);
}

.step:hover .step-number {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-style: solid;
}

.step-content h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Process Video Showcase */
.process-video-wrapper {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px dashed rgba(195, 147, 83, 0.3);
    text-align: center;
}

.process-video-header {
    margin-bottom: 2rem;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(195, 147, 83, 0.15);
    border: 1px solid rgba(195, 147, 83, 0.45);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.process-video-header h3 {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-video-header p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Video Switcher Tabs */
.video-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.video-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(195, 147, 83, 0.4);
    color: #e2e8f0;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-tab-btn i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.video-tab-btn:hover {
    background: rgba(195, 147, 83, 0.15);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.video-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(195, 147, 83, 0.4);
}

.video-tab-btn.active i {
    color: #ffffff;
}

.video-card {
    max-width: 860px;
    margin: 0 auto;
    background: #0b111e;
    border: 2px solid rgba(195, 147, 83, 0.4);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(195, 147, 83, 0.15);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(195, 147, 83, 0.3);
}

.atelier-video {
    width: 100%;
    max-height: 520px;
    display: block;
    border-radius: 12px;
    background: #000000;
    outline: none;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item.hide {
    display: none;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Placeholders for 3D renders */
.bg-1 { background-image: url('images/slide4.jpg'); }
.bg-2 { background-image: url('images/slide1.jpg'); }
.bg-3 { background-image: url('images/slide2.jpg'); }
.bg-4 { background-image: url('images/slide5.jpg'); }
.bg-5 { background-image: url('images/slide6.jpg'); }
.bg-6 { background-image: url('images/slide3.jpg'); }
.bg-7 { background-image: url('images/slide7.jpg'); }
.bg-8 { background-image: url('images/slide8.jpg'); }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
}

.contact-info h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-form-container {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.checkbox-group {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.checkbox-label {
    margin-bottom: 0.5rem;
}

.checkbox-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.form-actions-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-actions-group .btn {
    flex: 1 1 240px;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.submit-email-btn {
    background: #c39353;
    color: #fff;
}

.submit-email-btn:hover {
    background: #af8143;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(195,147,83,0.35);
}

.submit-wa-btn {
    background: #25D366;
    color: #fff;
}

.submit-wa-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.35);
}

.form-success-banner {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(22,163,74,0.1);
    animation: fadeIn 0.3s ease;
}

.form-success-banner .success-icon {
    font-size: 1.8rem;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-success-banner h4 {
    color: #15803d;
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.form-success-banner p {
    color: #166534;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

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

/* Footer */
footer {
    background-color: #020617;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span:not(.logo-icon) {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Smart TV Optimization (Large Screens) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    html {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}


/* Expertise Section */
.expertise-section { padding: 4rem 0; background-color: #f8fafc; }
.expertise-grid { 
    display: grid; 
    grid-template-columns: 1.15fr 1fr; 
    gap: 1.75rem; 
    align-items: stretch; 
}
.expertise-right-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    justify-content: space-between;
}
.infographic-container { 
    overflow: hidden; 
    border-radius: 14px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    background: #ffffff;
    height: 100%;
}
.infographic-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    cursor: zoom-in; 
    transition: transform 0.3s ease; 
}
.infographic-img:hover { transform: scale(1.02); }
.crop-footer .infographic-img { 
    object-fit: cover; 
    height: 100%; 
    min-height: 580px; 
    object-position: top center; 
}
.expertise-right-stack .infographic-container {
    height: 50%;
}
.expertise-right-stack .infographic-img {
    height: 100%;
    min-height: 275px;
    object-fit: cover;
}
@media (max-width: 992px) { 
    .expertise-grid { 
        grid-template-columns: 1fr; 
        gap: 1.25rem;
    }
    .crop-footer {
        height: auto;
    }
    .crop-footer .infographic-img { 
        min-height: auto; 
        height: auto; 
        object-fit: contain; 
    }
    .expertise-right-stack .infographic-container {
        height: auto;
    }
    .expertise-right-stack .infographic-img { 
        min-height: auto; 
        height: auto;
        object-fit: cover;
    }
}

/* Portfolio images 7 and 8 */
.bg-7 { background-image: url('images/slide7.jpg'); }
.bg-8 { background-image: url('images/slide8.jpg'); }

/* Footer extras */
.footer-info { margin: 1.5rem 0; font-size: 0.95rem; line-height: 1.8; color: #cbd5e1; }
.footer-info i { color: #c39353; margin-right: 8px; }
.slogan-footer { font-family: 'Georgia', serif; font-style: italic; font-size: 1.3rem; color: #c39353; margin-top: 0.5rem !important; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.94);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: default;
    touch-action: none;
}
.lightbox.active { display: flex; animation: fadeInLB 0.25s ease; }

.lightbox-img-wrapper {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 8px;
    object-fit: contain;
    cursor: zoom-in;
    box-shadow: 0 0 50px rgba(0,0,0,0.85);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    transform-origin: center center;
    will-change: transform;
}

.lightbox-content.zoomed {
    cursor: grab;
    max-width: none;
    max-height: none;
    transition: transform 0.1s ease-out;
}

.lightbox-content.zoomed:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: 15px; right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    z-index: 100002;
    transition: color 0.2s, transform 0.2s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { color: #c39353; transform: scale(1.15); }

/* Quick Zoom Button */
.lightbox-zoom-btn {
    position: absolute;
    top: 18px;
    right: 75px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    transition: all 0.2s ease;
}
.lightbox-zoom-btn:hover,
.lightbox-zoom-btn.active {
    background: #c39353;
    border-color: #c39353;
    color: #ffffff;
    transform: scale(1.1);
}

/* Zoom Hint Badge */
.lightbox-zoom-hint {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 17, 30, 0.85);
    border: 1px solid rgba(195, 147, 83, 0.5);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    pointer-events: none;
    z-index: 100002;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
    animation: fadeInLB 0.4s ease;
}
.lightbox-zoom-hint i {
    color: #c39353;
}

.portfolio-item { cursor: zoom-in; }
@keyframes fadeInLB { from { opacity: 0; } to { opacity: 1; } }

/* Lightbox Navigation Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    z-index: 100001;
    user-select: none;
}
.lightbox-arrow:hover {
    background: rgba(195,147,83,0.7);
    border-color: #c39353;
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }
@media (max-width: 600px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-close { top: 10px; right: 15px; font-size: 34px; }
    .lightbox-zoom-btn { top: 12px; right: 62px; width: 38px; height: 38px; font-size: 0.95rem; }
    .lightbox-zoom-hint { bottom: 15px; font-size: 0.75rem; padding: 5px 12px; }
}
.bg-9  { background-image: url('images/slide9.jpg'); }
.bg-10 { background-image: url('images/slide10.jpg'); }
.bg-11 { background-image: url('images/slide11.jpg'); }
.bg-12 { background-image: url('images/slide12.jpg'); }
.bg-13 { background-image: url('images/slide13.jpg'); }

/* ===== PORTFOLIO CAROUSEL ===== */
.portfolio-carousel { margin-top: 2rem; }

.carousel-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-main-img-wrap {
    flex: 1;
    position: relative;
    height: 500px;
    overflow: hidden;
}

#car-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.carousel-main-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.car-arrow {
    flex-shrink: 0;
    width: 60px;
    height: 100%;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 5;
}
.car-arrow:hover { background: rgba(195,147,83,0.85); color: #fff; }

/* Thumbnails strip */
.carousel-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}
.carousel-thumbs::-webkit-scrollbar { height: 4px; }
.carousel-thumbs::-webkit-scrollbar-thumb { background: #c39353; border-radius: 4px; }

.car-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.car-thumb:hover { opacity: 0.9; transform: scale(1.04); }
.car-thumb.active { border-color: #c39353; opacity: 1; }

@media (max-width: 768px) {
    .carousel-main-img-wrap { height: 280px; }
    .car-arrow { width: 40px; font-size: 1.1rem; }
    .car-thumb { width: 80px; height: 55px; }
}


/* ===== MULTI-PAGE ADDITIONS ===== */

/* Hero content overlay */
.hero-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background: rgba(195,147,83,0.2);
    border: 1px solid rgba(195,147,83,0.5);
    color: #c39353;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #c39353;
}
.hero-stats .stat small { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* Page Hero (inner pages) */
.page-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
    color: #fff;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #c39353;
    margin-bottom: 0.75rem;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }

/* Cities Section */
.cities-section { padding: 4rem 0; background: #f8fafc; }
.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.cities-list span {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cities-list span i { color: #c39353; margin-right: 6px; }

/* CTA Banner */
.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline {
    background: transparent;
    border: 2px solid #c39353;
    color: #c39353;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-outline:hover { background: #c39353; color: #fff; }
.btn-link {
    color: #c39353;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
}
.btn-link:hover { text-decoration: underline; }

/* Footer links */
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #c39353; }
.copyright { color: #64748b; font-size: 0.85rem; margin-top: 1rem; }

/* Services detail grid */
.services-full { padding: 5rem 0; }
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-detail-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-4px); }
.service-detail-card i { font-size: 2.2rem; color: #c39353; margin-bottom: 1rem; }
.service-detail-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: #1a1a1a; }
.service-detail-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; }
.service-detail-card.dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #fff; }
.service-detail-card.dark h3 { color: #c39353; }
.service-detail-card.dark p { color: rgba(255,255,255,0.7); }

/* Materials */
.materials-section { padding: 4rem 0; background: #f8fafc; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.material-card { background: #fff; border-radius: 12px; padding: 2rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.material-card i { font-size: 2.5rem; color: #c39353; margin-bottom: 1rem; }
.material-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.material-card p { font-size: 0.85rem; color: #64748b; }

/* WhatsApp big button */
.whatsapp-big-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin: 1.5rem 0;
    justify-content: center;
    transition: background 0.2s;
}
.whatsapp-big-btn:hover { background: #1ebe5d; }
.whatsapp-big-btn i { font-size: 1.5rem; }

/* Travel notice */
.travel-notice {
    background: rgba(195,147,83,0.1);
    border: 1px solid rgba(195,147,83,0.3);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}
.travel-notice i { color: #c39353; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.travel-notice strong { display: block; color: #c39353; margin-bottom: 0.25rem; }
.travel-notice p { font-size: 0.85rem; color: #64748b; margin: 0; }


/* ===== FIX: Supprimer underline partout sauf liens voulus ===== */
* { text-decoration: none !important; }

/* Remettre underline uniquement sur les vrais liens dans le texte */
.travel-notice a:hover,
.footer-info a:hover,
.contact-info a:hover {
    text-decoration: underline !important;
}

/* S'assurer que le curseur est normal sur le texte non-cliquable */
h1, h2, h3, h4, h5, h6, p, span, li, small, label, div {
    cursor: default;
}

/* Curseur pointer uniquement sur les vrais éléments cliquables */
a, button, .btn, .btn-primary, .btn-outline, .btn-whatsapp,
.btn-quote, .filter-btn, .car-arrow, .lightbox-close,
.lightbox-arrow, .car-thumb, .mobile-menu,
.portfolio-img, .infographic-img, [onclick] {
    cursor: pointer !important;
}

/* ===== Désactiver la sélection de texte sur tout le site ===== */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Réactiver uniquement dans les champs de formulaire */
input, textarea, select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

/* ===== Form validation styles ===== */
.req { color: #e53e3e; font-weight: 700; }
.form-required-note { font-size: 0.82rem; color: #94a3b8; margin-bottom: 1rem; }
.form-error-msg {
    background: #fff5f5;
    border: 1.5px solid #e53e3e;
    color: #c53030;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.form-error-msg i { flex-shrink: 0; margin-top: 2px; }

/* ===== Hero text — always readable with isolated backdrop ===== */
.hero-content {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 90%;
    max-width: 820px;

    /* Isolated dark backdrop so text is always visible */
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 2.2rem 2.8rem 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-content h1 .highlight {
    color: #c39353;
    text-shadow: 0 2px 12px rgba(195,147,83,0.4);
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-badge {
    display: inline-block;
    background: rgba(195,147,83,0.25);
    border: 1px solid rgba(195,147,83,0.6);
    color: #f0c070;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.scroll-indicator {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(195, 147, 83, 0.35);
    border-radius: 50px;
    padding: 3px;
    gap: 3px;
    margin-left: 1rem;
    transition: var(--transition);
}

header.scrolled .lang-switch {
    background: rgba(26, 26, 26, 0.08);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    cursor: pointer !important;
    transition: all 0.25s ease;
    user-select: none;
}

.lang-btn:hover {
    color: var(--secondary-color);
}

.lang-btn.active {
    background: var(--secondary-color);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(195, 147, 83, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: auto;
        margin-right: 0.75rem;
        padding: 2px;
    }
    .lang-btn {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* ===== RTL (ARABIC) SUPPORT ===== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    font-family: 'Cairo', 'Roboto', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .logo,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-links a {
    font-family: 'Cairo', 'Montserrat', sans-serif;
}

html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    html[dir="rtl"] .lang-switch {
        margin-left: 0.75rem;
        margin-right: auto;
    }
}

html[dir="rtl"] .nav-links {
    flex-direction: row;
}

html[dir="rtl"] .cities-list span i {
    margin-right: 0;
    margin-left: 6px;
}

html[dir="rtl"] .service-features li i {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .footer-info p i {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .travel-notice {
    text-align: right;
}

html[dir="rtl"] .checkbox-options {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .contact-info {
    text-align: right;
}

html[dir="rtl"] .contact-info .info-item i {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .carousel-main-label {
    text-align: right;
}

html[dir="rtl"] .hero-badge i {
    margin-right: 0;
    margin-left: 0.4rem;
}

html[dir="rtl"] .car-prev i,
html[dir="rtl"] .lightbox-prev i {
    transform: rotate(180deg);
}

html[dir="rtl"] .car-next i,
html[dir="rtl"] .lightbox-next i {
    transform: rotate(180deg);
}

/* Fix Hero Slider in RTL mode: keep slides strip strictly LTR so translateX works identically */
html[dir="rtl"] .hero-slider,
html[dir="rtl"] .slides-container,
html[dir="rtl"] .slides {
    direction: ltr !important;
}

/* ===== CTA BANNER HIGH-CONTRAST FIX ===== */
.cta-banner {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(195, 147, 83, 0.25);
    border-bottom: 1px solid rgba(195, 147, 83, 0.25);
}

.cta-banner h2 {
    color: #ffffff !important;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.cta-banner h2::after {
    display: none !important;
}

.cta-banner p {
    color: #e2e8f0 !important;
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.cta-btns {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-banner .btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(195, 147, 83, 0.4);
}

.cta-banner .btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* Page Hero text brightness */
.page-hero {
    background: linear-gradient(135deg, #111827 0%, #1a1a1a 100%);
}
.page-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.page-hero p {
    color: #e2e8f0 !important;
}

/* ===== MOBILE HEADER & HAMBURGER SPACING FIX ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.2rem !important;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.15rem !important;
        flex-shrink: 0;
    }

    .logo-icon {
        font-size: 1.3rem !important;
    }

    .lang-switch {
        margin-left: auto !important;
        margin-right: 0.4rem !important;
        padding: 2px !important;
        flex-shrink: 0;
    }

    .lang-btn {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
    }

    .mobile-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
        background: rgba(26, 26, 26, 0.05);
        border: 1px solid rgba(195, 147, 83, 0.25);
        border-radius: 8px;
        color: var(--primary-color);
        cursor: pointer !important;
        flex-shrink: 0;
        margin-right: 2px;
        transition: all 0.2s ease;
    }

    .mobile-menu:hover,
    .mobile-menu:active {
        background: rgba(195, 147, 83, 0.15);
        color: var(--secondary-color);
    }

    /* RTL specific adjustments for mobile */
    html[dir="rtl"] .lang-switch {
        margin-left: 0.4rem !important;
        margin-right: auto !important;
    }

    html[dir="rtl"] .mobile-menu {
        margin-right: 0 !important;
        margin-left: 2px !important;
    }
}

/* ===== 3D PYRAMID LOGO STYLES ===== */
.logo {
    font-size: 1.5rem; /* Taille de texte originale conservée */
    gap: 0.65rem;
}

.logo-img-icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(195, 147, 83, 0.35));
    transition: transform 0.3s ease;
}

header.scrolled .logo-img-icon {
    width: 50px;
    height: 50px;
}

.logo:hover .logo-img-icon {
    transform: scale(1.08) rotate(-2deg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.5rem;
}

.footer-logo-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(195, 147, 83, 0.5));
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.15rem !important;
        gap: 0.5rem;
    }
    .logo-img-icon {
        width: 48px !important;
        height: 48px !important;
    }
}

/* ===== FLOATING CALL BUTTON & INTERLOCUTOR POPUP ===== */
.floating-call-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: pulseCallBtn 2.2s infinite;
}

.floating-call-btn:hover,
.floating-call-btn:active {
    transform: scale(1.08);
    box-shadow: 0 6px 26px rgba(37, 211, 102, 0.65);
    color: #fff !important;
}

.floating-call-wrapper.open .floating-call-btn {
    animation: none;
    background: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
    transform: rotate(135deg);
}

.call-popup-menu {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 310px;
    background: #1e293b;
    border: 1px solid rgba(195, 147, 83, 0.4);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 100000;
    transform-origin: bottom right;
    animation: popupScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.floating-call-wrapper.open .call-popup-menu {
    display: flex;
}

@keyframes popupScaleIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.call-popup-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 0.2rem;
}

.call-popup-header h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.call-popup-header p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
}

.call-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.call-option-card:hover {
    background: rgba(195, 147, 83, 0.15);
    border-color: rgba(195, 147, 83, 0.5);
    transform: translateY(-2px);
}

.call-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-option-role {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}

.call-option-desc {
    color: #94a3b8;
    font-size: 0.74rem;
}

.call-option-num {
    color: #c39353;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.call-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}

.call-option-card:hover .call-option-icon {
    transform: scale(1.12);
}

@keyframes pulseCallBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* RTL positioning for floating call button */
html[dir="rtl"] .floating-call-wrapper {
    right: auto !important;
    left: 24px !important;
    align-items: flex-start;
}

html[dir="rtl"] .call-popup-menu {
    right: auto !important;
    left: 0 !important;
    transform-origin: bottom left;
}

/* ===== MOBILE HERO OPTIMIZATION (FULL-WIDTH IMAGE + TEXT BELOW) ===== */
@media (max-width: 768px) {
    /* Set hero slider container to auto flow */
    .hero-slider {
        height: auto !important;
        min-height: unset !important;
        display: flex;
        flex-direction: column;
        background: #111827;
        padding-top: 70px; /* offset fixed navbar */
    }

    .slides-container {
        width: 100%;
        height: 250px; /* ideal aspect ratio to show entire stand */
        position: relative;
        flex-shrink: 0;
        background: #000;
    }

    .slide {
        background-size: contain !important; /* Full width, no zoom/crop */
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-color: #0b0f19;
    }

    .slider-overlay {
        display: none !important; /* Remove dark tint so image is vibrant */
    }

    .scroll-indicator {
        display: none !important; /* Clean UI on mobile */
    }

    /* Move hero content below the image */
    .hero-content {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 0 24px 24px !important;
        padding: 1.8rem 1.2rem 2rem !important;
        background: #111827 !important; /* Elegant dark container matching site */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-top: 1px solid rgba(195, 147, 83, 0.2) !important;
        box-shadow: none !important;
        margin: 0 !important;
        text-align: center;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 4px 14px;
        margin-bottom: 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.6rem !important;
    }

    .hero-content p {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
        color: rgba(255, 255, 255, 0.82) !important;
        margin-bottom: 1.2rem !important;
        padding: 0 0.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.6rem;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-stats .stat span {
        font-size: 1.5rem !important;
    }

    .hero-stats .stat small {
        font-size: 0.7rem !important;
    }

    /* ===== FULL-WIDTH MOBILE FORM & CONTACT STYLES ===== */
    .contact {
        padding: 3rem 0 !important;
    }

    .container {
        padding: 0 0.85rem !important; /* Maximise usable mobile width */
    }

    .contact-wrapper {
        border-radius: 14px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .contact-form-container {
        padding: 1.5rem 1rem !important; /* No huge padding wasting width */
        width: 100% !important;
    }

    .quick-contact-card {
        padding: 1.5rem 1rem !important;
        border-radius: 10px !important;
        width: 100% !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem !important; /* Prevents auto-zoom on iOS */
        padding: 0.85rem 0.9rem !important;
    }
}

/* Quick contact card base */
.quick-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ===== RECAPTCHA STYLE BOX ===== */
.captcha-box-wrapper {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    user-select: none;
}

.captcha-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.captcha-checkbox-wrap input[type="checkbox"] {
    width: 26px !important;
    height: 26px !important;
    cursor: pointer;
    accent-color: #2563eb;
}

.captcha-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
}

.captcha-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.captcha-branding i {
    font-size: 1.6rem;
    color: #3b82f6;
    margin-bottom: 2px;
}

.captcha-branding span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.02em;
}

.captcha-branding small {
    font-size: 0.55rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .captcha-box-wrapper {
        padding: 10px 12px !important;
    }
}

/* ===== NATIONAL REGIONAL HUBS GRID ===== */
.cities-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0 2rem;
    text-align: left;
}

.city-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.city-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(195,147,83,0.15);
    border-color: #c39353;
}

.city-hub-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.85rem;
    align-self: flex-start;
}

.city-hub-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.city-hub-card h3 i {
    color: #c39353;
    font-size: 1rem;
}

.city-hub-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Primary HQ Card (Rabat) */
.city-hub-card.hq {
    border-color: #c39353;
    background: linear-gradient(145deg, #ffffff 0%, #fffcf7 100%);
    box-shadow: 0 6px 20px rgba(195,147,83,0.12);
}

.city-hub-card.hq .city-hub-badge {
    background: #c39353;
    color: #ffffff;
}

@media (max-width: 600px) {
    .cities-grid-cards {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .city-hub-card {
        padding: 1.2rem 1rem;
    }
}

/* ===== MOROCCO OFFICIAL INTERACTIVE MAP ===== */
.morocco-map-wrapper {
    position: relative;
    max-width: 840px;
    margin: 2.5rem auto 2rem;
    background: linear-gradient(145deg, #0b111e 0%, #111a2e 50%, #0b111e 100%);
    border: 1.5px solid rgba(195, 147, 83, 0.45);
    border-radius: 20px;
    padding: 2rem 1.2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.official-morocco-map {
    width: 100%;
    height: auto;
    max-height: 740px;
    display: block;
    margin: 0 auto;
}

.morocco-region-path {
    fill: #182235;
    stroke: #c39353;
    stroke-width: 1.5;
    transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.morocco-region-path:hover {
    fill: #24334f;
    stroke: #f3c77c;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(195, 147, 83, 0.4));
}

.pin-leader {
    stroke: #f3c77c;
    stroke-width: 2.2;
    stroke-dasharray: 5 4;
    opacity: 0.95;
    pointer-events: none;
}

.pin-dot {
    fill: #f3c77c;
    stroke: #0b111e;
    stroke-width: 2.5;
    pointer-events: none;
}

.pin-pulse {
    fill: #c39353;
    opacity: 0.55;
    animation: pinPulseAnim 2.2s infinite ease-out;
    transform-origin: center;
    pointer-events: none;
}

.map-city-link {
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.city-pin {
    cursor: pointer;
}

.pin-badge {
    cursor: pointer;
}

.pin-badge-bg {
    fill: #080d17;
    stroke: #c39353;
    stroke-width: 1.8;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.pin-badge-txt {
    fill: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Hover: Rock-solid and stable with radiant gold highlight (NO shifting / NO flickering) */
.city-pin:hover .pin-badge-bg {
    fill: #c39353;
    stroke: #ffffff;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 14px rgba(195, 147, 83, 0.85));
}

.city-pin:hover .pin-badge-txt {
    fill: #ffffff;
}

.city-pin:hover .pin-dot {
    fill: #ffffff;
    stroke: #c39353;
}

.city-pin:hover .pin-leader {
    stroke: #ffffff;
    opacity: 1;
}

/* Rabat (Siège) special styling */
.city-pin.pin-hq .pin-badge-bg {
    fill: #c39353;
    stroke: #ffffff;
    stroke-width: 2.2;
    filter: drop-shadow(0 4px 14px rgba(195, 147, 83, 0.6));
}

.city-pin.pin-hq .pin-badge-txt {
    fill: #ffffff;
    font-weight: 800;
}

.city-pin.pin-hq .pin-dot {
    fill: #ffffff;
    stroke: #c39353;
    stroke-width: 3.5;
}

.city-pin.pin-hq:hover .pin-badge-bg {
    fill: #d9a35e;
    stroke: #ffffff;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95));
}

@keyframes pinPulseAnim {
    0% {
        r: 7;
        opacity: 0.7;
    }
    50% {
        r: 22;
        opacity: 0;
    }
    100% {
        r: 7;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .morocco-map-wrapper {
        padding: 0.8rem 0.2rem;
        border-radius: 14px;
        margin: 1.5rem auto;
    }
    .official-morocco-map {
        max-height: 520px;
    }
}

/* ===== SHOWCASE CONTEXT BANNER ===== */
.showcase-context-banner {
    background: rgba(195, 147, 83, 0.12);
    border: 1px solid rgba(195, 147, 83, 0.4);
    color: #925f18;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    width: 100%;
}
.showcase-context-banner i {
    color: #c39353;
    font-size: 1.15rem;
}
.showcase-context-banner strong {
    color: #1a1a1a;
}


