/* ============================================================
   MWARD AL TORUQ — Brand System
   First-class infrastructure contractor — Madinah, KSA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* === BRAND COLORS (from design system) === */
    --c-navy: #1E2A38;          /* corporate dark */
    --c-navy-light: #2A3A4D;
    --c-navy-deep: #131C26;
    --c-orange: #E28743;         /* construction orange */
    --c-orange-deep: #C66E26;
    --c-green: #2D5A27;          /* landscape green */
    --c-green-soft: #6B8E5A;
    --c-gray: #8D99AE;           /* concrete */
    --c-cream: #FAF7F1;          /* paper background */
    --c-cream-deep: #F0E9D8;
    --c-bone: #E8E2D1;
    --c-white: #FFFFFF;
    --c-ink: #0E1620;

    /* === TYPE === */
    --f-ar-display: 'Cairo', 'Tajawal', sans-serif;
    --f-ar-body: 'Tajawal', 'Cairo', sans-serif;
    --f-en-display: 'Inter', system-ui, sans-serif;
    --f-en-body: 'Inter', system-ui, sans-serif;

    /* === GEOMETRY === */
    --container: 1320px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6.5rem;
    --space-8: 9rem;

    /* === MOTION === */
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--f-ar-body);
    font-weight: 400;
    color: var(--c-ink);
    background: var(--c-cream);
    line-height: 1.65;
    overflow-x: hidden;
}

html[lang="en"] body {
    font-family: var(--f-en-body);
    direction: ltr;
}

html[lang="ar"] body {
    direction: rtl;
}

/* Lang content visibility */
.ar { display: block; }
.en { display: none; }
html[lang="en"] .ar { display: none; }
html[lang="en"] .en { display: block; }

span.ar, span.en, a.ar, a.en, strong.ar, strong.en { display: inline; }
html[lang="ar"] span.en, html[lang="ar"] a.en, html[lang="ar"] strong.en { display: none; }
html[lang="en"] span.ar, html[lang="en"] a.ar, html[lang="en"] strong.ar { display: none; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section {
    padding: clamp(4rem, 9vw, 8rem) 0;
    position: relative;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--c-navy);
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
    font-family: var(--f-ar-display);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
}

html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 {
    font-family: var(--f-en-display);
    font-weight: 500;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-orange);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

html[lang="ar"] .eyebrow {
    font-family: var(--f-ar-body);
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--c-orange);
}

.h-display {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.1;
}

.h-section {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.h-card {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-bottom: 0.8rem;
}

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
    color: rgba(14, 22, 32, 0.78);
    max-width: 62ch;
    line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 0;
    background: rgba(250, 247, 241, 0.0);
    backdrop-filter: blur(0);
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(250, 247, 241, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(30, 42, 56, 0.06);
    padding: 0.7rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--c-navy);
    transition: opacity 0.3s;
}

.nav-logo svg { height: 42px; width: auto; }
.nav.scrolled .nav-logo svg { height: 38px; }

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-text .ar-name {
    font-family: var(--f-ar-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--c-navy);
    letter-spacing: 0;
}

.nav-logo-text .en-name {
    font-family: var(--f-en-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--c-orange);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-navy);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

html[lang="ar"] .nav-link {
    font-family: var(--f-ar-body);
    font-size: 1.02rem;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-orange);
    transition: width 0.3s var(--ease-out);
}

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

.nav-link:hover { color: var(--c-orange); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.lang-toggle {
    border: 1px solid var(--c-navy);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--f-en-body);
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--c-navy);
    color: var(--c-cream);
}

.nav-cta {
    background: var(--c-navy);
    color: var(--c-cream);
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

html[lang="ar"] .nav-cta { font-family: var(--f-ar-body); font-size: 0.95rem; }

.nav-cta:hover {
    background: var(--c-orange);
    transform: translateY(-1px);
}

.menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--c-navy);
    transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    height: 100vh;
    min-height: 680px;
    position: relative;
    overflow: hidden;
    background: var(--c-navy-deep);
    color: var(--c-cream);
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(4rem, 8vh, 6rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-road.jpg');
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1.0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(19, 28, 38, 0.45) 0%, rgba(19, 28, 38, 0.35) 40%, rgba(19, 28, 38, 0.92) 100%),
        linear-gradient(90deg, rgba(19, 28, 38, 0.4) 0%, transparent 50%);
}

html[lang="ar"] .hero-overlay {
    background:
        linear-gradient(180deg, rgba(19, 28, 38, 0.45) 0%, rgba(19, 28, 38, 0.35) 40%, rgba(19, 28, 38, 0.92) 100%),
        linear-gradient(270deg, rgba(19, 28, 38, 0.4) 0%, transparent 50%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--f-en-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-orange);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-meta-line {
    width: 60px;
    height: 1px;
    background: var(--c-orange);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 6.2rem);
    line-height: 1.0;
    color: var(--c-cream);
    margin-bottom: 1.5rem;
    max-width: 18ch;
}

html[lang="ar"] .hero-title {
    line-height: 1.15;
    max-width: 22ch;
}

.hero-title .accent {
    color: var(--c-orange);
    font-style: normal;
}

html[lang="ar"] .hero-title .accent {
    font-style: normal;
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: rgba(250, 247, 241, 0.82);
    max-width: 56ch;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.35s var(--ease);
    border: 1px solid transparent;
}

html[lang="ar"] .btn { font-family: var(--f-ar-body); font-weight: 700; }

.btn-primary {
    background: var(--c-orange);
    color: var(--c-white);
}

.btn-primary:hover {
    background: var(--c-orange-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(226, 135, 67, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--c-cream);
    border-color: rgba(250, 247, 241, 0.3);
}

.btn-ghost:hover {
    background: rgba(250, 247, 241, 0.08);
    border-color: var(--c-cream);
}

.btn-dark {
    background: var(--c-navy);
    color: var(--c-cream);
}

.btn-dark:hover { background: var(--c-orange); transform: translateY(-2px); }

.btn-arrow {
    transition: transform 0.3s;
}

html[lang="ar"] .btn-arrow { transform: scaleX(-1); }

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

html[lang="ar"] .btn:hover .btn-arrow {
    transform: scaleX(-1) translateX(4px);
}

/* Hero bottom strip */
.hero-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-navy-deep);
    border-top: 1px solid rgba(226, 135, 67, 0.2);
    padding: 1.2rem 0;
    z-index: 3;
}

.hero-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--c-cream);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

html[lang="ar"] .hero-strip-inner {
    font-family: var(--f-ar-body);
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    text-transform: none;
}

.hero-strip span { display: flex; align-items: center; gap: 0.7rem; opacity: 0.8; }
.hero-strip strong { color: var(--c-orange); font-weight: 600; }

/* ============================================================
   SECTION: INTRO / WHO WE ARE
   ============================================================ */
.intro {
    background: var(--c-cream);
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(141, 153, 174, 0.05));
    z-index: 0;
    pointer-events: none;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.intro-image {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-image::after {
    content: '01';
    position: absolute;
    top: -2rem;
    inset-inline-start: -1.5rem;
    font-family: var(--f-en-display);
    font-size: 9rem;
    font-style: normal;
    color: var(--c-orange);
    font-weight: 400;
    line-height: 1;
    z-index: 2;
}

.intro-content h2 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    margin-bottom: 1.5rem;
}

.intro-content p {
    margin-bottom: 1.2rem;
    color: rgba(14, 22, 32, 0.78);
    font-size: 1.05rem;
    line-height: 1.8;
}

html[lang="ar"] .intro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(30, 42, 56, 0.12);
}

.stat .num {
    font-family: var(--f-en-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--c-navy);
    font-weight: 500;
    line-height: 1;
    display: block;
    margin-bottom: 0.4rem;
}

.stat .num sup {
    font-size: 0.4em;
    color: var(--c-orange);
    font-style: normal;
    vertical-align: super;
    font-weight: 400;
}

.stat .label {
    font-size: 0.82rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

html[lang="ar"] .stat .label {
    font-family: var(--f-ar-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    background: var(--c-navy);
    color: var(--c-cream);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-orange), transparent);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head h2 {
    color: inherit;
}

.services .section-head h2 { color: var(--c-cream); }

.section-head p {
    color: rgba(250, 247, 241, 0.75);
    font-size: 1.05rem;
    max-width: 50ch;
}

html[lang="ar"] .section-head p { font-size: 1.1rem; line-height: 1.9; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid rgba(250, 247, 241, 0.1);
    border-inline-start: 1px solid rgba(250, 247, 241, 0.1);
}

.service {
    padding: 2.5rem 2rem;
    border-inline-end: 1px solid rgba(250, 247, 241, 0.1);
    border-bottom: 1px solid rgba(250, 247, 241, 0.1);
    position: relative;
    transition: background 0.4s;
}

.service:hover { background: rgba(226, 135, 67, 0.06); }

.service-num {
    font-family: var(--f-en-display);
    font-style: normal;
    color: var(--c-orange);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--c-orange);
}

.service h3 {
    color: var(--c-cream);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service p {
    color: rgba(250, 247, 241, 0.7);
    font-size: 0.96rem;
    line-height: 1.7;
}

html[lang="ar"] .service p { font-size: 1rem; line-height: 1.8; }

/* ============================================================
   FEATURED PROJECTS
   ============================================================ */
.projects {
    background: var(--c-cream);
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 8vw, 6rem);
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.project-card:nth-child(even) {
    direction: rtl;
}

html[lang="ar"] .project-card:nth-child(even) { direction: ltr; }

.project-card > * { direction: ltr; }
html[lang="ar"] .project-card > * { direction: rtl; }

.project-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}

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

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

.project-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(19, 28, 38, 0.3));
    z-index: 1;
    pointer-events: none;
}

.project-tag {
    position: absolute;
    top: 1.2rem;
    inset-inline-start: 1.2rem;
    background: rgba(250, 247, 241, 0.94);
    color: var(--c-navy);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(8px);
}

html[lang="ar"] .project-tag {
    font-family: var(--f-ar-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
}

.project-content .num-label {
    font-family: var(--f-en-display);
    font-style: normal;
    color: var(--c-orange);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.project-content h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    margin-bottom: 1rem;
}

.project-content > p {
    color: rgba(14, 22, 32, 0.72);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

html[lang="ar"] .project-content > p { font-size: 1.05rem; line-height: 1.9; }

.project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(30, 42, 56, 0.12);
}

.project-meta dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gray);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

html[lang="ar"] .project-meta dt {
    font-family: var(--f-ar-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
}

.project-meta dd {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--c-navy);
}

html[lang="ar"] .project-meta dd { font-size: 1rem; }

/* ============================================================
   CTA STRIP / CLASSIFICATION
   ============================================================ */
.classification {
    background: var(--c-orange);
    color: var(--c-navy-deep);
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

.classification::before, .classification::after {
    content: '';
    position: absolute;
    background: var(--c-navy-deep);
    opacity: 0.06;
}

.classification::before {
    width: 280px; height: 280px;
    border-radius: 50%;
    top: -140px;
    inset-inline-end: -100px;
}

.classification::after {
    width: 380px; height: 380px;
    border-radius: 50%;
    bottom: -200px;
    inset-inline-start: -150px;
}

.class-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.class-badge {
    width: 90px;
    height: 90px;
    background: var(--c-navy-deep);
    color: var(--c-orange);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--f-en-display);
}

.class-badge .roman { font-size: 1.8rem; font-style: normal; font-weight: 500; }
.class-badge .word { font-size: 0.65rem; letter-spacing: 0.2em; margin-top: 4px; font-family: var(--f-en-body); font-weight: 600; }

html[lang="ar"] .class-badge .word { font-family: var(--f-ar-body); font-size: 0.75rem; letter-spacing: 0; }

.class-content h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: var(--c-navy-deep);
    margin-bottom: 0.4rem;
}

.class-content p {
    color: rgba(19, 28, 38, 0.82);
    font-size: 1rem;
    max-width: 60ch;
}

html[lang="ar"] .class-content p { font-size: 1.05rem; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { background: var(--c-cream); }

.partners-head {
    text-align: center;
    margin-bottom: 4rem;
}

.partners-head .eyebrow { justify-content: center; }
.partners-head .eyebrow::before { display: none; }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border-top: 1px solid rgba(30, 42, 56, 0.1);
    border-inline-start: 1px solid rgba(30, 42, 56, 0.1);
}

.partner {
    aspect-ratio: 5/3;
    border-inline-end: 1px solid rgba(30, 42, 56, 0.1);
    border-bottom: 1px solid rgba(30, 42, 56, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: background 0.3s;
    text-align: center;
}

.partner:hover { background: rgba(226, 135, 67, 0.04); }

.partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-navy);
    font-family: var(--f-en-body);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

html[lang="ar"] .partner-name {
    font-family: var(--f-ar-body);
    font-size: 0.95rem;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.cta {
    background: var(--c-navy-deep);
    color: var(--c-cream);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/asphalt-paver.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: grayscale(0.4);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--c-cream);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.2rem;
}

.cta p {
    color: rgba(250, 247, 241, 0.78);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta .btn-arrow { color: var(--c-cream); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--c-ink);
    color: rgba(250, 247, 241, 0.6);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(226, 135, 67, 0.15);
}

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

.footer-brand .nav-logo-text .ar-name,
.footer-brand .nav-logo-text .en-name { color: var(--c-cream); }

.footer-brand .nav-logo-text .en-name { color: var(--c-orange); }

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 36ch;
}

.footer h4 {
    color: var(--c-cream);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.4rem;
    font-weight: 600;
    font-family: var(--f-en-body);
}

html[lang="ar"] .footer h4 {
    font-family: var(--f-ar-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a, .footer .contact-line {
    font-size: 0.92rem;
    transition: color 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.footer ul a:hover { color: var(--c-orange); }

.footer .contact-line svg { flex-shrink: 0; margin-top: 3px; color: var(--c-orange); }

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

.footer-bottom .legal-links {
    display: flex;
    gap: 1.5rem;
}

/* ============================================================
   INTERNAL PAGE HERO (compact)
   ============================================================ */
.page-hero {
    background: var(--c-navy);
    color: var(--c-cream);
    padding: 11rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-hero.h-projects::before { background-image: url('../images/airport-construction.jpg'); }
.page-hero.h-about::before { background-image: url('../images/earthworks.jpg'); }
.page-hero.h-services::before { background-image: url('../images/asphalt-paver.jpg'); }
.page-hero.h-contact::before { background-image: url('../images/abuhydria-road.jpg'); }

.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--c-cream); font-size: clamp(2.4rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.page-hero p { color: rgba(250, 247, 241, 0.75); max-width: 64ch; font-size: 1.1rem; }

.breadcrumb {
    display: flex;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: rgba(250, 247, 241, 0.55);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb .sep { color: var(--c-orange); }

/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(30, 42, 56, 0.1);
    border: 1px solid rgba(30, 42, 56, 0.1);
}

.pillar {
    background: var(--c-cream);
    padding: 3rem 2rem;
    transition: background 0.3s;
}

.pillar:hover { background: var(--c-white); }

.pillar-num {
    font-family: var(--f-en-display);
    font-style: normal;
    color: var(--c-orange);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.pillar h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.pillar p { color: rgba(14, 22, 32, 0.72); line-height: 1.8; }

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.story-img-stack {
    position: relative;
    aspect-ratio: 3/4;
}

.story-img-stack img {
    position: absolute;
    border-radius: 4px;
    object-fit: cover;
}

.story-img-stack .top {
    top: 0;
    inset-inline-start: 0;
    width: 75%;
    height: 70%;
}

.story-img-stack .bottom {
    bottom: 0;
    inset-inline-end: 0;
    width: 65%;
    height: 55%;
    box-shadow: -20px -20px 0 var(--c-orange);
}

html[lang="ar"] .story-img-stack .bottom {
    box-shadow: 20px -20px 0 var(--c-orange);
}

.story-content p { margin-bottom: 1.3rem; color: rgba(14, 22, 32, 0.78); }
.story-content p:first-of-type::first-letter {
    font-family: var(--f-en-display);
    font-size: 4rem;
    float: left;
    line-height: 0.85;
    margin-inline-end: 0.5rem;
    margin-top: 0.3rem;
    color: var(--c-orange);
    font-weight: 500;
}

html[lang="ar"] .story-content p:first-of-type::first-letter {
    font-family: var(--f-ar-display);
    font-size: 3rem;
    float: right;
    margin-inline-start: 0.5rem;
}

/* ============================================================
   PROJECTS PAGE GRID
   ============================================================ */
.project-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-grid-card {
    background: var(--c-white);
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
    cursor: pointer;
}

.project-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(30, 42, 56, 0.18);
}

.project-grid-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-grid-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.project-grid-card:hover .project-grid-card-img img { transform: scale(1.05); }

.project-grid-card-body { padding: 2rem; }
.project-grid-card-body h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.project-grid-card-body .client { font-size: 0.85rem; color: var(--c-orange); font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.04em; }
.project-grid-card-body p { color: rgba(14, 22, 32, 0.7); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.service-detail:nth-child(even) { direction: rtl; }
html[lang="ar"] .service-detail:nth-child(even) { direction: ltr; }
.service-detail > * { direction: ltr; }
html[lang="ar"] .service-detail > * { direction: rtl; }

.service-detail-img { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.service-detail-content .num-big {
    font-family: var(--f-en-display);
    font-style: normal;
    color: var(--c-orange);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 400;
    display: block;
}

.service-detail-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.2rem; }
.service-detail-content > p { color: rgba(14, 22, 32, 0.75); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.8; }

.service-list { list-style: none; }
.service-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(30, 42, 56, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--c-navy);
    font-weight: 500;
}

html[lang="ar"] .service-list li { font-size: 1.02rem; }

.service-list li::before {
    content: '→';
    color: var(--c-orange);
    font-weight: 700;
}

html[lang="ar"] .service-list li::before { content: '←'; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 5vw, 5rem);
}

.contact-info-card {
    background: var(--c-navy);
    color: var(--c-cream);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: var(--c-orange);
    opacity: 0.08;
    border-radius: 50%;
    bottom: -80px;
    inset-inline-end: -60px;
}

.contact-info-card h2 { color: var(--c-cream); margin-bottom: 0.7rem; font-size: 1.8rem; }
.contact-info-card > p { color: rgba(250, 247, 241, 0.7); margin-bottom: 2.5rem; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(250, 247, 241, 0.1);
}

.contact-item:last-of-type { border: none; padding-bottom: 0; }

.contact-item-icon {
    width: 42px;
    height: 42px;
    background: var(--c-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-navy);
}

.contact-item-text small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(250, 247, 241, 0.55);
    margin-bottom: 0.3rem;
}

html[lang="ar"] .contact-item-text small {
    font-family: var(--f-ar-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
}

.contact-item-text strong, .contact-item-text a {
    color: var(--c-cream);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

.contact-item-text a:hover { color: var(--c-orange); }

/* Contact form */
.contact-form { padding: 1rem 0; }
.contact-form h2 { margin-bottom: 0.5rem; }
.contact-form > p { color: rgba(14, 22, 32, 0.7); margin-bottom: 2rem; }

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

.form-field { display: flex; flex-direction: column; }

.form-field label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

html[lang="ar"] .form-field label {
    font-family: var(--f-ar-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    border: 1px solid rgba(30, 42, 56, 0.18);
    background: var(--c-white);
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 0.98rem;
    border-radius: 4px;
    color: var(--c-navy);
    transition: border-color 0.3s, box-shadow 0.3s;
}

html[lang="ar"] .form-field input,
html[lang="ar"] .form-field textarea,
html[lang="ar"] .form-field select {
    font-family: var(--f-ar-body);
    text-align: right;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--c-orange);
    box-shadow: 0 0 0 4px rgba(226, 135, 67, 0.1);
}

.form-field.full { grid-column: 1 / -1; }
.form-field textarea { resize: vertical; min-height: 140px; }

.form-submit {
    background: var(--c-navy);
    color: var(--c-cream);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

html[lang="ar"] .form-submit { font-family: var(--f-ar-body); font-weight: 700; }
.form-submit:hover { background: var(--c-orange); transform: translateY(-2px); }

/* Map */
.map-section {
    background: var(--c-cream);
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    filter: grayscale(0.5) contrast(1.05);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        inset-inline-end: 0;
        background: var(--c-cream);
        flex-direction: column;
        padding: 1.5rem 2rem;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        gap: 1.2rem;
    }

    .intro-grid,
    .story-grid,
    .section-head,
    .project-card,
    .service-detail,
    .contact-grid,
    .class-inner { grid-template-columns: 1fr; gap: 2.5rem; }

    .project-card:nth-child(even),
    .service-detail:nth-child(even) { direction: inherit; }

    .services-grid { grid-template-columns: 1fr; }
    .project-grid-full { grid-template-columns: 1fr; }
    .about-pillars { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .intro-image::after { font-size: 5rem; top: -1.5rem; }
    .class-inner { text-align: center; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .hero-strip-inner { gap: 0.8rem; font-size: 0.78rem; }
    .nav-cta { display: none; }
    .hero { min-height: 600px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   SAUDI CONTRACTING REDESIGN — Hero Slider, Icon Cards, etc.
   ============================================================ */

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    max-height: 820px;
    overflow: hidden;
    background: var(--c-navy);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-slide.slide-1::before { background-image: url('../images/hero-road.jpg'); }
.hero-slide.slide-2::before { background-image: url('../images/asphalt-paver.jpg'); }
.hero-slide.slide-3::before { background-image: url('../images/airport-terminal.jpg'); }

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(14, 22, 32, 0.85) 0%, rgba(14, 22, 32, 0.55) 60%, rgba(14, 22, 32, 0.35) 100%);
    z-index: 2;
}

html[dir="rtl"] .hero-slide::after {
    background: linear-gradient(-115deg, rgba(14, 22, 32, 0.85) 0%, rgba(14, 22, 32, 0.55) 60%, rgba(14, 22, 32, 0.35) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    max-width: 1280px;
    margin: 0 auto;
}

.hero-slide .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(226, 135, 67, 0.18);
    border: 1px solid var(--c-orange);
    color: var(--c-orange);
    padding: 0.55rem 1.3rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    width: max-content;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s 0.3s, transform 1s 0.3s;
}

.hero-slide h1 {
    color: var(--c-cream);
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 18ch;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s 0.5s, transform 1s 0.5s;
}

.hero-slide h1 .accent {
    color: var(--c-orange);
}

.hero-slide p {
    color: rgba(250, 247, 241, 0.85);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 60ch;
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s 0.7s, transform 1s 0.7s;
}

.hero-slide .hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s 0.9s, transform 1s 0.9s;
}

.hero-slide.active .hero-tag,
.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.7rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(250, 247, 241, 0.35);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-dot.active {
    background: var(--c-orange);
    transform: scale(1.3);
}

.slider-dot:hover { background: rgba(226, 135, 67, 0.6); }

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(250, 247, 241, 0.12);
    border: 1px solid rgba(250, 247, 241, 0.25);
    color: var(--c-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: var(--c-orange);
    border-color: var(--c-orange);
}

.slider-arrow.prev { inset-inline-start: 2rem; }
.slider-arrow.next { inset-inline-end: 2rem; }
.slider-arrow svg { width: 24px; height: 24px; }

/* Hero stats strip at bottom of slider */
.hero-bottom-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    background: rgba(14, 22, 32, 0.92);
    backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(226, 135, 67, 0.3);
}

.hero-bottom-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.hero-bottom-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--c-cream);
}

.hero-bottom-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(226, 135, 67, 0.18);
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-bottom-stat-text strong {
    display: block;
    font-size: 1.4rem;
    color: var(--c-orange);
    font-weight: 700;
    line-height: 1;
}

.hero-bottom-stat-text small {
    display: block;
    font-size: 0.78rem;
    color: rgba(250, 247, 241, 0.65);
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

html[lang="ar"] .hero-bottom-stat-text small {
    font-size: 0.92rem;
    letter-spacing: 0;
}

/* === ICON CARDS (Services style) === */
.icon-cards-section {
    background: var(--c-cream);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.icon-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 3.5rem;
}

.icon-card {
    background: var(--c-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid rgba(14, 22, 32, 0.06);
    position: relative;
    overflow: hidden;
}

.icon-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--c-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s;
}

.icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 40px rgba(14, 22, 32, 0.1);
    border-color: rgba(226, 135, 67, 0.3);
}

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

.icon-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(226, 135, 67, 0.15) 0%, rgba(226, 135, 67, 0.05) 100%);
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s;
}

.icon-card:hover .icon-card-icon {
    background: var(--c-orange);
    color: var(--c-cream);
    transform: rotate(-5deg) scale(1.05);
}

.icon-card-icon svg { width: 38px; height: 38px; }

.icon-card h3 {
    font-size: 1.3rem;
    color: var(--c-navy);
    margin-bottom: 0.8rem;
}

.icon-card p {
    color: rgba(14, 22, 32, 0.68);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

html[lang="ar"] .icon-card p {
    font-size: 1rem;
    line-height: 1.9;
}

.icon-card-more {
    color: var(--c-orange);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
}

.icon-card-more:hover { gap: 0.8rem; }

/* === WHY US (Values section) === */
.why-us {
    background: var(--c-white);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.why-us-head {
    text-align: center;
    margin-bottom: 4rem;
}

.why-us-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--c-navy);
    margin-bottom: 1rem;
}

.why-us-head p {
    max-width: 56ch;
    margin: 0 auto;
    color: rgba(14, 22, 32, 0.65);
    font-size: 1.05rem;
}

html[lang="ar"] .why-us-head p { font-size: 1.1rem; line-height: 1.9; }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.why-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--c-navy);
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.4s;
}

.why-card-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(226, 135, 67, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s;
}

.why-card:hover .why-card-icon::after {
    opacity: 1;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.why-card-icon svg { width: 42px; height: 42px; }

.why-card h4 {
    font-size: 1.15rem;
    color: var(--c-navy);
    margin-bottom: 0.6rem;
}

.why-card p {
    color: rgba(14, 22, 32, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

html[lang="ar"] .why-card p { font-size: 0.95rem; line-height: 1.85; }

/* === COUNTERS STRIP === */
.counters-strip {
    background: linear-gradient(115deg, var(--c-navy) 0%, #2a3a4d 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.counters-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/earthworks.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.counter-cell {
    text-align: center;
    color: var(--c-cream);
    padding: 1rem;
    border-inline-end: 1px solid rgba(250, 247, 241, 0.12);
}

.counter-cell:last-child { border-inline-end: none; }

.counter-cell-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(226, 135, 67, 0.18);
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.counter-cell-icon svg { width: 30px; height: 30px; }

.counter-num {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--c-cream);
    line-height: 1;
    margin-bottom: 0.6rem;
    display: block;
}

.counter-num .plus { color: var(--c-orange); font-weight: 700; }

.counter-label {
    font-size: 0.95rem;
    color: rgba(250, 247, 241, 0.75);
    letter-spacing: 0.02em;
}

html[lang="ar"] .counter-label { font-size: 1.05rem; }

/* === PARTNERS LOGO STRIP === */
.partners-logo-strip {
    background: var(--c-white);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(14, 22, 32, 0.08);
}

.partners-logo-title {
    text-align: center;
    color: rgba(14, 22, 32, 0.55);
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

html[lang="ar"] .partners-logo-title {
    letter-spacing: 0;
    text-transform: none;
    font-size: 1rem;
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    text-align: center;
    padding: 1rem;
    color: rgba(14, 22, 32, 0.5);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid rgba(14, 22, 32, 0.06);
    border-radius: 6px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    color: var(--c-navy);
    border-color: var(--c-orange);
}

/* === SECTION TITLE (Reusable, traditional Arabic site style) === */
.title-block {
    text-align: center;
    margin-bottom: 3.5rem;
}

.title-block .eyebrow {
    margin: 0 auto 1rem;
    display: inline-flex;
}

.title-block h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--c-navy);
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

.title-block .subtitle {
    color: rgba(14, 22, 32, 0.6);
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.05rem;
}

html[lang="ar"] .title-block .subtitle { font-size: 1.1rem; line-height: 1.9; }

.title-block.dark h2 { color: var(--c-cream); }
.title-block.dark .subtitle { color: rgba(250, 247, 241, 0.7); }

/* === PROJECT GALLERY (Saudi contracting style) === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 22, 32, 0.92) 0%, rgba(14, 22, 32, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    color: var(--c-cream);
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay .client {
    font-size: 0.75rem;
    color: var(--c-orange);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

html[lang="ar"] .gallery-item-overlay .client {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
}

.gallery-item-overlay h4 {
    font-size: 1.15rem;
    color: var(--c-cream);
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
    .hero-bottom-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .icon-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .counter-cell { border-inline-end: none; }
    .partners-logo-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-arrow { width: 44px; height: 44px; }
    .slider-arrow.prev { inset-inline-start: 1rem; }
    .slider-arrow.next { inset-inline-end: 1rem; }
    .slider-dots { bottom: 200px; }
}

@media (max-width: 600px) {
    .hero-slider { min-height: 580px; }
    .hero-bottom-strip-inner { grid-template-columns: 1fr 1fr; font-size: 0.85rem; }
    .hero-bottom-stat-text strong { font-size: 1.1rem; }
    .icon-cards-grid,
    .gallery-grid,
    .partners-logo-grid { grid-template-columns: 1fr 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .counters-grid { grid-template-columns: 1fr 1fr; }
    .slider-arrow { display: none; }
    .slider-dots { bottom: 230px; }
    .hero-slide .hero-tag { font-size: 0.75rem; padding: 0.4rem 1rem; }
}

/* ============================================================
   TRANSPARENT NAV ON TOP + SCROLL STATE
   ============================================================ */
.nav {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* When user has scrolled past the hero — nav becomes solid */
.nav.scrolled {
    background: rgba(14, 22, 32, 0.92) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 135, 67, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
/* On non-hero pages (about/services/projects/contact), nav has visible bg from the start */
body.solid-nav .nav {
    background: rgba(14, 22, 32, 0.92) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 135, 67, 0.15);
}

/* Make nav text light when transparent over hero */
.nav .nav-link,
.nav .ar-name,
.nav .en-name,
.nav .lang-toggle,
.nav .menu-btn span {
    color: var(--c-cream);
    border-color: rgba(250, 247, 241, 0.4);
}
.nav .menu-btn span { background: var(--c-cream); }
.nav .lang-toggle { border-color: rgba(250, 247, 241, 0.4); }
.nav .lang-toggle:hover { background: rgba(250, 247, 241, 0.12); }
.nav .nav-link:hover { color: var(--c-orange); }
.nav .nav-link.active { color: var(--c-orange); }
.nav .nav-link.active::after { background: var(--c-orange); }

/* ============================================================
   DARK MODE
   ============================================================ */
:root {
    --c-bg: var(--c-cream);
    --c-bg-alt: var(--c-white);
    --c-text: var(--c-navy);
    --c-text-soft: rgba(14, 22, 32, 0.7);
    --c-border: rgba(14, 22, 32, 0.1);
    --c-card: var(--c-white);
}
html[data-theme="dark"] {
    --c-bg: #0A1118;
    --c-bg-alt: #131D29;
    --c-text: #EAE5DA;
    --c-text-soft: rgba(234, 229, 218, 0.65);
    --c-border: rgba(234, 229, 218, 0.1);
    --c-card: #1A2532;
    --c-cream: #0A1118;
    --c-white: #131D29;
    --c-navy: #EAE5DA;
}
/* Apply dark backgrounds */
html[data-theme="dark"] body { background: #0A1118; color: #EAE5DA; }
html[data-theme="dark"] .section.intro,
html[data-theme="dark"] .icon-cards-section,
html[data-theme="dark"] .why-us,
html[data-theme="dark"] .partners-logo-strip {
    background: #131D29;
}
html[data-theme="dark"] .section[style*="background: var(--c-cream)"],
html[data-theme="dark"] section[style*="background: var(--c-cream)"] {
    background: #0A1118 !important;
}
html[data-theme="dark"] .section[style*="background: var(--c-white)"],
html[data-theme="dark"] section[style*="background: var(--c-white)"] {
    background: #131D29 !important;
}
html[data-theme="dark"] .icon-card,
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .form-field select {
    background: #1A2532;
    color: #EAE5DA;
    border-color: rgba(234, 229, 218, 0.12);
}
html[data-theme="dark"] .icon-card h3,
html[data-theme="dark"] .why-card h4,
html[data-theme="dark"] .title-block h2,
html[data-theme="dark"] .intro-content h2,
html[data-theme="dark"] .why-us-head h2,
html[data-theme="dark"] .partners-logo-title {
    color: #EAE5DA;
}
html[data-theme="dark"] .icon-card p,
html[data-theme="dark"] .why-card p,
html[data-theme="dark"] .title-block .subtitle,
html[data-theme="dark"] .intro-content p,
html[data-theme="dark"] .why-us-head p {
    color: rgba(234, 229, 218, 0.7);
}
html[data-theme="dark"] .partner-logo {
    background: #1A2532;
    color: rgba(234, 229, 218, 0.55);
    border-color: rgba(234, 229, 218, 0.08);
}
html[data-theme="dark"] .partner-logo:hover {
    color: #EAE5DA;
    border-color: var(--c-orange);
}
html[data-theme="dark"] .why-card-icon { background: #0A1118; }
html[data-theme="dark"] .map-section iframe { filter: invert(0.92) hue-rotate(180deg) contrast(0.95); }
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .page-hero p { color: #EAE5DA; }
html[data-theme="dark"] .project-grid-card { background: #1A2532; }
html[data-theme="dark"] .project-grid-card-body h3 { color: #EAE5DA; }
html[data-theme="dark"] .project-grid-card-body p { color: rgba(234, 229, 218, 0.7); }
html[data-theme="dark"] .service-detail-body h3 { color: #EAE5DA; }
html[data-theme="dark"] .service-detail-body p { color: rgba(234, 229, 218, 0.7); }
html[data-theme="dark"] .service-detail-body ul li { color: rgba(234, 229, 218, 0.7); }

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(250, 247, 241, 0.4);
    color: var(--c-cream);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(250, 247, 241, 0.12);
    transform: rotate(20deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ============================================================
   PORTAL / SERVICES HUB
   ============================================================ */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 3rem;
}

.portal-card {
    background: var(--c-white);
    border: 1px solid rgba(14, 22, 32, 0.08);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[data-theme="dark"] .portal-card {
    background: #1A2532;
    border-color: rgba(234, 229, 218, 0.08);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-orange), #f4a268);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(14, 22, 32, 0.12);
    border-color: var(--c-orange);
}

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

.portal-card-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(226, 135, 67, 0.15), rgba(226, 135, 67, 0.05));
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: all 0.4s;
}

.portal-card:hover .portal-card-icon {
    background: var(--c-orange);
    color: var(--c-cream);
    transform: rotate(-6deg) scale(1.05);
    border-radius: 50%;
}

.portal-card-icon svg { width: 44px; height: 44px; }

.portal-card h3 {
    font-size: 1.35rem;
    color: var(--c-navy);
    margin-bottom: 0.8rem;
}

html[data-theme="dark"] .portal-card h3 { color: #EAE5DA; }

.portal-card p {
    color: rgba(14, 22, 32, 0.65);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

html[data-theme="dark"] .portal-card p { color: rgba(234, 229, 218, 0.65); }

html[lang="ar"] .portal-card p { font-size: 1rem; line-height: 1.85; }

.portal-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-orange);
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: auto;
    transition: gap 0.3s;
}

.portal-card:hover .portal-card-cta { gap: 0.9rem; }

/* Featured card (employee login) */
.portal-card.featured {
    background: linear-gradient(135deg, var(--c-navy) 0%, #2a3a4d 100%);
    color: var(--c-cream);
    border-color: transparent;
}

.portal-card.featured h3 { color: var(--c-cream); }
.portal-card.featured p { color: rgba(250, 247, 241, 0.75); }
.portal-card.featured .portal-card-icon {
    background: rgba(226, 135, 67, 0.2);
    color: var(--c-orange);
}
.portal-card.featured:hover .portal-card-icon {
    background: var(--c-orange);
    color: var(--c-navy);
}

/* Registration form pages */
.form-page {
    background: var(--c-cream);
    padding: clamp(4rem, 8vw, 6rem) 0;
    min-height: 60vh;
}

html[data-theme="dark"] .form-page { background: #0A1118; }

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--c-white);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(14, 22, 32, 0.06);
}

html[data-theme="dark"] .form-container {
    background: #1A2532;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-container > .eyebrow { margin-bottom: 1rem; }

.form-container h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--c-navy);
    margin-bottom: 0.5rem;
}

html[data-theme="dark"] .form-container h1 { color: #EAE5DA; }

.form-container > p {
    color: rgba(14, 22, 32, 0.65);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

html[data-theme="dark"] .form-container > p { color: rgba(234, 229, 218, 0.65); }

.form-section-title {
    grid-column: 1 / -1;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(14, 22, 32, 0.08);
    color: var(--c-navy);
    font-size: 1.05rem;
    font-weight: 700;
}

html[data-theme="dark"] .form-section-title {
    color: #EAE5DA;
    border-color: rgba(234, 229, 218, 0.1);
}

.form-section-title:first-child { margin-top: 0; }

/* Required marker */
.form-field label .req {
    color: var(--c-orange);
    margin-inline-start: 4px;
}

/* Success message */
.form-success {
    background: rgba(45, 90, 39, 0.1);
    color: var(--c-green);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    border-inline-start: 4px solid var(--c-green);
    margin-top: 1.5rem;
    display: none;
}
.form-success.show { display: block; }

.form-error {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    border-inline-start: 4px solid #c0392b;
    margin-top: 1.5rem;
    display: none;
}
.form-error.show { display: block; }

/* Responsive */
@media (max-width: 980px) {
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-card { padding: 2rem 1.5rem; }
    .portal-card-icon { width: 80px; height: 80px; }
}
