:root {
    --dark-green: #052316;
    --darker-green: #031a0f;
    --gold: #b68a3d;
    --gold-dark: #a37a34;
    --light-bg: #f5f7f6;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
    --brand-green: #063d31;
    --brand-green-dark: #032d25;
    --brand-green-soft: #0c5142;
    --brand-gold: #c79532;
    --brand-gold-light: #d9ad52;
    --brand-beige: #f6f3ed;
    --brand-white: #ffffff;
    --brand-text: #173b33;
    --brand-muted: #66736f;
    --brand-border: rgba(6, 61, 49, 0.12);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--white);
    color: #444;
    line-height: 1.7;
}

a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--darker-green);
    font-size: 13px;
}
.top-bar-link {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    text-decoration: none;
}
.top-bar-link:hover { color: var(--gold); }

/* ===== Header/Nav ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-green);
}
.navbar-brand:hover { color: var(--gold); }
.navbar-brand img { max-height: 40px; width: auto; }

.nav-link {
    color: var(--dark-green);
    font-weight: 500;
    font-size: 14px;
    padding: 4px 0;
    border-radius: 0;
    background: transparent !important;
    border: none;
    transition: var(--transition);
}
.nav-link:hover { color: var(--gold) !important; }
.nav-link.active {
    color: var(--gold) !important;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: none;
    font-weight: 700;
    transition: var(--transition);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); }

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 500;
    border-radius: 8px;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }

/* ===== Hero Slider ===== */
.hero-slide { height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; }

/* ===== Section ===== */

/* ===== Section Headers ===== */
.section-heading { max-width: 760px; margin-inline: auto; margin-block-end: 42px; text-align: center; }
.section-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-gold); font-size: 0.9rem; font-weight: 700; }
.section-title { margin-block: 10px 0; color: var(--brand-green); font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 800; }
.section-description { margin-block-start: 12px; color: var(--brand-muted); line-height: 1.8; }
.section-dark .section-title { color: #fff; }
.section-dark .section-description { color: rgba(255,255,255,0.72); }

/* ===== Services Section ===== */
#section-services { background: #fff; padding-block: 75px; }
.services-header-label { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.services-header-label .line { height: 1px; width: 48px; background: var(--brand-gold); }
.services-header-label span { color: var(--brand-gold); font-weight: 700; font-size: 16px; }
.services-main-title { font-size: clamp(24px,3vw,36px); font-weight: 700; color: var(--brand-green); text-align: center; margin-bottom: 42px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 991px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .services-grid { grid-template-columns: 1fr; } }

.service-card-ex {
    position: relative; min-height: 270px; padding: 28px 24px;
    border: 1px solid var(--brand-border); border-radius: 14px; background: #fff;
    box-shadow: 0 8px 28px rgba(3,45,37,0.05); transition: 0.25s ease;
}
.service-card-ex::before {
    position: absolute; top: 0; right: 24px; left: 24px; height: 3px;
    content: ""; border-radius: 0 0 10px 10px; background: var(--brand-gold);
}
.service-card-ex:hover { transform: translateY(-6px); border-color: rgba(199,149,50,0.55); box-shadow: 0 18px 42px rgba(3,45,37,0.12); }
.service-card-ex .icon-wrap {
    display: grid; width: 58px; height: 58px; place-items: center;
    margin-block-end: 20px; border-radius: 14px; background: rgba(6,61,49,0.08); color: var(--brand-green); font-size: 27px;
}
.service-card-ex h3 { min-height: 52px; margin-block-end: 12px; color: var(--brand-green); font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.service-card-ex p { color: var(--brand-muted); line-height: 1.8; }
.service-card-ex .read-link { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 12px; color: var(--brand-green); font-weight: 700; text-decoration: none; }

/* ===== Stats Horizontal Bar ===== */
.stats-horizontal-bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; background: var(--dark-green); border-radius: 10px; padding: 20px 32px; margin-bottom: 24px; gap: 16px; }
.stat-h-item { text-align: center; padding: 8px 16px; flex: 1; min-width: 120px; }
.stat-h-val { display: block; font-size: 28px; font-weight: 700; color: var(--gold); }
.stat-h-label { display: block; font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.stat-h-divider { width: 1px; height: 40px; background: rgba(197,160,89,0.25); }

/* ===== Sectors Section ===== */
#section-sectors { background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green)); color: #fff; padding-block: 75px; }
.sector-card { height: 100%; padding: 28px 20px; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; background: #fff; color: var(--brand-text); transition: 0.25s ease; text-align: center; box-shadow: 0 8px 26px rgba(3,45,37,0.12); }
.sector-card:hover { transform: translateY(-5px); border-color: rgba(215,173,82,0.7); box-shadow: 0 18px 42px rgba(3,45,37,0.2); }
.sector-card i { display: block; margin-block-end: 15px; color: var(--brand-green); font-size: 30px; }
.sector-card h3, .sector-card h6 { color: var(--brand-green); font-weight: 700; margin-top: 14px; }
.sector-card p { color: var(--brand-muted); }
.sector-card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 2px solid var(--brand-gold);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    object-fit: cover;
}

/* ===== Projects Section ===== */
#section-projects { background: var(--brand-beige); padding-block: 75px; }
.project-card { position: relative; overflow: hidden; min-height: 280px; border: 0; border-radius: 15px; background: var(--brand-green); box-shadow: 0 12px 35px rgba(3,45,37,0.12); }
.project-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; transition: transform 0.45s ease; }
.project-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to top, rgba(3,45,37,0.92), rgba(3,45,37,0.08) 65%); }
.project-card:hover img { transform: scale(1.06); }
.project-body { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 25px; }
.project-body h3, .project-body h6 { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.6; }
.bg-brand-green { background: var(--brand-green); }
.project-card .bg-brand-green i { position: relative; z-index: 2; }

/* ===== Methodology Section ===== */
#section-methodology { background: #fff; padding-block: 75px; }
.methodology-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.methodology-track::before { position: absolute; top: 44px; right: 8%; left: 8%; height: 2px; content: ""; background: rgba(199,149,50,0.35); }
.methodology-card { position: relative; z-index: 2; padding: 20px 16px; text-align: center; }
.methodology-card .step-number { display: grid; width: 58px; height: 58px; place-items: center; margin-inline: auto; margin-block-end: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 2px var(--brand-gold); color: var(--brand-gold-light); font-weight: 800; font-size: 18px; }
.methodology-card h3, .methodology-card h6 { color: var(--brand-green); font-weight: 700; }
.methodology-card p { color: var(--brand-muted); line-height: 1.7; }
@media (max-width: 767px) { .methodology-track { grid-template-columns: 1fr; } .methodology-track::before { display: none; } }

/* ===== Team Section ===== */
#section-team { background: var(--brand-beige); padding-block: 75px; }
.team-card { height: 100%; padding: 30px 22px; border: 1px solid var(--brand-border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(3,45,37,0.06); transition: 0.25s ease; text-align: center; }
.team-card:hover { transform: translateY(-5px); }
.team-avatar-fallback { display: grid; width: 82px; height: 82px; place-items: center; margin-inline: auto; border-radius: 50%; background: var(--brand-green); color: var(--brand-gold-light); font-size: 1.5rem; font-weight: 800; }
.team-card h3, .team-card h6 { color: var(--brand-green); margin-top: 16px; }
.team-card p { color: var(--brand-muted); }

/* ===== Testimonials Section ===== */
#section-testimonials { background: var(--brand-green-dark); color: #fff; padding-block: 75px; }
.testimonial-card { position: relative; height: 100%; padding: 32px; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.07); color: #fff; }
.testimonial-card::before { position: absolute; top: 18px; left: 22px; content: "\201C"; color: var(--brand-gold); font-family: serif; font-size: 4rem; line-height: 1; opacity: 0.65; }
.testimonial-card p { position: relative; z-index: 2; color: rgba(255,255,255,0.84); line-height: 1.9; }
.testimonial-card h6 { color: var(--brand-gold-light); }
.testimonial-card small { color: rgba(255,255,255,0.58) !important; }

/* ===== Clients Section ===== */
#section-clients { background: #fff; padding-block: 65px; }
.client-logo { display: grid; min-height: 100px; place-items: center; padding: 18px; border: 1px solid var(--brand-border); border-radius: 12px; background: #fff; filter: grayscale(1); opacity: 0.75; transition: 0.25s ease; }
.client-logo:hover { filter: grayscale(0); opacity: 1; border-color: rgba(199,149,50,0.55); }
.client-logo img { max-width: 100%; max-height: 65px; object-fit: contain; }
.client-name-fallback { color: var(--brand-green); font-size: 0.95rem; font-weight: 700; text-align: center; }

/* ===== FAQ Section ===== */
#section-faq { background: var(--brand-beige); padding-block: 75px; }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 55px; align-items: start; }
@media (max-width: 767px) { .faq-layout { grid-template-columns: 1fr; gap: 30px; } }
.accordion-item { margin-block-end: 12px; overflow: hidden; border: 1px solid var(--brand-border) !important; border-radius: 10px !important; background: #fff; }
.accordion-button { color: var(--brand-green); font-weight: 700; }
.accordion-button:not(.collapsed) { background: var(--brand-green); color: #fff; box-shadow: none; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }

/* ===== Articles Section ===== */
#section-articles { background: #fff; padding-block: 75px; }
.article-card { overflow: hidden; height: 100%; border: 1px solid var(--brand-border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(3,45,37,0.06); transition: 0.25s ease; }
.article-card:hover { transform: translateY(-5px); }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-body { padding: 24px; }
.article-body h3, .article-body h6 { color: var(--brand-green); font-weight: 700; line-height: 1.6; }

/* ===== Consultation CTA Section ===== */
#section-consultation { position: relative; overflow: hidden; padding-block: 80px; background: linear-gradient(135deg, rgba(3,45,37,0.98), rgba(6,61,49,0.94)); color: #fff; text-align: center; }
#section-consultation h2 { color: #fff; font-size: clamp(2rem, 3vw, 3rem); }
#section-consultation .section-subtitle,
#section-consultation p { color: rgba(255,255,255,0.75) !important; }
#section-consultation .section-description { color: rgba(255,255,255,0.75) !important; }
#section-consultation .btn { min-width: 210px; padding: 13px 28px; border: 0; border-radius: 8px; background: var(--brand-gold); color: #fff; font-weight: 700; }
#section-consultation .btn:hover { background: var(--brand-gold-light); }
.text-gold { color: var(--gold); }



/* ===== Footer ===== */
.site-footer {
    background: var(--darker-green);
    color: rgba(255,255,255,0.7);
}
.footer-link { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-link:hover { color: var(--gold); }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--white); }

.border-white-10 { border-color: rgba(255,255,255,0.1) !important; }

/* ===== Page Hero ===== */
.page-hero { background: linear-gradient(135deg,var(--brand-green-dark),var(--brand-green)); }
.page-hero .breadcrumb {
    --bs-breadcrumb-divider: "/";
    background: transparent; padding: 0; margin: 0;
}
.page-hero .breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, "/") !important;
    padding-inline: 8px;
    color: rgba(255,255,255,0.4) !important;
    font-weight: 400;
}
.page-hero .breadcrumb-item.active span { color: #fff; }

/* ===== Internal Pages ===== */
.page-banner {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 3px solid var(--brand-gold);
    box-shadow: 0 10px 30px rgba(3,45,37,0.15);
    max-height: 340px;
    object-fit: cover;
}
.inner-content { padding-block: 55px; }
.inner-content h1, .inner-content h2 { color: var(--brand-green); }
.inner-content h3 { color: var(--brand-green); font-weight: 700; }
.inner-content p { color: var(--brand-muted); line-height: 1.9; }
.inner-content .section-divider { width: 60px; height: 3px; background: var(--brand-gold); margin-block: 20px; border-radius: 2px; }

/* FAQ */
.accordion-item { border: 1px solid var(--brand-border) !important; margin-bottom: 12px; border-radius: 10px !important; background: #fff; }
.accordion-button { color: var(--brand-green); font-weight: 700; }
.accordion-button:not(.collapsed) { background: var(--brand-green); color: #fff; box-shadow: none; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-slide { height: 60vh; min-height: 400px; }
    .hero-content h1 { font-size: 30px; }
    .section-title { font-size: 26px; }
}

@media (max-width: 575.98px) {
    .hero-slide { height: 50vh; min-height: 350px; }
    .hero-content h1 { font-size: 24px; }
    .home-section { padding: 40px 0; }
    .service-card { padding: 24px 16px; }
    .stat-value { font-size: 28px; }
}

/* ===== Products ===== */
.product-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-card .card-title {
    color: var(--brand-green);
    font-weight: 700;
    font-size: 1.05rem;
}
.thumb-img {
    transition: all 0.2s ease;
}
.thumb-img:hover,
.thumb-img.active {
    border-color: var(--gold) !important;
    opacity: 0.85;
}
.product-content {
    line-height: 2;
    color: var(--brand-muted);
}

/* ===== Header Dropdown Menu ===== */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
}
.dropdown-item {
    font-size: 13px;
    padding: 8px 16px;
    color: var(--brand-green);
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: rgba(199,149,50,0.08);
    color: var(--dark-green);
}
.dropdown-item i {
    color: var(--gold);
    font-size: 14px;
}
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: -8px;
    margin-top: 0;
}
[dir="rtl"] .dropdown-submenu .dropdown-menu {
    right: 100%;
    margin-right: 2px;
    left: auto;
}
[dir="ltr"] .dropdown-submenu .dropdown-menu {
    left: 100%;
    margin-left: 2px;
    right: auto;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-submenu .dropdown-toggle::after {
    display: none;
}
@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0 16px;
        margin: 0;
        display: none;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: none;
    }
}

/* ===== Methodology (6 items) ===== */
.methodology-track {
    grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 992px) {
    .methodology-track {
        grid-template-columns: repeat(6, 1fr);
    }
}
