/* ==========================================================================
   SAWAAED NAJD — index.css
   Page-specific premium CSS for index.html (Color Harmonization Overhaul)
   ========================================================================== */

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

/* ─── 1. CSS Variables System (:root) ─── */
:root {
    --brand-green: #0C382C;
    --brand-green-dark: #07231B;
    --brand-gold: #C5A059;
    --brand-gold-light: #DAB97B;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.75);

    --border-gold-subtle: rgba(197, 160, 89, 0.25);
    --border-gold-glow: rgba(197, 160, 89, 0.45);
}

/* ─── Global Font Application ─── */
body.page-home {
    font-family: 'Cairo', 'Montserrat', sans-serif;
    background-color: var(--brand-green-dark);
    color: var(--text-muted);
}

/* ─── Section spacing ─── */
.idx-about,
.idx-services,
.idx-portfolio,
.idx-certs {
    padding: 140px 0;
}

/* ─── Section Eyebrow ─── */
.sec-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-gold);
}
.sec-eyebrow-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--brand-gold);
    flex-shrink: 0;
}

/* ─── Section Title ─── */
.sec-title {
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.sec-title .gold-text {
    color: var(--brand-gold) !important;
}

/* ─── Split Section Header ─── */
.idx-sec-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-end;
    margin-bottom: 5rem;
}
.idx-sec-header-left {
    display: flex;
    flex-direction: column;
}
.idx-sec-header-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-end;
}

.idx-sec-desc {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.85;
    font-weight: 400;
}

.idx-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--brand-gold);
    transition: color 0.3s ease, gap 0.3s ease;
    align-self: flex-start;
}
.idx-sec-link:hover {
    color: var(--brand-gold-light);
    gap: 0.9rem;
}
.idx-sec-link svg {
    transition: transform 0.3s ease;
}
.idx-sec-link:hover svg {
    transform: translateX(-4px);
}
body[dir="ltr"] .idx-sec-link:hover svg {
    transform: translateX(4px);
}

/* ════════════════════════════════════════════════
   01 · HERO SECTION
════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    overflow: hidden;
    background-color: var(--brand-green-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    filter: brightness(0.45) saturate(0.85);
    will-change: transform;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(7, 35, 27, 0.88) 0%,
        rgba(12, 56, 44, 0.72) 45%,
        rgba(7, 35, 27, 0.96) 100%
    );
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
}
.hero-grid-lines span {
    display: block;
    border-right: 1px solid var(--brand-gold);
}
.hero-grid-lines span:last-child {
    border-right: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    padding: 5rem 0 8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-gold);
    margin-bottom: 2rem;
}
.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 10px var(--brand-gold);
    flex-shrink: 0;
    animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 6px var(--brand-gold); }
    50% { box-shadow: 0 0 18px var(--brand-gold), 0 0 32px rgba(197,160,89,0.4); }
}

/* ------------------------------------------------------------------------------
   HERO TITLE & CONTENT LAYOUT ALIGNMENT (DESKTOP & MOBILE RESPONSIVE)
   ------------------------------------------------------------------------------ */
.hero-title,
.hero-headline {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* 1. Desktop Alignment (Laptop & Large Screens >= 992px) */
@media (min-width: 992px) {
    body[dir="rtl"] .hero-inner {
        align-items: flex-start;
        text-align: right;
    }
    body[dir="rtl"] .hero-title,
    body[dir="rtl"] .hero-headline {
        text-align: right !important;
    }
    body[dir="rtl"] .hero-sub {
        text-align: right !important;
        margin-right: 0 !important;
    }
    body[dir="rtl"] .hero-cta-row {
        justify-content: flex-start !important;
    }

    body[dir="ltr"] .hero-inner {
        align-items: flex-start;
        text-align: left;
    }
    body[dir="ltr"] .hero-title,
    body[dir="ltr"] .hero-headline {
        text-align: left !important;
    }
    body[dir="ltr"] .hero-sub {
        text-align: left !important;
        margin-left: 0 !important;
    }
    body[dir="ltr"] .hero-cta-row {
        justify-content: flex-start !important;
    }
}

/* تلوين عبارة للاستشارات الهندسية باللون الذهبي الداكن */
.hero-title .gold-text,
.hero-headline .gold-text,
.hero-em {
    color: #C5A059 !important;
    font-style: normal !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    display: inline-block !important;
}

.hero-title .dots,
.hero-headline .dots {
    color: #C5A059;
    opacity: 0.85;
    margin: 0 4px;
    display: inline-block;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    color: var(--text-muted);
    line-height: 1.9;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 640px;
}
.hero-br {
    display: block;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.4rem;
    font-size: 0.95rem;
    font-weight: 800;
    background: var(--brand-gold);
    color: var(--brand-green) !important;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.hero-btn-primary:hover {
    background: var(--brand-gold-light);
    color: var(--brand-green) !important;
    transform: translateY(-2px);
}

.hero-btn-secondary {
    padding: 0.95rem 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    border: 1px solid var(--border-gold-glow);
    border-radius: 4px;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.hero-btn-secondary:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.hero-stats-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-gold-subtle);
}
.hstat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 2.8rem 0 0;
}
body[dir="ltr"] .hstat { padding: 0 0 0 2.8rem; }
.hstat:first-child { padding-right: 2.8rem; padding-left: 0; }
body[dir="ltr"] .hstat:first-child { padding-left: 2.8rem; padding-right: 0; }

.hstat-num {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    letter-spacing: -1px;
}
.hstat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}
.hstat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-gold-subtle);
    flex-shrink: 0;
    margin: 0 2.8rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    z-index: 4;
}
.scroll-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-gold);
    opacity: 0.7;
}
.scroll-line {
    width: 1px;
    height: 55px;
    background: var(--border-gold-subtle);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}
.scroll-dot {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 8px var(--brand-gold);
    animation: scrollDrop 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollDrop {
    0%   { top: -5px;  opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 0.4; }
    100% { top: 55px; opacity: 0; }
}

/* ════════════════════════════════════════════════
   02 · ABOUT SECTION (Brand Green Dark)
════════════════════════════════════════════════ */
.idx-about {
    background: var(--brand-green-dark);
}

.idx-about-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}
body[dir="ltr"] .idx-about-grid { direction: ltr; }

.idx-about-text {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.idx-about-lead {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.75;
    padding-right: 1.4rem;
    border-right: 3px solid var(--brand-gold);
}
body[dir="ltr"] .idx-about-lead {
    padding-right: 0;
    border-right: none;
    padding-left: 1.4rem;
    border-left: 3px solid var(--brand-gold);
}

.idx-about-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    font-weight: 400;
}

.idx-about-feats {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 0.5rem 0;
}
.idx-about-feats li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-white);
}
.idx-about-feats li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-gold);
}

.idx-about-img-wrap {
    position: relative;
}
.idx-about-img-inner {
    width: 100%;
    height: 560px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}
.idx-about-parallax-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.idx-about-float-card {
    position: absolute;
    bottom: -2rem;
    background: var(--brand-green);
    border: 1px solid var(--border-gold-glow);
    padding: 1.8rem 2.2rem;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    z-index: 10;
}
body[dir="rtl"] .idx-about-float-card { left: -2rem; right: auto; }
body[dir="ltr"] .idx-about-float-card { right: -2rem; left: auto; }

.float-card-num {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--brand-gold);
    line-height: 1;
    letter-spacing: -1px;
}
.float-card-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.4rem;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════
   03 · SERVICES SECTION (Brand Green)
════════════════════════════════════════════════ */
.idx-services {
    background: var(--brand-green);
}

.idx-srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 2px;
    overflow: visible;
}

.idx-srv-card {
    padding: 3.2rem 2.8rem 3.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 1px solid var(--border-gold-subtle);
    transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform  0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.idx-srv-card:first-child { border-left: none; }
body[dir="rtl"] .idx-srv-card { border-left: none; border-right: 1px solid var(--border-gold-subtle); }
body[dir="rtl"] .idx-srv-card:first-child { border-right: none; }

.idx-srv-card:hover {
    background: rgba(7, 35, 27, 0.6);
    transform: translateY(-5px);
    z-index: 2;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

.idx-srv-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
    opacity: 0.85;
    margin-bottom: 2rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.idx-srv-card:hover .idx-srv-icon {
    color: var(--brand-gold-light);
    opacity: 1;
}

.idx-srv-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.35;
    margin-bottom: 0.9rem;
}

.idx-srv-divider {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light));
    margin-bottom: 1.3rem;
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.idx-srv-card:hover .idx-srv-divider {
    width: 55px;
}

.idx-srv-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.85;
    flex-grow: 1;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.idx-srv-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-gold-subtle);
    border-radius: 50%;
    color: var(--brand-gold);
    align-self: flex-end;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.idx-srv-link svg {
    transition: transform 0.3s ease;
}
.idx-srv-card:hover .idx-srv-link {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-green) !important;
    transform: scale(1.08);
}
.idx-srv-card:hover .idx-srv-link svg {
    transform: translateX(-3px);
}
body[dir="ltr"] .idx-srv-card:hover .idx-srv-link svg {
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════
   04 · PORTFOLIO SECTION (Brand Green Dark)
════════════════════════════════════════════════ */
.idx-portfolio {
    background: var(--brand-green-dark);
}

.idx-port-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid var(--border-gold-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.idx-port-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.idx-port-img-wrap {
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.idx-port-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}
.idx-port-card:hover .idx-port-img {
    transform: scale(1.08);
}

.idx-port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(7, 35, 27, 0.96) 0%,
        rgba(7, 35, 27, 0.45) 45%,
        rgba(7, 35, 27, 0.08) 100%
    );
    transition: background 0.5s ease;
    pointer-events: none;
}
.idx-port-card:hover .idx-port-overlay {
    background: linear-gradient(
        0deg,
        rgba(7, 35, 27, 0.97) 0%,
        rgba(7, 35, 27, 0.6) 55%,
        rgba(7, 35, 27, 0.15) 100%
    );
}

.idx-port-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.4rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.idx-port-tag {
    display: inline-block;
    padding: 0.28rem 0.85rem;
    background: var(--brand-gold);
    color: var(--brand-green) !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    width: fit-content;
    margin-bottom: 0.4rem;
}

.idx-port-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.25;
}

.idx-port-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}
.idx-port-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-gold);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   05 · ACCREDITATIONS SECTION (Brand Green)
════════════════════════════════════════════════ */
.idx-certs {
    background: var(--brand-green);
    padding: 120px 0;
}

.idx-certs-header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.idx-certs-header .sec-eyebrow {
    justify-content: center;
}

.idx-certs-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border-gold-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.idx-cert-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 2.5rem 2.8rem;
    transition: background 0.35s ease;
}
.idx-cert-item:hover {
    background: rgba(7, 35, 27, 0.4);
}

.idx-cert-divider {
    width: 1px;
    height: 60px;
    background: var(--border-gold-subtle);
    flex-shrink: 0;
}

.idx-cert-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gold-glow);
    border-radius: 50%;
    color: var(--brand-gold);
    flex-shrink: 0;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.idx-cert-item:hover .idx-cert-icon {
    color: var(--brand-gold-light);
    border-color: var(--brand-gold);
    background: rgba(197, 160, 89, 0.1);
}

.idx-cert-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.idx-cert-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    display: block;
}
.idx-cert-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

/* ════════════════════════════════════════════════
   06 · CTA FULL-WIDTH BAND
════════════════════════════════════════════════ */
.idx-cta-band {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background-color: var(--brand-green-dark);
}
.idx-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.idx-cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(0.7);
}
.idx-cta-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(7, 35, 27, 0.92) 0%,
        rgba(12, 56, 44, 0.8) 100%
    );
}
.idx-cta-band .container {
    position: relative;
    z-index: 2;
}

.idx-cta-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.idx-cta-text {
    flex: 1 !important;
    min-width: 300px !important;
}

.idx-cta-title {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    margin-bottom: 0.8rem !important;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem) !important;
    line-height: 1.3 !important;
}

.idx-cta-sub {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

.idx-cta-btn {
    flex-shrink: 0 !important;
    padding: 1rem 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background: #C5A059 !important;
    color: #0C382C !important;
    border: 1px solid #C5A059 !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

.idx-cta-btn:hover {
    background: #0C382C !important;
    color: #FFFFFF !important;
    border-color: #C5A059 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(12, 56, 44, 0.4) !important;
}

.idx-cta-band .idx-cta-btn,
.idx-cta-band .idx-cta-btn span,
.idx-cta-band .idx-cta-btn svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* ════════════════════════════════════════════════
   RESPONSIVE LAYOUT
════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .idx-about,
    .idx-services,
    .idx-portfolio,
    .idx-certs { padding: 100px 0; }

    .idx-about-grid   { grid-template-columns: 1fr; gap: 4rem; }
    .idx-about-img-wrap { display: none; }
    .idx-about-feats  { grid-template-columns: 1fr; }

    .idx-sec-header   { grid-template-columns: 1fr; gap: 2rem; }
    .idx-srv-grid     { grid-template-columns: 1fr; }
    .idx-srv-card     { border-left: none !important; border-right: none !important; border-bottom: 1px solid var(--border-gold-subtle); }
    .idx-srv-card:last-child { border-bottom: none; }

    .idx-port-grid    { grid-template-columns: 1fr; }
    .idx-port-img-wrap { height: 380px; }

    .idx-certs-strip  { flex-direction: column; }
    .idx-cert-divider { width: 60px; height: 1px; }
    .idx-cert-item    { width: 100%; justify-content: flex-start; }

    .idx-cta-inner    { flex-direction: column; text-align: center; }
    .idx-cta-band     { padding: 80px 0; }
}

/* ============================================================
   HERO SECTION — ULTIMATE MOBILE RESPONSIVE ARCHITECTURE
   ============================================================ */
@media (max-width: 991px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.2rem 3.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .hero-eyebrow {
        margin: 0 auto 1.2rem auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 1.2rem;
        font-size: 0.85rem;
    }

    body[dir="rtl"] .hero-inner,
    body[dir="ltr"] .hero-inner {
        align-items: center !important;
        text-align: center !important;
    }

    body[dir="rtl"] .hero-title,
    body[dir="ltr"] .hero-title,
    body[dir="rtl"] .hero-headline,
    body[dir="ltr"] .hero-headline {
        font-size: 2.2rem !important; /* تصغير متناسق ومريح للعين على الجوال */
        padding: 0 15px !important;    /* مسافات آمنة من الجانبين لمنع الالتصاق بحواف الشاشة */
        line-height: 1.4 !important;
        margin-bottom: 1.4rem !important;
        text-align: center !important;
        word-break: break-word !important;
    }

    .hero-em {
        display: inline-block !important;
        margin-top: 0.2rem;
    }

    .hero-sub {
        font-size: 0.95rem !important;
        line-height: 1.75 !important;
        margin: 0 auto 2.2rem auto !important;
        max-width: 90% !important;
        text-align: center !important;
    }

    .hero-sub .hero-br {
        display: none !important;
    }

    .hero-cta-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.9rem !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto 3rem auto !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        max-width: 340px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 48px !important;
        padding: 0.85rem 1.6rem !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .hero-stats-strip {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
        width: 100% !important;
        margin-top: 2rem !important;
        padding-top: 2rem !important;
        border-top: 1px solid rgba(197, 160, 89, 0.25) !important;
        text-align: center !important;
    }

    .hstat-divider {
        display: none !important;
    }

    .hstat {
        padding: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hstat-num {
        font-size: 1.75rem !important;
        line-height: 1.1 !important;
    }

    .hstat-lbl {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
    }

    .scroll-indicator {
        bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-inner {
        padding: 1.8rem 1rem 3rem;
    }

    .hero-title,
    .hero-headline {
        font-size: 1.8rem !important; /* حجم مثالي لشاشات الهواتف الضيقة */
    }

    .hero-sub {
        font-size: 0.88rem !important;
        max-width: 100% !important;
    }

    .hero-stats-strip {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .hstat {
        border-bottom: 1px solid rgba(197, 160, 89, 0.15);
        padding-bottom: 0.8rem !important;
    }

    .hstat:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
    }

    .hstat-num {
        font-size: 1.6rem !important;
    }

    .scroll-indicator {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .idx-about,
    .idx-services,
    .idx-portfolio,
    .idx-certs { padding: 80px 0; }

    .idx-port-img-wrap { height: 280px; }
    .idx-port-title { font-size: 1.3rem; }

    .idx-cta-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .idx-cert-item { padding: 1.8rem; }
    .idx-cert-divider { display: none; }
}

/* ============================================================
   CONTEXT-AWARE THEMING & ACCESSIBILITY CONTRAST FIX
   ============================================================ */

/* ─── 1. Light Context (White/Light Background Containers) ─── */
.bg-light,
.bg-white,
.card-white,
.light-context {
    background-color: #FFFFFF !important;
    color: #1A2521 !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.card-white h1, .card-white h2, .card-white h3, .card-white h4, .card-white h5, .card-white h6,
.light-context h1, .light-context h2, .light-context h3, .light-context h4, .light-context h5, .light-context h6 {
    color: var(--brand-green, #0C382C) !important;
}

.bg-light p, .bg-light span, .bg-light li, .bg-light label,
.bg-white p, .bg-white span, .bg-white li, .bg-white label,
.card-white p, .card-white span, .card-white li, .card-white label,
.light-context p, .light-context span, .light-context li, .light-context label {
    color: #1A2521 !important;
}

/* ─── 2. Dark Context (Dark Green Sections & Containers) ─── */
.hero,
.idx-about,
.idx-services,
.idx-portfolio,
.idx-certs,
.idx-cta-band,
footer,
.footer,
.idx-footer,
.dark-context {
    background-color: var(--brand-green-dark, #07231B);
    color: rgba(255, 255, 255, 0.75);
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.idx-about h1, .idx-about h2, .idx-about h3, .idx-about h4, .idx-about h5, .idx-about h6,
.idx-services h1, .idx-services h2, .idx-services h3, .idx-services h4, .idx-services h5, .idx-services h6,
.idx-portfolio h1, .idx-portfolio h2, .idx-portfolio h3, .idx-portfolio h4, .idx-portfolio h5, .idx-portfolio h6,
.idx-certs h1, .idx-certs h2, .idx-certs h3, .idx-certs h4, .idx-certs h5, .idx-certs h6,
.idx-cta-band h1, .idx-cta-band h2, .idx-cta-band h3, .idx-cta-band h4, .idx-cta-band h5, .idx-cta-band h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.dark-context h1, .dark-context h2, .dark-context h3, .dark-context h4, .dark-context h5, .dark-context h6,
.sec-title, .idx-srv-title, .idx-port-title, .idx-cert-title, .idx-cta-title {
    color: var(--text-white, #FFFFFF) !important;
}

.hero p, .hero span, .hero li,
.idx-about p, .idx-about span, .idx-about li,
.idx-services p, .idx-services span, .idx-services li,
.idx-portfolio p, .idx-portfolio span, .idx-portfolio li,
.idx-certs p, .idx-certs span, .idx-certs li,
.idx-cta-band p, .idx-cta-band span, .idx-cta-band li,
footer p, footer span, footer li,
.dark-context p, .dark-context span, .dark-context li,
.idx-sec-desc, .idx-about-body, .idx-srv-desc, .idx-cta-sub, .idx-cert-sub, .hero-sub, .idx-port-meta {
    color: var(--text-muted, rgba(255, 255, 255, 0.75)) !important;
}

/* Exceptional Gold Accents in Dark Context */
.gold-text,
.gold-title,
.sec-eyebrow,
.hero-eyebrow,
.float-card-num,
.hstat-num,
.idx-port-tag {
    color: var(--brand-gold, #C5A059) !important;
}

/* ─── 3. Buttons & SVG Icons Accessibility ─── */

/* Gold Buttons (Contrast Fix) */
.btn-gold,
.hero-btn-primary,
.idx-cta-btn,
.idx-port-tag {
    background-color: var(--brand-gold, #C5A059) !important;
    color: var(--brand-green, #0C382C) !important;
    font-weight: 800 !important;
}

.btn-gold:hover,
.hero-btn-primary:hover,
.idx-cta-btn:hover {
    background-color: var(--brand-gold-light, #DAB97B) !important;
    color: var(--brand-green, #0C382C) !important;
}

/* SVG Icons Standardization */
.idx-srv-icon,
.idx-cert-icon,
.idx-about-feats li svg,
.sec-eyebrow-line,
.hstat-divider,
.idx-cert-divider {
    color: var(--brand-gold, #C5A059);
}

.idx-srv-icon svg,
.idx-cert-icon svg {
    stroke: var(--brand-gold, #C5A059);
}

/* ============================================================
   LIGHT THEME CUSTOMIZATION: ABOUT & PORTFOLIO SECTIONS ONLY
   ============================================================ */

/* ─── 02 · ABOUT SECTION (.idx-about) ─── */
.idx-about {
    background: #FAFCFB !important;
    color: #2C3532 !important;
}

.idx-about .sec-title,
.idx-about .idx-about-lead {
    color: #0C382C !important;
}

.idx-about .idx-about-body,
.idx-about .idx-about-feats li,
.idx-about p {
    color: #2C3532 !important;
    font-weight: 500 !important;
    line-height: 1.85 !important;
}

.idx-about-feats li svg {
    color: #C5A059 !important;
}

.idx-about-lead {
    border-right-color: #C5A059 !important;
}
body[dir="ltr"] .idx-about-lead {
    border-left-color: #C5A059 !important;
}

.idx-about-float-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    box-shadow: 0 15px 35px rgba(12, 56, 44, 0.08) !important;
}

.idx-about-float-card .float-card-num {
    color: #C5A059 !important;
}

.idx-about-float-card .float-card-lbl {
    color: #2C3532 !important;
}

/* ─── 04 · PORTFOLIO SECTION (.idx-portfolio) ─── */
.idx-portfolio {
    background: #FAFCFB !important;
    color: #2C3532 !important;
}

.idx-portfolio .sec-title,
.idx-portfolio .idx-sec-header-left .sec-title {
    color: #0C382C !important;
}

.idx-portfolio .idx-sec-desc,
.idx-portfolio p {
    color: #2C3532 !important;
    font-weight: 500 !important;
    line-height: 1.85 !important;
}

/* Outline Buttons & Links inside .idx-about & .idx-portfolio */
.idx-about .btn-secondary,
.idx-about .btn-outline,
.idx-portfolio .btn-secondary,
.idx-portfolio .btn-outline {
    color: #0C382C !important;
    border: 1px solid #0C382C !important;
    background: transparent !important;
    font-weight: 700 !important;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.idx-about .btn-secondary:hover,
.idx-about .btn-outline:hover,
.idx-portfolio .btn-secondary:hover,
.idx-portfolio .btn-outline:hover {
    background: #0C382C !important;
    color: #FFFFFF !important;
    border-color: #0C382C !important;
}

/* ─── CSS Specificity Fix for .idx-about & .idx-portfolio ─── */

/* 1. Eyebrow Text in About & Portfolio Sections */
.idx-about .sec-eyebrow span:not(.sec-eyebrow-line),
.idx-portfolio .sec-eyebrow span:not(.sec-eyebrow-line) {
    color: #0C382C !important;
    font-weight: 800 !important;
}

/* 2. Feature List Text in About Section */
.idx-about-feats li,
.idx-about-feats li span {
    color: #0C382C !important;
    font-weight: 700 !important;
}

.idx-about-feats li svg {
    color: #C5A059 !important;
    stroke: #C5A059 !important;
}

/* 3. Portfolio Link & Hover state */
.idx-portfolio .idx-sec-link,
.idx-portfolio .idx-sec-link span,
.idx-portfolio .idx-sec-link svg {
    color: #0C382C !important;
    stroke: #0C382C !important;
    font-weight: 800 !important;
    transition: color 0.3s ease, stroke 0.3s ease !important;
}

.idx-portfolio .idx-sec-link:hover,
.idx-portfolio .idx-sec-link:hover span,
.idx-portfolio .idx-sec-link:hover svg {
    color: #C5A059 !important;
    stroke: #C5A059 !important;
}

/* Portfolio Card Inner Overlay & Text (Image Contrast Protection) */
.idx-port-grid {
    border-color: rgba(197, 160, 89, 0.3) !important;
}

.idx-port-overlay {
    background: linear-gradient(
        0deg,
        rgba(12, 56, 44, 0.95) 0%,
        rgba(12, 56, 44, 0.5) 50%,
        rgba(12, 56, 44, 0.05) 100%
    ) !important;
}

.idx-port-card:hover .idx-port-overlay {
    background: linear-gradient(
        0deg,
        rgba(12, 56, 44, 0.98) 0%,
        rgba(12, 56, 44, 0.65) 60%,
        rgba(12, 56, 44, 0.15) 100%
    ) !important;
}

.idx-port-content .idx-port-tag {
    background: #C5A059 !important;
    color: #0C382C !important;
}

.idx-port-content .idx-port-title {
    color: #FFFFFF !important;
}

.idx-port-content .idx-port-meta {
    color: rgba(255, 255, 255, 0.8) !important;
}

.idx-port-meta-dot {
    background: #C5A059 !important;
}
