:root {
  --blue: #063a70;
  --blue2: #0b5ca8;
  --navy: #04284f;
  --yellow: #ffbf19;
  --orange: #f28c18;
  --ink: #17212b;
  --muted: #5f6872;
  --line: #dce3ea;
  --pale: #f4f7fa;
  --white: #fff;
  --shadow: 0 16px 40px rgba(8, 29, 54, 0.08);
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
  box-shadow: 0 8px 24px rgba(8, 29, 54, 0.05);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
}
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.brand img {
  width: auto;
  height: 82px;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-tools a {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #f4f7fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  color: transparent;
  font-size: 0;
}
.menu-toggle::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 14px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 8px 0 var(--blue), 0 16px 0 var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}
.nav > a,
.nav-parent {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: #314150;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.nav > a:hover,
.nav > a.active,
.nav-parent:hover,
.nav-dropdown.active > .nav-parent {
  color: var(--blue);
  border-bottom-color: var(--yellow);
}
.nav-dropdown { position: relative; }
.nav-parent::after { content: " ▾"; font-size: 11px; }

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(920px, 86vw);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  z-index: 50;
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown.open .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  display: grid;
}
.mega-menu h3 {
  font-size: 14px;
  color: var(--blue);
  margin: 0 0 10px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 8px;
}
.mega-menu a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 0;
}
.mega-menu a:hover { color: var(--blue); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 11px 16px;
  border-radius: 4px;
  border-bottom: 0 !important;
}
.nav-cta:hover { background: var(--blue2); }

.hero.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #061f3b;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-carousel-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-carousel .hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(760px, 100%);
  padding: 88px var(--pad);
  color: #fff;
  background: linear-gradient(90deg, rgba(5, 31, 62, .94) 0%, rgba(7, 61, 111, .72) 62%, transparent 100%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}
.eyebrow.blue { color: var(--blue); }
.eyebrow.yellow { color: var(--yellow); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; overflow-wrap: break-word; }
h1 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.04em; }
h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; }
h3 { font-size: 20px; }
.hero-overlay > *,
.inner-hero > * { min-width: 0; max-width: 100%; }
.hero p:not(.eyebrow),
.inner-hero p { font-size: 18px; max-width: min(620px, 100%); margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { padding: 13px 22px; }
.button:hover { transform: translateY(-2px); }
.button-yellow { background: var(--yellow); color: #17212b; }
.button-yellow:hover { background: #ffd056; }
.button-outline { border-color: #fff; color: #fff; background: transparent; }
.button-outline:hover { background: #fff; color: var(--blue); }
.button-blue { background: var(--blue); color: #fff; }
.button-blue:hover { background: var(--blue2); }
.button-green { background: #25d366; color: #fff; }
.hero-carousel-controls {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-carousel-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(6, 47, 93, .8);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.hero-carousel-button:hover { background: var(--orange); }
.hero-carousel-dots { display: flex; gap: 8px; }
.hero-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d3dce5;
  cursor: pointer;
}
.hero-carousel-dots button.is-active { background: var(--yellow); }

.inner-hero {
  padding: 72px var(--pad) 80px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 58, 112, .94), rgba(12, 95, 169, .82)),
    url("../images/tamkeen-mep-work.jpg") center/cover no-repeat;
}
.breadcrumbs {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #d7e4f0;
}
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: var(--yellow); }

.section { padding: 80px var(--pad); }
.pale { background: var(--pale); }
.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading p:last-child { color: var(--muted); }

.service-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.card-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.service-card,
.info-card {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  scroll-margin-top: 140px;
}
.service-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(8, 29, 54, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card > img,
.info-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}
.service-card > div,
.info-card > div { padding: 22px 22px 26px; flex: 1; }
.card-number { font-size: 12px; color: var(--orange); font-weight: 800; }
.service-card h2,
.service-card h3,
.info-card h2,
.info-card h3 { color: var(--blue); margin-top: 6px; font-size: 20px; }
.service-card p,
.info-card p { color: var(--muted); margin: 0 0 12px; }
.service-card a,
.info-card a,
.text-link { font-weight: 800; color: var(--blue); }
.text-link:hover,
.service-card a:hover,
.info-card a:hover { color: var(--blue2); }

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}
.flow article {
  background: #fff;
  border-top: 3px solid var(--yellow);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.flow b { display: block; color: var(--orange); margin-bottom: 8px; }
.flow h3 { font-size: 16px; margin: 0; color: var(--blue); }

.cta-band {
  padding: 58px var(--pad);
  background: linear-gradient(120deg, var(--navy), var(--blue2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { margin: 0 0 8px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  scroll-margin-top: 140px;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.content-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); }

.topic-block {
  scroll-margin-top: 140px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.topic-block:last-child { border-bottom: 0; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.value-grid article {
  background: #fff;
  border-top: 3px solid var(--yellow);
  padding: 26px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.value-grid h2,
.value-grid h3 { color: var(--blue); font-size: 20px; }
.value-grid p { color: var(--muted); margin: 0; }
.value-grid article { scroll-margin-top: 140px; }

.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.project-card dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.project-card dt { font-weight: 800; color: var(--blue); }
.project-card dd { margin: 0; color: var(--muted); }
.placeholder-note {
  background: #fff6d8;
  border-left: 4px solid var(--yellow);
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 18px;
}

.contact-layout,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.contact-grid article {
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--yellow);
  padding: 28px;
  border-radius: 10px;
}
.contact-grid h2 { font-size: 22px; color: var(--blue); }
.contact-grid a { color: var(--blue); font-weight: 800; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lede { color: var(--muted); max-width: 720px; margin: 0 0 28px; }
#quotation { scroll-margin-top: 140px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 22px; }
.enquiry-form,
.quote-form {
  background: var(--pale);
  padding: 32px;
  display: grid;
  gap: 14px;
  border-radius: 12px;
  max-width: 980px;
}
.enquiry-form .form-row,
.quote-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.enquiry-form label,
.quote-form label { font-size: 13px; font-weight: 800; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea,
.quote-form input,
.quote-form select,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #cbd5df;
  background: #fff;
  border-radius: 6px;
}
.enquiry-form .button,
.quote-form .button { justify-self: start; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.map-section { max-width: 1240px; margin: 0 auto; }
.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 10px;
  margin-top: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.split,
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  scroll-margin-top: 140px;
}
.split img,
.content-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.plain-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.plain-list li { margin: 8px 0; }

.footer-logo {
  width: auto;
  height: 92px;
  max-width: 240px;
  object-fit: contain;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-footer {
  background: #101a24;
  color: #d3d9df;
  padding: 56px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { display: block; color: #d3d9df; margin: 5px 0; }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { margin: 0 0 12px; }
.copyright {
  background: #0a1118;
  color: #aeb7c0;
  padding: 16px var(--pad);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  font-size: 13px;
  font-weight: 800;
}
.whatsapp-float:hover { transform: translateY(-2px); background: #1ebe5d; }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 18, 32, .88);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  color: var(--blue);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .header-tools .nav-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(78vh, 720px);
    overflow: auto;
    box-shadow: 0 16px 24px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav > a,
  .nav-parent {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    width: 100%;
  }
  .nav-dropdown { width: 100%; }
  .mega-menu {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    padding: 8px 0 12px 12px;
  }
  .nav-dropdown.open .mega-menu,
  .nav-dropdown:hover .mega-menu,
  .nav-dropdown:focus-within .mega-menu { display: none; }
  .nav-dropdown.open .mega-menu { display: grid; }
  .nav .nav-cta { margin-top: 12px; text-align: center; display: flex; }
  .flow,
  .card-grid.cols-6,
  .card-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .service-grid,
  .card-grid,
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .two-col,
  .split,
  .contact-layout,
  .contact-grid,
  .enquiry-form .form-row,
  .quote-form .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .header-top { min-height: 86px; }
  .brand img { height: 68px; }
  .hero.hero-carousel,
  .hero-carousel .hero-overlay { min-height: 540px; }
  .hero-carousel .hero-overlay {
    width: 100%;
    padding: 64px 24px 92px;
    background: linear-gradient(180deg, rgba(5,31,62,.9), rgba(7,61,111,.72));
  }
  .inner-hero { padding: 56px 24px; }
  .hero-carousel-controls { right: 24px; bottom: 20px; }
  .content-image,
  .split img { height: 240px; }
}

@media (max-width: 560px) {
  .section { padding: 52px 20px; }
  .cta-band,
  .site-footer,
  .copyright { padding-left: 20px; padding-right: 20px; }
  .service-grid,
  .card-grid,
  .value-grid,
  .flow,
  .site-footer { grid-template-columns: 1fr; }
  .cta-band { display: block; }
  .cta-actions { margin-top: 18px; }
  h1 { font-size: 28px; }
  .hero p:not(.eyebrow),
  .inner-hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .project-card dl { grid-template-columns: 1fr; }
}
