/*
Theme Name: BK Media Fresh Build
Author: Ettalibi Assia
Description: Creative Media Agency Theme
Version: 2.0
*/

/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */

:root {
    --primary: #5E33F4ff;       /* Electric Indigo */
    --accent: #8078F7ff;        /* Medium Slate Blue */
    --light-accent: #8698FDff;  /* Wisteria Blue */
    --bg-light: #EDEDEFff;      /* Platinum */
    --bg-grey: #D9D8DCff;       /* Alabaster */
    --black: #000000ff;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

header {
    background-color: #000000;
    padding: 0 5%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.admin-bar header { top: 32px; }

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

header nav ul {
    list-style: none;
    display: flex !important;
    flex-direction: row !important;
    white-space: nowrap;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s ease;
}

header nav ul li a:hover { color: var(--light-accent); }

header nav ul li.current-menu-item a {
    color: var(--light-accent);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

header nav ul li:last-child a {
    background-color: var(--primary);
    padding: 10px 22px !important;
    border-radius: 5px;
    color: white !important;
}

header nav ul li:last-child a:hover {
    background-color: var(--white);
    color: var(--primary) !important;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.logo img, .custom-logo-link img {
    height: 55px;
    width: auto;
    display: block;
    transition: 0.3s ease;
}

.custom-logo-link:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Language Switcher */
.lang-switcher ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.lang-switcher img { width: 20px; border-radius: 2px; }

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* Search Bar */
.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2px 10px;
    transition: 0.3s;
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.search-field {
    width: 150px;
    background: transparent;
    border: none;
    color: white;
    padding: 5px 8px;
    outline: none;
    font-size: 0.8rem;
    transition: 0.4s;
}

.search-field:focus { width: 200px; }

.search-submit {
    background: transparent;
    border: none;
    color: var(--light-accent);
    cursor: pointer;
}

/* Search Results Page */
.search-results-page { 
    padding-top: 160px !important; 
    position: relative;
    z-index: 1;
    background-color: var(--bg-light);
    min-height: 100vh; }
.search-header-pro {
    background: #000;
    color: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-left: 8px solid var(--primary); /* A nice Indigo accent line */
    position: relative;
    z-index: 2;
    margin-top: 0;
    overflow: hidden;
}

.results-count {
    display: block;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.search-result-entry {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}
.search-result-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.result-title a {
    text-decoration: none;
    color: var(--black);
    font-size: 2.2rem;
    transition: 0.3s;
}

.result-title a:hover { color: var(--primary); }

.result-snippet { color: #666; font-size: 1.1rem; margin: 10px 0; }

.result-tag {
    display: inline-block;
    background: var(--bg-grey);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   3. HEADER RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    header { height: auto; padding: 15px 5%; }
    .search-field:focus { width: 150px; }
}

@media (max-width: 992px) {
    header {
        flex-direction: row !important;
        justify-content: space-between;
        height: auto !important;
        min-height: 80px;
        padding: 10px 5%;
    }

    .menu-toggle { display: flex; }

    .header-search, #site-nav { display: none; }

    .header-right {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        gap: 15px;
    }

    .lang-switcher ul {
        flex-direction: row !important;
        gap: 10px;
        margin: 0;
    }

    /* Mobile nav drawer */
    .nav-active #site-nav,
    .nav-active .header-search {
        display: flex !important;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        z-index: 9999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    #site-nav ul {
        flex-direction: column !important;
        gap: 20px;
    }
}

/* ==========================================================================
   4. GENERAL LAYOUT
   ========================================================================== */

.site-main { flex: 1; padding: 60px 0; }

section { padding: 120px 0; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.entry-content {
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
    color: #666;
    max-width: 800px;
    margin: 60px auto;
}

.page-title {
    margin-bottom: 30px;
    color: var(--primary);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #000000 0%, #5E33F4 100%);
    color: var(--white);
    padding: 60px 5% 100px 5%;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: left;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 55%;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero h1 span { color: var(--light-accent); }

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 0 30px 0;
}

/* Hero Image Column */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 480px;
    z-index: 2;
}

.image-frame img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    z-index: 3;
    filter: grayscale(20%);
    transition: 0.5s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: block;
}

.image-frame:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Indigo glow behind photo */
.image-frame::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 30px;
    z-index: 1;
    opacity: 0.6;
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -5px;
    right: -20px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--black);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 800;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 20px;
}

.btn:hover { background: var(--accent); transform: translateY(-3px); }

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover { background: var(--primary); color: white; }

.btn-main {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(94, 51, 244, 0.2);
}

.btn-main:hover {
    background: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ==========================================================================
   6. SERVICES SECTION
   ========================================================================== */

.services-section {
    padding: 140px 0;
    background-color: var(--white);
}

.section-header { margin-bottom: 80px; }

.subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3.5rem;
    color: var(--black);
    text-align: left;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Services Visual Grid */
.services-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-visual-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.5s ease;
}

.service-visual-card:hover { transform: scale(0.98); }

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(94, 51, 244, 0.8));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.4s;
}

.service-visual-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.9));
}

.card-no {
    font-size: 1rem;
    font-weight: 800;
    color: var(--light-accent);
    margin-bottom: 10px;
}

.card-overlay h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; }

.card-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.service-visual-card:hover p { opacity: 1; transform: translateY(0); }

.large-card { grid-column: span 3; height: 300px; }

/* ==========================================================================
   7. CONTACT SECTION
   ========================================================================== */

.contact-section {
    background: rgb(68, 38, 139);
    padding: 120px 0;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

.direct-contact { margin-top: 30px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.4rem;
    width: 25px;
    text-align: center;
}

.devis-box {
    background: rgba(94, 51, 244, 0.05);
    padding: 30px;
    border-left: 4px solid var(--primary);
    margin-bottom: 40px;
    border-radius: 0 15px 15px 0;
}

.devis-box h3 {
    color: var(--light-accent);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: none;
}

.devis-box p { font-size: 1rem; line-height: 1.6; opacity: 0.8; }

.direct-contact p { margin-bottom: 10px; font-size: 0.9rem; opacity: 0.6; }

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0,0,0,0.1) !important;
    padding: 15px 0;
    color: var(--black) !important;
    margin-bottom: 30px;
    outline: none;
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder { color: white !important; }

.contact-form-container input:focus { border-bottom-color: var(--primary); }

.wpcf7-submit {
    background-color: #EDEDEFff !important;
    color: white !important;
    padding: 18px 45px !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    cursor: pointer;
    width: auto !important;
    min-width: 250px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(94, 51, 244, 0.3);
}

.wpcf7-submit:hover {
    background-color: var(--black) !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: white !important;
}

/* ==========================================================================
   8. PORTFOLIO SECTION
   ========================================================================== */

.portfolio-teaser {
    background: var(--black);
    color: white;
    padding: 120px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.portfolio-teaser h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    transition: 0.4s ease;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.work-video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
    padding-top: 15px;
}

.portfolio-item:hover .work-video {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.work-info {
    padding: 20px 0;
    background: transparent;
    text-align: left;
}

.work-info h4 {
    margin: 5px 0;
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.work-info span {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
    opacity: 0.8;
}

/* ==========================================================================
   9. ABOUT SECTION
   ========================================================================== */

.about-teaser {
    background-color: var(--bg-light);
    padding: 140px 0;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 100px;
}

.about-image-wrapper { position: relative; padding: 20px; }

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0 80px 0 80px;
    z-index: 2;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    display: block;
}

.image-accent-box {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 80%;
    height: 80%;
    background-color: var(--primary);
    border-radius: 0 80px 0 80px;
    z-index: 1;
    opacity: 0.2;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: rotate(-90deg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary);
    font-size: 0.7rem;
    opacity: 0.5;
}

.about-text { flex: 1; }

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--black);
}

.about-text-content h2 span { color: var(--primary); display: block; }

.about-text p, .about-text-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.about-features { display: flex; gap: 30px; margin-bottom: 40px; }

.feature-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.main-footer {
    background-color: rgb(178, 177, 182);
    color: var(--black);
    padding: 100px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 80px;
}

.footer-column h5 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 800;
}

/* Brand Column */
.brand-col .logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.brand-col p {
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Footer Nav */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li { margin-bottom: 15px; }

.footer-menu li a {
    text-decoration: none;
    color: var(--black);
    opacity: 0.6;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.footer-menu li a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

/* Contact Column */
.contact-col p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.contact-col span { color: var(--white); }

.footer-cta {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 5px;
    transition: 0.3s;
}

.footer-cta:hover { color: var(--black); border-color: var(--black); }

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0,0,0,0.08);
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
}

/* Footer Links (generic utility) */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }

.footer-links li a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(8px);
}

.footer-title {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

/* ==========================================================================
   11. TABLET RESPONSIVE  (max-width: 992px)
   ========================================================================== */

@media (max-width: 992px) {
    /* Services */
    .services-visual-grid {
        grid-template-columns: 1fr 1fr;
    }
    .large-card { grid-column: span 2; }

    /* Portfolio */
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 0 20px;
    }

    .contact-info h2 { font-size: 2.5rem; }

    .contact-form-container { width: 100%; overflow: hidden; }
}

/* ==========================================================================
   12. MOBILE RESPONSIVE  (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* --- Header --- */
    header {
        flex-direction: row !important;
        justify-content: space-between;
        padding: 10px 5%;
        height: 80px;
    }

    .lang-switcher ul {
        flex-direction: row !important;
        gap: 12px;
        background: transparent;
    }

    /* --- Hero: stack text on top, image below --- */
    .hero {
        padding: 60px 5% 80px 5%;
        min-height: auto;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    }

    .hero-flex {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-content h1 {
        font-size: 3rem !important;
        line-height: 1.05;
        letter-spacing: -1px;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    .hero-image {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    /* Shrink frame, keep proportions */
    .image-frame {
        width: 280px;
        height: 340px;
        margin: 0 auto;
    }

    /* Badge stays bottom-right of the frame */
    .experience-badge {
        bottom: -15px;
        right: -10px;
        font-size: 0.78rem;
        padding: 12px 18px;
        border-radius: 12px;
        white-space: nowrap;
    }

    /* Halo stays proportional */
    .image-frame::before {
        top: -15px;
        left: -15px;
    }

    /* --- Services --- */
    .services-visual-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .service-visual-card { height: 300px; }

    .large-card {
        grid-column: span 1 !important;
        height: 250px;
    }

    .card-overlay h3 { font-size: 1.4rem; }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }

    .contact-info h2 { font-size: 2.2rem; }

    .devis-box { text-align: left; }

    .direct-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* --- Portfolio --- */
    .portfolio-grid { grid-template-columns: 1fr !important; }

    /* --- Footer: everything stacked, centered --- */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }

    .brand-col p { margin: 0 auto; }

    .social-links { justify-content: center; }

    .footer-menu li a:hover {
        transform: none;   /* disable slide on touch */
        padding-left: 0;
    }

    .footer-column h5 { margin-top: 10px; }
}

/* ==========================================================================
   13. SMALL MOBILE  (max-width: 600px)
   ========================================================================== */

@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. RTL / ARABIC SUPPORT
   ========================================================================== */

[dir="rtl"] body {
    font-family: 'Cairo', 'Almarai', sans-serif;
    text-align: right;
}

[dir="rtl"] header,
[dir="rtl"] .hero-flex,
[dir="rtl"] .about-grid,
[dir="rtl"] .footer-grid,
[dir="rtl"] .contact-grid {
    flex-direction: row-reverse;
}

[dir="rtl"] header nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] header nav ul {
    flex-direction: row;
    gap: 25px;
}

[dir="rtl"] header nav ul li:last-child a {
    background-color: var(--primary);
    margin-right: 20px;
    margin-left: 0;
}

[dir="rtl"] .logo {
    margin-left: 40px;
    margin-right: 0;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

[dir="rtl"] .service-card {
    text-align: right;
    border-left: none;
    border-right: 4px solid transparent;
}

[dir="rtl"] .service-card:hover {
    border-right: 4px solid var(--primary);
}

[dir="rtl"] .services-visual-grid { direction: rtl; }

[dir="rtl"] .card-overlay {
    text-align: right;
    align-items: flex-end;
}

[dir="rtl"] .image-frame::before {
    left: auto;
    right: -25px;
}

[dir="rtl"] .contact-form-container { text-align: right; }

[dir="rtl"] .wpcf7-submit {
    float: right;
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .wpcf7-form-control {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .work-info {
    text-align: right;
}

[dir="rtl"] .work-info h4 {
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .contact-info { text-align: right; }

[dir="rtl"] .footer-links li a:hover {
    transform: translateX(-8px);
}

[dir="rtl"] .devis-box {
    border-left: none;
    border-right: 4px solid var(--primary);
    border-radius: 15px 0 0 15px;
}