:root {
    /* Brand palette — derived from the company logo (navy + gold) */
    --navy: #1a2740;
    --navy-light: #27395c;
    --accent: #c1a05a;
    --accent-dark: #a5843c;
    --accent-soft: #efe6d2;
    --muted: #6b7c93;
    --light-bg: #f5f7fa;
    --border: #e4e9f0;
}

* {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

html, body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    color: #1f2d3d;
    background: #fff;
    margin: 0;
}

a {
    text-decoration: none;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-navy {
    background: var(--navy);
    color: #fff;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-head .eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: .85rem;
    display: inline-block;
    margin-bottom: 8px;
}

.section-head h2 {
    font-weight: 800;
    color: var(--navy);
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.section-navy .section-head h2 {
    color: #fff;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-head .title-bar {
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn-accent {
    background: var(--accent);
    border: none;
    color: var(--navy);
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    transition: .2s;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light-accent {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 8px;
    transition: .2s;
}

.btn-outline-light-accent:hover {
    background: #fff;
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    transition: .2s;
}

.btn-navy:hover {
    background: var(--navy-light);
    color: #fff;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--navy);
    color: #cdd9e8;
    font-size: .85rem;
    padding: 8px 0;
}

.top-bar i {
    color: var(--accent);
    margin-left: 5px;
}

.social-top a {
    color: #cdd9e8;
    transition: .2s;
}

.social-top a:hover {
    color: var(--accent);
}

/* ---------- Navbar ---------- */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 18px rgba(10, 37, 64, .08);
    padding: 6px 0;
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 6px 14px !important;
    font-weight: 700;
    color: var(--navy) !important;
    white-space: nowrap;
    transition: .2s;
}

.lang-switch i { color: var(--accent); }

.lang-switch:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy) !important;
}

.lang-switch:hover i { color: var(--navy); }

.navbar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: var(--navy);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.navbar-brand .brand-text {
    font-weight: 800;
    color: var(--navy);
    font-size: 1.15rem;
}

.navbar-brand .brand-logo {
    height: 68px;
    width: auto;
    display: block;
}

@media (max-width: 575.98px) {
    .navbar-brand .brand-logo {
        height: 52px;
    }
}

.main-navbar .nav-link {
    color: var(--navy);
    font-weight: 600;
    margin: 0 6px;
    position: relative;
}

.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
    color: var(--accent);
}

.main-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 50%;
    transform: translateX(50%);
    width: 22px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(115deg, rgba(10, 37, 64, .92), rgba(10, 37, 64, .78)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff;
    padding: 120px 0;
}

.hero .eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: inline-block;
}

.hero h1 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #d7e1ee;
    max-width: 620px;
    margin-bottom: 30px;
}

.hero .hero-stats {
    margin-top: 50px;
    gap: 40px;
}

.hero .hero-stats .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero .hero-stats .lbl {
    color: #d7e1ee;
    font-size: .95rem;
}

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--accent);
    color: var(--navy);
    padding: 40px 0;
}

.stats-strip .stat-item {
    text-align: center;
}

.stats-strip .stat-item .num {
    font-size: 2.6rem;
    font-weight: 800;
}

.stats-strip .stat-item .lbl {
    font-weight: 600;
    font-size: 1rem;
}

.stats-strip .stat-item i {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

/* ---------- Cards ---------- */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 26px;
    height: 100%;
    transition: .25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10, 37, 64, .12);
    border-color: transparent;
}

.service-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(247, 168, 35, .14);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 18px;
    transition: .25s;
}

.service-card:hover .icon {
    background: var(--accent);
    color: #fff;
}

.service-card h4 {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 14px;
}

.service-card .more {
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
}

/* ---------- Project cards ---------- */
.project-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 280px;
    display: block;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

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

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, .92) 10%, rgba(10, 37, 64, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
}

.project-card .badge-cat {
    background: var(--accent);
    color: var(--navy);
    font-weight: 700;
    width: fit-content;
    margin-bottom: 8px;
}

.project-card h5 {
    font-weight: 700;
    margin-bottom: 4px;
}

.project-card .loc {
    color: #cdd9e8;
    font-size: .88rem;
}

/* ---------- Status badges ---------- */
.status-badge {
    font-weight: 700;
    font-size: .8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.status-completed { background: #e3f7ec; color: #1a8f4c; }
.status-inprogress { background: #fff3da; color: #c47e08; }
.status-planned { background: #e7f0fb; color: #2563a8; }
.status-onhold { background: #fde8e8; color: #c0392b; }

/* ---------- Why us ---------- */
.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}

.feature-item .ico {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-item h5 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

/* ---------- Clients ---------- */
.client-logo {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: .2s;
}

.client-logo:hover {
    box-shadow: 0 10px 24px rgba(10, 37, 64, .1);
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .75;
    transition: .2s;
}

.client-logo:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- News cards ---------- */
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: .25s;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10, 37, 64, .12);
}

.news-card .img-wrap {
    height: 200px;
    overflow: hidden;
}

.news-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.news-card:hover .img-wrap img {
    transform: scale(1.07);
}

.news-card .body {
    padding: 22px;
}

.news-card .meta {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card h5 {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-card p {
    color: var(--muted);
    font-size: .92rem;
}

/* ---------- Page header ---------- */
.page-header {
    background: linear-gradient(115deg, rgba(10, 37, 64, .93), rgba(10, 37, 64, .82)),
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
}

.page-header .breadcrumb a {
    color: var(--accent);
}

.page-header .breadcrumb-item.active {
    color: #d7e1ee;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #6e8198;
}

/* ---------- About ---------- */
.vmv-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    padding: 30px 24px;
    height: 100%;
}

.vmv-card .ico {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.vmv-card h4 {
    font-weight: 700;
    color: var(--navy);
}

.vmv-card p {
    color: var(--muted);
    margin: 0;
}

/* ---------- Certificate / equipment ---------- */
.cert-card, .equip-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    text-align: center;
}

.cert-card .ico {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.cert-card h6 {
    font-weight: 700;
    color: var(--navy);
}

.cert-card small, .equip-card small {
    color: var(--muted);
}

.equip-card .img-wrap {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.equip-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini media carousel inside an equipment card */
.equip-card .img-wrap .carousel,
.equip-card .img-wrap .carousel-inner,
.equip-card .img-wrap .carousel-item {
    height: 100%;
}

.equip-carousel .carousel-indicators {
    margin: 0 0 .35rem;
}

.equip-carousel .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: .7;
}

.equip-carousel .carousel-indicators .active {
    background: var(--accent);
    opacity: 1;
}

.equip-carousel .carousel-control-prev,
.equip-carousel .carousel-control-next {
    width: 22%;
    opacity: 0;
    transition: opacity .2s;
}

.equip-card:hover .equip-carousel .carousel-control-prev,
.equip-card:hover .equip-carousel .carousel-control-next {
    opacity: .9;
}

.equip-carousel .carousel-control-prev-icon,
.equip-carousel .carousel-control-next-icon {
    background-color: rgba(10, 37, 64, .55);
    border-radius: 50%;
    padding: 12px;
    background-size: 45%;
}

.equip-card h6 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

/* ---------- Contact ---------- */
.contact-info-card {
    background: var(--navy);
    color: #fff;
    border-radius: 14px;
    padding: 34px;
    height: 100%;
}

.contact-info-card .ci-item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-info-card .ci-item .ico {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-info-card .ci-item span {
    color: #cdd9e8;
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 34px;
}

.form-card .form-control {
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(247, 168, 35, .15);
}

.form-card label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

/* ---------- Detail pages ---------- */
.detail-img {
    border-radius: 14px;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.detail-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-meta-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.detail-meta-list li span:first-child {
    color: var(--muted);
}

.detail-meta-list li span:last-child {
    font-weight: 700;
    color: var(--navy);
}

.gallery-thumb {
    border-radius: 10px;
    height: 120px;
    width: 100%;
    object-fit: cover;
}

/* ---------- Project media carousel (images + videos) ---------- */
.project-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 44px rgba(10, 37, 64, .16);
    background: #0a1526;
}

.project-carousel .pc-media {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    background: #0a1526;
}

.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
    width: 9%;
    opacity: .85;
}

.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
    background-color: rgba(10, 37, 64, .55);
    border-radius: 50%;
    padding: 20px;
    background-size: 42%;
}

.project-carousel .carousel-indicators { margin-bottom: .6rem; }

.project-carousel .carousel-caption {
    background: linear-gradient(transparent, rgba(10, 37, 64, .9));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 24px 18px;
    text-align: right;
}

/* Thumbnail strip */
.pc-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pc-thumb {
    width: 92px;
    height: 64px;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: var(--navy);
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color .2s, transform .2s;
}

.pc-thumb:hover { transform: translateY(-2px); }
.pc-thumb.active { border-color: var(--accent); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pc-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.7rem;
    background: var(--navy);
}

@media (max-width: 575.98px) {
    .project-carousel .pc-media { height: 260px; }
    .pc-thumb { width: 72px; height: 52px; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: #c3cfde;
    padding: 34px 0 16px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.02rem;
}

.footer-text {
    color: #9fb1c6;
    font-size: .88rem;
    line-height: 1.7;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: #9fb1c6;
    transition: .2s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-contact li {
    margin-bottom: 8px;
    color: #9fb1c6;
    font-size: .88rem;
}

.footer-contact i {
    color: var(--accent);
    margin-left: 8px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.footer-social a:hover {
    background: var(--accent);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .1);
    margin: 22px 0 14px;
}

.footer-copy {
    color: #8195ac;
    font-size: .9rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 156px;
    left: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(193, 160, 90, .4);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

/* ---------- Floating contact buttons (WhatsApp + Call) ---------- */
.floating-contact {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-contact a {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 6px 18px rgba(10, 37, 64, .28);
    transition: transform .2s, box-shadow .2s;
}

.floating-contact a:hover {
    transform: scale(1.08);
    box-shadow: 0 9px 24px rgba(10, 37, 64, .38);
}

.floating-contact .fc-whatsapp { background: #25D366; color: #fff; }
.floating-contact .fc-call { background: var(--accent); color: var(--navy); }

@media (max-width: 575.98px) {
    .floating-contact { left: 14px; gap: 10px; }
    .floating-contact a { width: 46px; height: 46px; font-size: 1.3rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    /* Large gutters (g-5) create negative row margins the container padding can't absorb,
       causing horizontal overflow on small screens. Shrink them on mobile/tablet. */
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    /* The hero col has no base col class; keep its content wrapping cleanly. */
    .hero .col-lg-9 { width: 100%; max-width: 100%; }
    .hero h1, .hero p, .hero .eyebrow { overflow-wrap: anywhere; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 72px 0; }
    .hero p { font-size: 1.05rem; }
    .hero .hero-stats { gap: 26px; margin-top: 34px; }
    .hero .hero-stats .num { font-size: 1.8rem; }
    .section { padding: 56px 0; }
    .section-head h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .hero { padding: 58px 0; }
    .hero h1 { font-size: 1.6rem; line-height: 1.35; }
    .hero p { font-size: 1rem; }
    .hero .btn-lg { padding: 10px 18px; font-size: .95rem; }
    .hero .hero-stats { gap: 16px 0; margin-top: 26px; width: 100%; }
    .hero .hero-stats > div { flex: 0 0 50%; }
    .hero .hero-stats .num { font-size: 1.5rem; }
    .hero .hero-stats .lbl { font-size: .82rem; }
    .section-head h2 { font-size: 1.5rem; }
}
