/* ==========================================================================
   TAQA ELECTRIC (taqaelectric.com) — Enterprise Design System & Stylesheet
   Color Palette: Carbon Navy (#090D16, #0F172A), Electric Orange (#EA580C, #F97316),
                  Solar Gold (#F59E0B, #FFB300), Technical Slate & Pure Surfaces.
   Bilingual & Bidirectional (Arabic RTL Default / English LTR).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Brand Core Colors */
    --brand-carbon-950: #070a12;
    --brand-carbon-900: #0F172A;
    --brand-carbon-800: #1E293B;
    --brand-carbon-700: #334155;
    --brand-carbon-600: #475569;
    
    /* Electric Orange Accents (Lightning Bolt in Logo) */
    --brand-orange-600: #EA580C;
    --brand-orange-500: #F97316;
    --brand-orange-400: #FB923C;
    --brand-orange-soft: rgba(249, 115, 22, 0.12);
    --brand-orange-glow: rgba(234, 88, 12, 0.35);

    /* Solar Gold Accents (Curved Arc in Logo) */
    --brand-gold-600: #D97706;
    --brand-gold-500: #F59E0B;
    --brand-gold-400: #FBBF24;
    --brand-gold-soft: rgba(245, 158, 11, 0.12);

    /* Electrical Cyan Subtle High-Tech Highlight */
    --tech-cyan-500: #0EA5E9;
    --tech-cyan-soft: rgba(14, 165, 233, 0.10);

    /* Surfaces & Backgrounds */
    --bg-main: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-alt: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-dark-card: #1E293B;
    --bg-dark-surface: #090D16;

    /* Typography & Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --text-light-muted: #94A3B8;

    /* Borders & Dividers */
    --border-light: #E2E8F0;
    --border-dark: #334155;
    --border-focus: #F97316;

    /* Elevation & Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-orange: 0 10px 25px -5px rgba(234, 88, 12, 0.3);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-arabic: 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, sans-serif;
    --font-latin: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    font-family: var(--font-arabic);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Language & Direction Switching Rules */
html[lang="ar"], body[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    display: block;
    width: 100%;
}

html[lang="en"], body[dir="ltr"] {
    font-family: var(--font-latin);
    direction: ltr;
    text-align: left;
    display: block;
    width: 100%;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

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

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

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

@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1480px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

.hero-banner-container {
    text-align: center;
    max-width: 960px;
    margin-inline: auto;
}

@media (min-width: 1400px) {
    .hero-banner-container {
        max-width: 1100px;
    }
}

.cta-inner-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .cta-inner-container {
        max-width: 960px;
    }
}

/* --- Top Announcement & Contact Bar --- */
.top-bar {
    background-color: var(--brand-carbon-950);
    color: var(--text-light-muted);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-item a:hover {
    color: var(--brand-orange-400);
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
    color: var(--brand-orange-500);
}

.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-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
    background-color: var(--brand-orange-600);
    border-color: var(--brand-orange-500);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.lang-switcher-btn svg {
    width: 15px;
    height: 15px;
}

/* --- Sticky Modern Navigation Bar --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.brand-name-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-title .highlight {
    color: var(--brand-orange-500);
}

.brand-subtitle {
    color: var(--brand-gold-400);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    color: #E2E8F0;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-orange-500);
    transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: #FFFFFF;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

/* --- Mobile Navigation Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: min(85vw, 360px);
    height: 100vh;
    background-color: var(--brand-carbon-950);
    border-inline-start: 1px solid var(--brand-carbon-800);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: inset-inline-end var(--transition-normal);
    overflow-y: auto;
}

.mobile-drawer.open {
    inset-inline-end: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--brand-carbon-800);
    margin-bottom: 1.5rem;
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: var(--text-light-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.mobile-nav-links .nav-link {
    font-size: 1.15rem;
    padding: 0.6rem 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Buttons & UI Controls --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange-500) 0%, var(--brand-orange-600) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-orange-400) 0%, var(--brand-orange-500) 100%);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--brand-carbon-800);
    color: #FFFFFF;
    border: 1px solid var(--brand-carbon-700);
}

.btn-secondary:hover {
    background-color: var(--brand-carbon-700);
    border-color: var(--brand-orange-500);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--brand-carbon-900);
    border: 1px solid var(--border-light);
}

.btn-outline-dark:hover {
    background-color: var(--bg-subtle);
    border-color: var(--brand-orange-500);
    color: var(--brand-orange-600);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold-400) 0%, var(--brand-gold-600) 100%);
    color: var(--brand-carbon-950);
    font-weight: 700;
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

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

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.10) 0%, transparent 40%),
                linear-gradient(180deg, var(--brand-carbon-900) 0%, var(--brand-carbon-950) 100%);
    color: #FFFFFF;
    padding: 5rem 0 4rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--brand-orange-400);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    color: #FFFFFF;
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--brand-orange-400) 70%, var(--brand-gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: #CBD5E1;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-orange-400);
    font-family: var(--font-mono);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-top: 0.25rem;
}

/* Hero Visual / Card */
.hero-visual {
    position: relative;
}

.hero-card-main {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-card-main::before {
    content: '';
    position: absolute;
    top: -1px;
    inset-inline-start: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-orange-500), transparent);
}

.hero-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-image-wrap:hover img {
    transform: scale(1.04);
}

.hero-floating-badge {
    position: absolute;
    bottom: -15px;
    inset-inline-end: 20px;
    background-color: var(--brand-carbon-950);
    border: 1px solid var(--brand-orange-500);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.hero-floating-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22C55E;
    box-shadow: 0 0 10px #22C55E;
}

/* --- Engineering Standards Strip --- */
.standards-strip {
    background-color: var(--brand-carbon-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.standards-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.standards-label {
    color: var(--text-light-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standards-badges {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.standard-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.standard-badge:hover {
    border-color: var(--brand-orange-500);
    color: var(--brand-orange-400);
}

/* --- Section Layouts & Typography --- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-subtle);
}

.section-dark {
    background-color: var(--brand-carbon-900);
    color: #FFFFFF;
}

.section-dark h2, .section-dark h3 {
    color: #FFFFFF;
}

.section-dark p {
    color: #94A3B8;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--brand-orange-600);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-dark .section-subtitle {
    color: var(--brand-orange-400);
}

.section-title {
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- 4-Pillar Core Services Grid --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 4px;
    background: transparent;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(234, 88, 12, 0.3);
}

.pillar-card:hover::before {
    background: linear-gradient(90deg, var(--brand-orange-500), var(--brand-gold-500));
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
    transform: scale(1.08);
    background: var(--brand-orange-500);
    color: #FFFFFF;
}

.pillar-icon-box svg {
    width: 30px;
    height: 30px;
}

.pillar-title {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pillar-features-list {
    list-style: none;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pillar-feature-item {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pillar-feature-item svg {
    width: 16px;
    height: 16px;
    color: var(--brand-orange-500);
    flex-shrink: 0;
    margin-top: 3px;
}

.pillar-card-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-orange-600);
}

.pillar-link:hover {
    color: var(--brand-orange-500);
    gap: 0.65rem;
}

/* --- Power System Studies & Technical Software Showcase --- */
.software-showcase {
    background-color: var(--brand-carbon-950);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3.5rem;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.software-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.software-item:hover {
    background: rgba(249, 115, 22, 0.08);
    border-color: var(--brand-orange-500);
    transform: translateY(-3px);
}

.software-name {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.software-role {
    font-size: 0.8rem;
    color: var(--text-light-muted);
}

/* --- Featured Projects & Case Studies --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-badge {
    position: absolute;
    top: 15px;
    inset-inline-start: 15px;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: var(--brand-gold-400);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-body {
    padding: 1.75rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background-color: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

/* --- Industries Served Section --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.industry-card:hover {
    border-color: var(--brand-orange-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.industry-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-600);
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.industry-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Why Choose Us (Value Proposition) --- */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.feature-point {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feature-point-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-600);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-point-icon svg {
    width: 24px;
    height: 24px;
}

.feature-point-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.feature-point-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* --- Interactive Consultation & RFQ Widget --- */
.consultation-cta-card {
    background: linear-gradient(135deg, var(--brand-carbon-900) 0%, var(--brand-carbon-950) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.consultation-cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.consultation-form-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: start;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #E2E8F0;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand-orange-500);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.form-select option {
    background-color: var(--brand-carbon-900);
    color: #FFFFFF;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

/* Light Theme Forms */
.form-light .form-label {
    color: var(--text-primary);
}

.form-light .form-control, .form-light .form-select {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.form-light .form-control:focus, .form-light .form-select:focus {
    border-color: var(--brand-orange-500);
    background-color: #FFFFFF;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.active {
    border-color: var(--brand-orange-500);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    text-align: start;
    color: var(--text-primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-orange-500);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--brand-carbon-950);
    color: var(--text-light-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #94A3B8;
}

.footer-col-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 2px;
    background-color: var(--brand-orange-500);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    color: #94A3B8;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

body[dir="rtl"] .footer-link:hover {
    transform: translateX(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #94A3B8;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--brand-orange-500);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-domain {
    color: var(--brand-orange-400);
    font-weight: 600;
}

/* --- Floating WhatsApp Quick Action Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    inset-inline-end: 25px;
    background-color: #25D366;
    color: #FFFFFF;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-fast);
}

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

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- Modal Dialog (Consultation & RFQ) --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-dialog {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 2rem;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .consultation-form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-menu, .nav-cta-group .btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .hero-section {
        padding: 3.5rem 0 2.5rem;
    }
    
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .consultation-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Qualifications & Customers Logo Grid --- */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.qualification-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.qualification-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-orange-500);
}

.qual-logo-wrap {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
    border: 2px solid var(--border-light);
}

.qual-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qual-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-carbon-900);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.qual-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Always LTR Phone Number Direction --- */
a[href^="tel:"], .phone-number-ltr {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
}


