/* ==========================================================================
   V4 - النسخة الرابعة: الطابع الهندسي والصناعي الجريء (Industrial Terracotta & Slate)
   NOVABUILD Multi-Page Stylesheet
   ========================================================================== */
:root {
    
            --bg-main: #F4F4F6;
            --bg-alt: #E8E8EC;
            --bg-surface: #FFFFFF;
            --bg-surface-2: #18181B;
            --text-primary: #18181B;
            --text-secondary: #3F3F46;
            --text-muted: #71717A;
            --accent: #D95326;
            --accent-hover: #B83E16;
            --accent-contrast: #FFFFFF;
            --accent-soft: rgba(217, 83, 38, 0.1);
            --border-color: #D4D4D8;
            --border-accent: #D95326;
            --radius: 2px;
            --radius-lg: 4px;
            --shadow: 6px 6px 0px rgba(24, 24, 27, 0.08);
            --font-ar: 'Changa', sans-serif;
            --font-en: 'Space Grotesk', sans-serif;
            --header-bg: rgba(244, 244, 246, 0.95);
        
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.en-font {
    font-family: var(--font-en);
}

.container {
    width: 100%;
    max-width: 1260px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Top Version Switcher Bar (For Client Review) */
.version-switcher-bar {
    background: #0F172A;
    color: #F8FAFC;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
    z-index: 101;
}

.vs-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vs-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vs-link {
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: #CBD5E1;
    font-weight: 600;
    font-size: 0.78rem;
}

.vs-link:hover, .vs-link.active {
    background: #C89D54;
    color: #070B19;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    height: 82px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.monogram-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-en {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.brand-ar {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-menu a:hover {
    color: var(--accent);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.86rem;
}

.btn-main {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn-main:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-sec {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.btn-sec:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* Hero Layouts */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-visual-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-accent);
    box-shadow: var(--shadow);
}

.hero-visual-box img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.stat-box {
    padding-inline: 0.75rem;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-en);
}

.stat-lbl {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-head {
    margin-bottom: 3.25rem;
}

.section-head.center {
    text-align: center;
    max-width: 740px;
    margin-inline: auto;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* About & Founder Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.about-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
}

.about-media img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.card-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.85rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.founder-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

.founder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.founder-role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.founder-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.f-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid var(--border-accent);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.srv-num {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.45;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.srv-tag {
    font-family: var(--font-en);
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 0.35rem;
}

.srv-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.srv-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.srv-list {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.srv-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.srv-list li::before {
    content: '•';
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
}

/* Projects Grid (Multi-Page Cards) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent);
}

.project-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-cat-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-accent);
}

.project-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-loc {
    font-size: 0.84rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.project-title {
    font-size: 1.28rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.1rem;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
}

.project-card:hover .project-link-btn {
    background: var(--accent);
    color: var(--accent-contrast);
}

/* Credentials Grid */
.creds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cred-badge-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid var(--border-accent);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1.1rem;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ar);
    font-size: 0.95rem;
}

/* Project Detail Page Styles */
.project-hero-banner {
    padding: 4.5rem 0 3rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--accent);
    font-weight: 700;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.meta-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius);
}

.meta-box span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.meta-box strong {
    font-size: 0.98rem;
}

.doc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}

.doc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doc-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.doc-card:hover img {
    transform: scale(1.03);
}

.doc-caption {
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-modal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid #C89D54;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.05rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    background: #C89D54;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-ar);
}

.disclaimer-banner {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px dashed var(--border-accent);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}


            .monogram-box { background: #D95326; color: #FFFFFF; border: 2px solid #18181B; border-radius: 2px; box-shadow: 3px 3px 0 #18181B; }
            .card-item { border: 1.5px solid #18181B; box-shadow: 5px 5px 0 #18181B; }
            .card-item:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 #D95326; }
            .btn-main { border: 1.5px solid #18181B; box-shadow: 4px 4px 0 #18181B; }
            .hero-layout { background: #18181B; color: #FFFFFF; padding: 8rem 0 5rem; border-bottom: 4px solid #D95326; }
            .hero-layout .hero-title, .hero-layout .hero-desc, .hero-layout .stat-val, .hero-layout .stat-lbl { color: #FFFFFF !important; }
            .hero-layout .btn-sec { color: #FFFFFF; border-color: #52525B; }
        

@media (max-width: 992px) {
    .hero-split, .about-grid, .contact-grid, .projects-grid, .creds-grid, .project-meta-grid, .doc-gallery-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .nav-menu {
        display: none;
    }
}


/* ==========================================================================
   MOBILE & TABLET 100% RESPONSIVE ENHANCEMENTS
   ========================================================================== */
.btn, .brand-en, .brand-ar, .vs-link {
    white-space: nowrap;
}

.mobile-nav-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .site-header {
        height: auto;
        min-height: 68px;
        padding: 0.55rem 0;
    }
    .header-inner {
        position: relative;
        gap: 0.75rem;
    }
    .header-phone-btn, .header-cta a[href^="tel:"] {
        display: none !important;
    }
    .mobile-nav-btn {
        display: inline-flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        background: var(--bg-surface);
        border: 1px solid var(--border-accent);
        border-radius: var(--radius);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.25);
        z-index: 200;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        padding: 0.6rem 0.85rem;
        border-radius: 6px;
        display: block;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 1rem;
    }
    .vs-inner > div:first-child {
        display: none;
    }
    .vs-links {
        width: 100%;
        justify-content: center;
    }
    .monogram-box {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .brand-en {
        font-size: 0.98rem;
    }
    .brand-ar {
        font-size: 0.66rem;
    }
    .header-cta .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.76rem;
    }
    .hero-layout {
        padding: 3.5rem 0 2.5rem !important;
        min-height: auto !important;
    }
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.38 !important;
    }
    .hero-desc {
        font-size: 0.95rem !important;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-visual-box img,
    .about-media img {
        height: 250px;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
        gap: 0.85rem;
    }
    .stat-val {
        font-size: 1.2rem;
    }
    .stat-lbl {
        font-size: 0.76rem;
    }
    .section {
        padding: 3.25rem 0;
    }
    .card-item, .founder-card {
        padding: 1.35rem;
    }
    .vm-grid {
        grid-template-columns: 1fr;
    }
    .doc-card img {
        height: 220px;
    }
}
