/* ============================================================
   TEIS — Techno Egypt Integrated Solutions
   Main Stylesheet  |  Bootstrap 5.3 + Bootstrap Icons
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
    --navy:        #0a1628;
    --navy-mid:    #112240;
    --navy-light:  #1a3461;
    --gold:        #c9a227;
    --gold-light:  #e0b93a;
    --gold-pale:   #fdf6e3;
    --white:       #ffffff;
    --off-white:   #f8fafc;
    --gray-50:     #f1f5f9;
    --gray-100:    #e2e8f0;
    --gray-300:    #94a3b8;
    --gray-500:    #64748b;
    --gray-700:    #334155;
    --text:        #1e293b;
    --text-muted:  #64748b;

    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   20px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow:      0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
    --trans:       all .25s ease;
}

/* ── 2. BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

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

/* ── 3. TOPBAR ───────────────────────────────────────────── */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    padding: .45rem 0;
    letter-spacing: .01em;
}

.topbar-info span { color: rgba(255,255,255,.6); }
.topbar-info i { color: var(--gold); margin-right: .3rem; }

.topbar-contact a {
    color: rgba(255,255,255,.7);
    transition: var(--trans);
}
.topbar-contact a:hover { color: var(--gold); }
.topbar-contact i { margin-right: .3rem; color: var(--gold); }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.65);
    font-size: .8rem;
    transition: var(--trans);
    margin-left: .15rem;
}
.social-links a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ── 4. NAVBAR ───────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: .75rem 0;
    transition: box-shadow .3s ease, padding .3s ease;
    z-index: 1030;
}

.main-nav.scrolled {
    box-shadow: var(--shadow);
    padding: .55rem 0;
}

/* Brand */
.navbar-brand { display: flex; flex-direction: column; line-height: 1; }

.brand-mark {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.5px;
    position: relative;
}

.brand-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 1px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.brand-mark.light { color: var(--white); }

.brand-tagline {
    font-size: .68rem;
    color: var(--text-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-top: .15rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Nav links */
.main-nav .nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: .5rem .85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--trans);
    font-family: 'Inter', sans-serif;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--navy) !important;
    background: var(--gray-50);
}

/* Dropdown */
.main-nav .dropdown-menu {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    margin-top: .5rem;
    min-width: 220px;
}

.main-nav .dropdown-item {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    padding: .5rem .85rem;
    transition: var(--trans);
}
.main-nav .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--navy);
}

/* CTA button in nav */
.main-nav .btn-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: .5rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: .85rem !important;
    transition: var(--trans);
}
.main-nav .btn-cta:hover {
    background: var(--gold);
    color: var(--navy) !important;
    transform: translateY(-1px);
}
.main-nav .btn-cta i { font-size: .75rem; }

/* ── 5. GLOBAL BUTTONS ───────────────────────────────────── */
.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
    font-size: .9rem;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    border: 2px solid var(--gold);
    transition: var(--trans);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary-cta:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,.35);
}

.btn-outline-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent;
    color: var(--navy) !important;
    font-weight: 600;
    font-size: .9rem;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    border: 2px solid var(--navy);
    transition: var(--trans);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-outline-cta:hover {
    background: var(--navy);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-cta-light {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent;
    color: var(--white) !important;
    font-weight: 600;
    font-size: .9rem;
    padding: .65rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.5);
    transition: var(--trans);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-cta-light:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy) !important;
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--navy);
    font-weight: 600;
    font-size: .875rem;
    transition: var(--trans);
    text-decoration: none;
}
.btn-link-arrow:hover {
    color: var(--gold);
    gap: .65rem;
}

/* ── 6. HERO ─────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d2045 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Decorative geometric pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 70% 50%, rgba(201,162,39,.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(26,52,97,.6) 0%, transparent 40%),
        linear-gradient(180deg, transparent 60%, rgba(0,0,0,.3) 100%);
    pointer-events: none;
}

/* Grid lines decoration */
.hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-overlay { display: none; }

.hero-container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(201,162,39,.15);
    border: 1px solid rgba(201,162,39,.3);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-eyebrow i { font-size: .9rem; }

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-trust span {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.hero-trust i { color: var(--gold); font-size: .95rem; }

/* Hero right card */
.hero-card {
    position: relative;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--white);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201,162,39,.25), transparent 60%);
    pointer-events: none;
}

.hero-card-pulse {
    position: absolute;
    top: -10px; right: -10px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(201,162,39,.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(201,162,39,.5); }
    70%  { box-shadow: 0 0 0 14px rgba(201,162,39,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}

.hero-card-icon {
    width: 60px; height: 60px;
    background: rgba(201,162,39,.15);
    border: 1px solid rgba(201,162,39,.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.hero-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.hero-card ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hero-card ul li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .9rem;
    color: rgba(255,255,255,.8);
}
.hero-card ul li i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* ── 7. KPI BAND ─────────────────────────────────────────── */
.kpi-band {
    background: var(--gold);
    padding: 2.5rem 0;
}

.kpi { padding: .5rem 1rem; }

.kpi span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: .25rem;
}

.kpi small {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(10,22,40,.65);
}

/* ── 8. SECTIONS ─────────────────────────────────────────── */
.section          { padding: 90px 0; }
.section-tinted   { padding: 90px 0; background: var(--off-white); }
.section-dark     { padding: 90px 0; background: var(--navy); }

.eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
    position: relative;
    padding-left: 1.5rem;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.eyebrow.light { color: var(--gold); }

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-lead.light { color: rgba(255,255,255,.65); }

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── 9. ABOUT GRAPHIC ────────────────────────────────────── */
/* ── About team photo ───────────────────────────────────── */
.about-team-photo-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,22,40,.25);
}

.about-team-photo {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.about-team-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,22,40,.85));
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 500;
    padding: 2rem 1.25rem .9rem;
}

.about-team-caption i { color: var(--gold); margin-right: .35rem; }

.about-partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.badge-cert {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(201,162,39,.12);
    color: var(--navy);
    border: 1px solid rgba(201,162,39,.4);
    border-radius: 20px;
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 600;
}

.badge-cert i { color: var(--gold); }

/* ── About graphic (homepage) ───────────────────────────── */
.about-graphic {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-shape {
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    opacity: .07;
}

.about-icon-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 300px;
}

.ag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--trans);
    text-align: center;
}

.ag:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.ag i {
    font-size: 1.75rem;
    color: var(--navy);
}

.ag span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── 10. FEATURE LIST ────────────────────────────────────── */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .95rem;
    color: var(--text);
}
.feature-list li i {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ── 11. SOLUTION CARDS ──────────────────────────────────── */
.solution-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 2rem 1.75rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--trans);
    text-decoration: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s ease;
    transform-origin: left;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.solution-card:hover::after { transform: scaleX(1); }

.solution-icon {
    width: 52px; height: 52px;
    background: var(--navy);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: var(--trans);
}
.solution-card:hover .solution-icon {
    background: var(--gold);
    color: var(--navy);
}

.solution-card h5 {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.solution-card p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy);
    transition: var(--trans);
}
.solution-card:hover .solution-link {
    color: var(--gold);
    gap: .6rem;
}

/* ── 12. PRODUCT CARDS ───────────────────────────────────── */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--trans);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-img {
    position: relative;
    background: var(--gray-50);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }

.product-badge {
    position: absolute;
    top: .75rem; left: .75rem;
    background: var(--navy);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 50px;
}

.product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex-grow: 1;
}
.product-body small { color: var(--gold); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.product-body h5   { font-size: .95rem; font-family: 'Inter', sans-serif; font-weight: 700; margin: 0; color: var(--navy); }
.product-body p    { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: 0; flex-grow: 1; }

/* Product detail */
.product-detail-img {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.product-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gold-pale);
    border: 1px solid rgba(201,162,39,.2);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: .75rem;
}

/* Spec table */
.spec-table { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; }
.table-spec { margin: 0; }
.table-spec th {
    width: 40%;
    font-weight: 600;
    font-size: .875rem;
    color: var(--navy);
    padding: .6rem 1rem;
    border-color: var(--gray-100);
    background: transparent;
}
.table-spec td {
    font-size: .875rem;
    color: var(--text-muted);
    padding: .6rem 1rem;
    border-color: var(--gray-100);
}

/* ── 13. SERVICE CARDS (dark section) ────────────────────── */
.service-card-dark {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--trans);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.service-card-dark:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(201,162,39,.3);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px; height: 48px;
    background: rgba(201,162,39,.12);
    border: 1px solid rgba(201,162,39,.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gold);
}

.service-card-dark h5 {
    color: var(--white);
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0;
}
.service-card-dark p {
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    line-height: 1.6;
    margin: 0;
}

/* ── 14. BRAND TILES ─────────────────────────────────────── */
.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--trans);
    text-decoration: none;
    text-align: center;
}
.brand-tile:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 24px rgba(201,162,39,.15);
    transform: translateY(-3px);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    transition: var(--trans);
}
.brand-tile:hover .brand-name { color: var(--gold); }

.brand-country {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.brand-country i { color: var(--gold); margin-right: .25rem; }

/* ── 15. PROJECT CARDS ───────────────────────────────────── */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--trans);
    text-decoration: none;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.project-img {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--gray-50);
    overflow: hidden;
}
.project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.project-card:hover .project-img img { transform: scale(1.05); }

.sector-badge {
    position: absolute;
    top: .75rem; right: .75rem;
    background: var(--gold);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 50px;
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.project-body small { font-size: .78rem; color: var(--text-muted); }
.project-body h5 { font-size: .95rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--navy); margin: 0; }
.project-body p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── 16. NEWS CARDS ──────────────────────────────────────── */
.news-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--trans);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-img {
    aspect-ratio: 16/9;
    background: var(--gray-50);
    overflow: hidden;
}
.news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-card:hover .news-img img { transform: scale(1.04); }

.news-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.news-date {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.news-date i { font-size: .8rem; }

.news-body h5 {
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.4;
}
.news-body p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* ── 17. CLIENTS PAGE ───────────────────────────────────── */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.client-logo-card:hover {
    box-shadow: 0 6px 24px rgba(10,22,40,.12);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.client-logo-card img {
    max-height: 60px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(35%);
    transition: filter .25s;
}

.client-logo-card:hover img { filter: grayscale(0%); }

.client-name-text {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    line-height: 1.3;
}

.clients-sector-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.clients-sector-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.clients-separator {
    border-color: #dee2e6;
    margin: 2.5rem 0;
}

/* Page hero for inner pages */
.page-hero {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,.75) 0%, rgba(10,22,40,.50) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    color: #fff;
}

.page-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: .5rem;
}

.page-hero-content p {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto;
}

/* ── 17. PARTNERS / CLIENTS STRIP ───────────────────────── */
.partners-section { background: #fff; padding: 4rem 0; }

.partners-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.partner-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-width: 130px;
    min-height: 70px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    text-decoration: none;
}

.partner-logo-tile:hover {
    box-shadow: 0 4px 18px rgba(10,22,40,.10);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.partner-logo-tile img {
    max-height: 52px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter .2s;
}

.partner-logo-tile:hover img { filter: grayscale(0%); }

.partner-name-fallback {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
}

/* navbar logo — full image replaces text */
.brand-logo-full {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}
@media (max-width: 575px) {
    .brand-logo-full { height: 38px; }
}

/* image-upload-box in admin (also used in public forms if any) */
.image-upload-box {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 1rem;
}

/* ── 18. CTA BAND ────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(201,162,39,.06);
    pointer-events: none;
}

.cta-band h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    color: var(--white);
    margin-bottom: .5rem;
}
.cta-band p { color: rgba(255,255,255,.65); font-size: .95rem; }

/* ── 18. PAGE HEADER ─────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: .5rem;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    position: relative;
    z-index: 2;
}
.breadcrumb-nav a   { color: var(--gold); font-weight: 500; }
.breadcrumb-nav a:hover { color: var(--gold-light); }
.breadcrumb-nav .sep { color: rgba(255,255,255,.3); }
.breadcrumb-nav .current { color: rgba(255,255,255,.6); }

/* ── 19. FILTER PANEL ────────────────────────────────────── */
.filter-panel {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.filter-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .75rem;
    font-family: 'Inter', sans-serif;
}

.filter-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.filter-list a {
    display: block;
    padding: .45rem .75rem;
    font-size: .875rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--trans);
    font-weight: 500;
}
.filter-list a:hover, .filter-list a.active {
    background: var(--gold-pale);
    color: var(--navy);
}
.filter-list a.active { font-weight: 700; }

.filter-search .form-control {
    border-color: var(--gray-100);
    font-size: .875rem;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.filter-search .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .5rem .85rem; }

.results-bar {
    display: flex;
    align-items: center;
    padding: .65rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: .875rem;
    color: var(--text-muted);
}
.results-bar strong { color: var(--navy); }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: .3; }

/* ── 20. FOOTER ──────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    padding-top: 4rem;
}

.footer-top { padding-bottom: 3rem; }

.footer-brand { margin-bottom: 1rem; }

.footer-text {
    font-size: .875rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    margin-bottom: 1.25rem;
}

.social-row {
    display: flex;
    gap: .5rem;
}
.social-row a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: var(--trans);
}
.social-row a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.site-footer h6 {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.footer-list a {
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    transition: var(--trans);
}
.footer-list a:hover { color: var(--gold); padding-left: .25rem; }

.footer-contact {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .875rem;
    color: rgba(255,255,255,.55);
}
.footer-contact i { color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--gold); }

.footer-divider { border-color: rgba(255,255,255,.08); margin: 0; }

.footer-bottom {
    padding: 1.25rem 0;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom a {
    color: rgba(255,255,255,.4);
    transition: var(--trans);
}
.footer-bottom a:hover { color: var(--gold); }

/* ── 21. BACK TO TOP ─────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--navy);
    color: var(--gold);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
    z-index: 999;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}
#backToTop:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* ── 22. CONTACT PAGE ────────────────────────────────────── */
.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--gray-50);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    width: 42px; height: 42px;
    background: var(--gold-pale);
    border: 1px solid rgba(201,162,39,.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
}
.contact-info-item h6 { font-size: .75rem; font-family: 'Inter', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .15rem; }
.contact-info-item p, .contact-info-item a { font-size: .9rem; color: var(--text); margin: 0; }

/* Contact form */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.form-label   { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.form-control, .form-select {
    border-color: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text);
    padding: .65rem .9rem;
    transition: var(--trans);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,.12);
}

/* ── 23. ABOUT PAGES ─────────────────────────────────────── */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: .75rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.cert-badge i { color: var(--gold); font-size: 1.25rem; }
.cert-badge span { font-size: .85rem; font-weight: 600; color: var(--navy); }

.team-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--trans);
    text-align: center;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 2rem auto 1rem;
}
.team-card-body { padding: 0 1.5rem 2rem; }
.team-card-body h5 { font-size: .95rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--navy); }
.team-card-body small { font-size: .8rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ── 24. MISCELLANEOUS ───────────────────────────────────── */
.text-gold { color: var(--gold) !important; }

/* Alert / flash */
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* Table striped override */
.table > :not(caption) > * > * { padding: .75rem 1rem; }

/* ── 25. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-title { font-size: 2rem; }
    .section, .section-tinted, .section-dark { padding: 60px 0; }
    .about-graphic { height: 280px; }
    .about-icon-grid { width: 240px; gap: 1rem; }
}

@media (max-width: 767px) {
    .hero { padding: 90px 0 50px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-trust { gap: 1rem; }
    .kpi-band .kpi span { font-size: 1.6rem; }
    .section, .section-tinted, .section-dark { padding: 50px 0; }
    .cta-band { padding: 3rem 0; }
    .cta-band .text-lg-end { text-align: left !important; margin-top: 1rem; }
}

@media (max-width: 575px) {
    .brand-tagline { display: none !important; }
    .hero-title { font-size: 1.75rem; }
    .filter-panel { position: static; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher .nav-link {
    color: var(--text-light) !important;
    font-size: .88rem;
    padding: .4rem .7rem !important;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.lang-switcher .nav-link:hover,
.main-nav.scrolled .lang-switcher .nav-link:hover {
    background: rgba(201,162,39,.15);
    border-color: var(--gold);
    color: var(--gold) !important;
}
.lang-menu { min-width: 180px; border: 1px solid rgba(201,162,39,.2); border-radius: var(--radius); padding: .4rem 0; }
.lang-menu .dropdown-item { display: flex; align-items: center; gap: .55rem; padding: .45rem 1rem; font-size: .88rem; }
.lang-menu .dropdown-item:hover { background: rgba(201,162,39,.1); color: var(--navy); }
.lang-menu .dropdown-item.active { background: rgba(201,162,39,.18); color: var(--navy); font-weight: 600; }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-native { font-weight: 500; }
.lang-en { font-size: .75rem; }

/* ============================================================
   ARABIC FONT OVERRIDE (RTL)
   ============================================================ */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] button,
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select {
    font-family: 'Cairo', sans-serif !important;
}

/* ============================================================
   RTL LAYOUT OVERRIDES  [dir="rtl"]
   ============================================================ */

/* ── Topbar ─────────────────────────────────────────────────── */
[dir="rtl"] .topbar-contact a + a,
[dir="rtl"] .topbar-contact .social-links { margin-left: 0; margin-right: .75rem; }

/* ── Navbar ─────────────────────────────────────────────────── */
[dir="rtl"] .navbar-nav { margin-left: 0 !important; margin-right: auto; }
[dir="rtl"] .lang-menu { left: 0; right: auto; }
[dir="rtl"] .navbar-brand .brand-tagline { margin-left: 0; margin-right: .5rem; }
[dir="rtl"] .nav-link.btn-cta i,
[dir="rtl"] .btn-link-arrow i { transform: scaleX(-1); }

/* ── Hero ───────────────────────────────────────────────────── */
[dir="rtl"] .hero-eyebrow i { margin-right: 0; margin-left: .4rem; }
[dir="rtl"] .hero-trust span { margin-right: 0; }
[dir="rtl"] .hero-trust span + span { margin-left: 0; margin-right: 1.5rem; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }

/* ── Section text ───────────────────────────────────────────── */
[dir="rtl"] .eyebrow,
[dir="rtl"] .section-title,
[dir="rtl"] .section-lead,
[dir="rtl"] .lead-text { text-align: right; }

/* ── Solution / product / service cards ─────────────────────── */
[dir="rtl"] .solution-card,
[dir="rtl"] .product-body,
[dir="rtl"] .service-card-dark,
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .solution-link i,
[dir="rtl"] .service-icon { align-self: flex-end; }

/* ── Feature list ───────────────────────────────────────────── */
[dir="rtl"] .feature-list li { flex-direction: row-reverse; }
[dir="rtl"] .feature-list li i { margin-right: 0; margin-left: .6rem; }

/* ── Filter panel ───────────────────────────────────────────── */
[dir="rtl"] .filter-panel { text-align: right; }
[dir="rtl"] .filter-list a { padding-left: 0; padding-right: .75rem; border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .filter-list a.active { border-left: none; border-right: 3px solid var(--gold); }

/* ── Filter pills ───────────────────────────────────────────── */
[dir="rtl"] .filter-pills { direction: rtl; }

/* ── Project / news cards ───────────────────────────────────── */
[dir="rtl"] .project-body,
[dir="rtl"] .news-body { text-align: right; }
[dir="rtl"] .news-date i { margin-right: 0; margin-left: .3rem; }

/* ── Brand tile ─────────────────────────────────────────────── */
[dir="rtl"] .brand-tile,
[dir="rtl"] .brand-card { text-align: right; }
[dir="rtl"] .brand-country i { margin-right: 0; margin-left: .3rem; }

/* ── About icon grid ────────────────────────────────────────── */
[dir="rtl"] .ag { direction: rtl; }

/* ── CTA band ───────────────────────────────────────────────── */
[dir="rtl"] .cta-band { text-align: right; }
[dir="rtl"] .cta-band .text-lg-end { text-align: left !important; }

/* ── Footer ─────────────────────────────────────────────────── */
[dir="rtl"] .footer-top,
[dir="rtl"] .footer-bottom { direction: rtl; }
[dir="rtl"] .footer-list li a,
[dir="rtl"] .footer-contact li { text-align: right; }
[dir="rtl"] .footer-contact li i { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .social-row,
[dir="rtl"] .social-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* ── Sidebar ────────────────────────────────────────────────── */
[dir="rtl"] .sidebar-box { text-align: right; }

/* ── Project info card ──────────────────────────────────────── */
[dir="rtl"] .project-info-card ul li { flex-direction: row-reverse; text-align: right; }

/* ── Back-to-top ────────────────────────────────────────────── */
[dir="rtl"] #backToTop { right: auto; left: 2rem; }

/* ── Page header ────────────────────────────────────────────── */
[dir="rtl"] .page-header { text-align: right; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { content: "‹"; margin: 0 .5rem; }

/* ── Buttons with arrow icons ───────────────────────────────── */
[dir="rtl"] .btn-primary-cta i,
[dir="rtl"] .btn-outline-cta i,
[dir="rtl"] .btn-cta-light i { transform: scaleX(-1); }
