/* ==============================================================================
   AL CONNEXION COMPANY - ENTERPRISE DESIGN SYSTEM & MULTILINGUAL STYLESHEET
   ============================================================================== */

:root {
    --primary: #111828;         /* Corporate Deep Navy */
    --primary-light: #1f293d;   /* Lighter Navy for Cards & Overlays */
    --secondary: #2563eb;       /* Royal Blue */
    --secondary-hover: #1d4ed8; /* Darker Royal Blue */
    --accent-gold: #c29d59;     /* Vision 2030 Warm Gold */
    --accent-green: #10b981;    /* WhatsApp & Success Green */
    --text-primary: #1f2937;    /* Charcoal Text */
    --text-secondary: #4b5563;  /* Muted Slate Text */
    --text-light: #9ca3af;      /* Light Gray */
    --bg-light: #f8fafc;        /* Off-White Surface */
    --bg-white: #ffffff;        /* Pure White */
    --border-color: #e2e8f0;    /* Crisp Border */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

/* Arabic RTL Specific Typography & Adjustments */
html[dir="rtl"], body.arabic-mode {
    font-family: 'Amiri', 'Inter', system-ui, serif;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .brand-name-en {
    font-family: 'Amiri', 'Montserrat', serif;
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}
.btn-outline:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-wa-direct {
    background-color: var(--accent-green);
    color: white;
    font-weight: 700;
}
.btn-wa-direct:hover {
    background-color: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Top Bar Strip */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-info a, .top-bar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.top-bar-info a:hover {
    color: white;
}
.cr-badge-top {
    background: rgba(194, 157, 89, 0.2);
    color: #ffd27d;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(194, 157, 89, 0.4);
}
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher Button */
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.lang-switcher-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Main Navigation Header */
.main-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
}
.main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-name-en {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.3px;
}
.brand-name-ar {
    font-family: 'Amiri', serif;
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    position: relative;
    padding: 0.3rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}
html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.header-cta {
    background: var(--secondary);
    color: white !important;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.header-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(17, 24, 40, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1002;
}
.mobile-toggle .bar {
    width: 26px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(17, 24, 40, 0.88) 0%, rgba(17, 24, 40, 0.7) 100%), url('../hero_bg.png') center/cover no-repeat;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    color: white;
    position: relative;
    text-align: center;
}
.hero-content {
    max-width: 860px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: rgba(194, 157, 89, 0.25);
    color: #fde68a;
    border: 1px solid rgba(194, 157, 89, 0.5);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero h1 {
    color: white;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* Stats Bar */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    margin-top: 1rem;
}
.stat-card {
    text-align: center;
}
.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
    margin-bottom: 0.35rem;
    font-family: 'Montserrat', sans-serif;
}
.stat-label {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Page Header (Inner Pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
}
.page-header h1 {
    color: white;
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}
.page-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 1rem;
}
.breadcrumb a {
    color: #60a5fa;
}

/* General Sections */
.section {
    padding: 5rem 0;
}
.section-alt {
    background-color: var(--bg-light);
}
.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.section-tag {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* About & Vision/Mission Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 440px;
    object-fit: cover;
}
.about-cr-pill {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html[dir="rtl"] .about-cr-pill {
    right: auto;
    left: 20px;
    border-left: none;
    border-right: 4px solid var(--accent-gold);
}

.vm-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
}
.vm-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary);
    transition: var(--transition);
}
.vm-card.gold-border {
    border-top-color: var(--accent-gold);
}
.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.vm-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}
.value-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}
.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}
.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.value-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}
.value-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: #93c5fd;
}
.service-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 1rem;
    background-color: var(--primary);
}
.service-category-badge {
    background: rgba(17, 24, 40, 0.85);
    color: white;
    backdrop-filter: blur(6px);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-icon-box {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: -38px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid white;
}
.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.service-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.service-features-list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-features-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-features-list .check-icon {
    color: var(--secondary);
    font-weight: 800;
}
.service-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.service-wa-btn {
    width: 38px;
    height: 38px;
    background-color: #ecfdf5;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid #a7f3d0;
}
.service-wa-btn:hover {
    background-color: var(--accent-green);
    color: white;
    transform: scale(1.1);
}

/* Compliance Section & Cards */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.compliance-item-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
html[dir="rtl"] .compliance-item-card {
    border-left: none;
    border-right: 4px solid var(--secondary);
}
.compliance-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.compliance-item-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.compliance-item-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* CR Certificate Document Box */
.cr-cert-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}
.cr-cert-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.cr-cert-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.cr-tag {
    background: var(--bg-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Quote & RFP Form Section */
.quote-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group.full-width {
    grid-column: span 2;
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    color: var(--text-primary);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-feedback-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: none;
}
.feedback-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.feedback-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Contact Page Layout */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}
.contact-card-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2rem;
}
.contact-info-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.contact-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Corporate Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 4.5rem 0 0;
    margin-top: auto;
    border-top: 4px solid var(--secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}
.footer-heading {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}
html[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}
.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links-list a:hover {
    color: white;
    transform: translateX(4px);
}
html[dir="rtl"] .footer-links-list a:hover {
    transform: translateX(-4px);
}
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    cursor: pointer;
}
html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 25px;
}
.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.6;
    animation: waPulse 2s infinite;
    z-index: -1;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 404 & 500 Error Page Styles */
.error-page-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
}
.error-code {
    font-size: 7rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}
.error-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.error-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .top-bar { display: none; }
    .mobile-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5.5rem 2rem 2rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
        gap: 1.5rem;
        z-index: 1001;
    }
    html[dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        transition: left 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-menu.active { right: 0; }
    html[dir="rtl"] .nav-menu.active { left: 0; }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .about-grid, .contact-layout-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .form-grid-2, .vm-cards-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .stats-strip {
        grid-template-columns: 1fr;
    }
    .quote-wrapper {
        padding: 1.75rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}
