:root {
  --ink: #172126;
  --muted: #637077;
  --paper: #f6f4ef;
  --white: #ffffff;
  --teal: #0a6765;
  --steel: #335b73;
  --red: #d0182f;
  --line: rgba(23, 33, 38, 0.16);
  --shadow: 0 24px 70px rgba(20, 35, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", "Inter", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  align-items: center;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 94px;
  inset: 0 0 auto;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  position: fixed;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  direction: ltr;
  display: flex;
  gap: 14px;
  min-width: 285px;
}

.brand img {
  background: transparent;
  border: 0;
  height: 82px;
  object-fit: contain;
  width: 82px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Inter", sans-serif;
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.5vw, 34px);
}

.main-nav a {
  color: #243238;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--teal);
}

.header-whatsapp {
  align-items: center;
  background: #0a6765;
  color: var(--white);
  display: inline-flex;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.header-whatsapp svg {
  height: 19px;
  width: 19px;
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 24px;
}

.hero {
  min-height: 94vh;
  overflow: hidden;
  padding: 180px clamp(18px, 5vw, 72px) 52px;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  background: #111;
  z-index: 0;
}

.hero-slide {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 5s ease;
  width: 100%;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 17, 18, 0.9) 0%, rgba(12, 17, 18, 0.56) 42%, rgba(12, 17, 18, 0.16) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 38%);
  z-index: 1;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 900px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.primary-action,
.secondary-action,
.whatsapp-action {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 11px 22px;
}

.primary-action {
  background: var(--red);
  color: var(--white);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.whatsapp-action {
  background: #0a6765;
  color: var(--white);
}

.hero-panel {
  background: rgba(246, 244, 239, 0.94);
  bottom: 36px;
  box-shadow: var(--shadow);
  color: var(--ink);
  left: clamp(18px, 5vw, 72px);
  max-width: 360px;
  padding: 24px;
  position: absolute;
  z-index: 3;
}

.hero-panel span,
.hero-panel strong,
.hero-panel p {
  display: block;
}

.hero-panel span {
  color: var(--red);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 22px;
  line-height: 1.25;
  margin: 8px 0;
}

.hero-panel p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

section:not(.hero) {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
}

h2 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.16;
  margin: 0;
}

.intro > p,
.split-copy p,
.section-head > p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.leadership {
  align-items: center;
  background: #eef2ef;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(280px, 0.68fr) minmax(300px, 1fr);
}

.leader-photo {
  background: var(--ink);
  box-shadow: var(--shadow);
  max-width: 460px;
  overflow: hidden;
  width: 100%;
}

.leader-photo img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.leader-copy {
  max-width: 720px;
}

.leader-copy h2 {
  font-family: "Inter", "Cairo", sans-serif;
  margin-bottom: 10px;
}

.leader-copy strong {
  color: var(--red);
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.leader-copy p:last-child {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}

.metrics {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 0;
  padding-top: 0;
}

.metrics div {
  background: rgba(255, 255, 255, 0.055);
  min-height: 170px;
  padding: 34px;
}

.metrics strong {
  color: #eef7f5;
  display: block;
  font-family: "Inter", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.metrics span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-top: 14px;
}

.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid article {
  background: #f2f4f1;
  border-top: 4px solid var(--red);
  min-height: 190px;
  padding: 28px;
}

.testimonial-grid p {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.contractors {
  background: #dde6e3;
}

.contractors h2 {
  margin-bottom: 28px;
}

.contractor-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.contractor-strip span {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(51, 91, 115, 0.18);
  color: #243238;
  display: flex;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 86px;
  padding: 14px;
  text-align: center;
}

.profile-download {
  align-items: center;
  background: #eef2ef;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.profile-download div {
  max-width: 780px;
}

.profile-download p:last-child {
  color: var(--muted);
  font-size: 18px;
  margin: 16px 0 0;
}

.profile-download a {
  align-items: center;
  background: var(--red);
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Inter", "Cairo", sans-serif;
  font-weight: 800;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
}

.profile-download svg {
  height: 21px;
  width: 21px;
}

.split-section {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 250px;
  padding: 28px;
}

.service-grid svg {
  color: var(--teal);
  height: 34px;
  width: 34px;
}

.service-grid h3,
.timeline h3 {
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 23px;
  margin: 22px 0 8px;
}

.service-grid p,
.timeline p {
  color: var(--muted);
  margin: 0;
}

.markets {
  background: #dde6e3;
}

.market-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.market-row span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(51, 91, 115, 0.18);
  color: #243238;
  font-family: "Inter", "Cairo", sans-serif;
  font-weight: 800;
  padding: 12px 16px;
}

.projects-section {
  background: var(--white);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.project-controls {
  direction: ltr;
  display: flex;
  gap: 8px;
}

.icon-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.project-stage {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(320px, 1.2fr) minmax(270px, 0.8fr);
}

.project-feature {
  background: var(--ink);
  color: var(--white);
  min-height: 610px;
  overflow: hidden;
  position: relative;
}

.project-feature img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.project-feature::after {
  background: linear-gradient(0deg, rgba(7, 12, 14, 0.86) 0%, rgba(7, 12, 14, 0.05) 58%);
  content: "";
  inset: 0;
  position: absolute;
}

.project-feature div {
  bottom: 0;
  padding: 34px;
  position: absolute;
  z-index: 1;
}

.project-feature p {
  color: #a4d7cf;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.project-feature h3 {
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 14px;
}

.project-feature span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 18px;
  max-width: 720px;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.project-card {
  background: #f2f4f1;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.project-card:focus {
  border-color: rgba(208, 24, 47, 0.45);
  box-shadow: 0 18px 42px rgba(20, 35, 40, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.project-card p {
  color: var(--teal);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.project-card h3 {
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 19px;
  line-height: 1.28;
  margin: 0 0 16px;
}

.project-card dl {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

.project-card dl div {
  border-top: 1px solid var(--line);
  display: block;
  padding-top: 10px;
}

.project-card dt {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.project-card dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.project-card button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-family: "Inter", "Cairo", sans-serif;
  font-weight: 800;
  justify-content: center;
  margin-top: 16px;
  min-height: 42px;
  padding: 0 14px;
  width: 100%;
}

.project-thumb {
  align-items: center;
  background: #f2f4f1;
  border: 1px solid transparent;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 112px 1fr;
  min-height: 104px;
  padding: 10px;
  text-align: inherit;
}

.project-thumb.is-selected {
  border-color: var(--red);
  box-shadow: inset 5px 0 0 var(--red);
}

.project-thumb img {
  aspect-ratio: 16 / 10;
  height: 84px;
  object-fit: cover;
  width: 112px;
}

.project-thumb strong,
.project-thumb span {
  display: block;
}

.project-thumb strong {
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 15px;
  line-height: 1.3;
}

.project-thumb span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.process {
  background: #243238;
  color: var(--white);
}

.process .section-head > p,
.process .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.timeline article {
  border-top: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.07);
  min-height: 230px;
  padding: 28px;
}

.timeline span {
  color: #94cfc6;
  font-family: "Inter", sans-serif;
  font-size: 38px;
  font-weight: 800;
}

.credentials {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(300px, 0.88fr) minmax(320px, 1.12fr);
}

.project-data-showcase {
  background: #f6f4ef;
}

.project-data-showcase .section-head > p {
  max-width: 520px;
}

.project-data-list {
  display: grid;
  gap: 28px;
}

.project-data-list .credentials {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 42px);
}

.project-data-list .credentials img {
  order: -1;
}

.project-data-button {
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-family: "Inter", "Cairo", sans-serif;
  font-weight: 800;
  margin-top: 22px;
  min-height: 46px;
  padding: 0 18px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

dl div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 130px 1fr;
  padding-bottom: 12px;
}

dt {
  color: var(--red);
  font-weight: 800;
}

dd {
  color: var(--muted);
  margin: 0;
}

.credentials img {
  box-shadow: var(--shadow);
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.certificates {
  background: #eef2ef;
}

.certificate-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
}

.certificate-grid img {
  background: var(--white);
  box-shadow: 0 18px 44px rgba(20, 35, 40, 0.12);
  height: 560px;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.contact {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 29, 33, 0.92), rgba(16, 29, 33, 0.72)),
    url("assets/project-almasa-new-alamein.jpg?v=20260615c") center / cover;
  color: var(--white);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 460px);
}

.contact .section-kicker,
.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 28px;
}

.contact-card a,
.contact-card p {
  align-items: center;
  border-bottom: 1px solid var(--line);
  direction: ltr;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin: 0;
  min-height: 58px;
  text-align: left;
}

.contact-card .contact-whatsapp {
  background: #0a6765;
  border-bottom: 0;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 8px;
  padding: 0 14px;
}

.contact-card .contact-whatsapp svg {
  color: var(--white);
}

.contact-card p {
  border-bottom: 0;
}

.contact-people {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 12px 0;
}

.contact-people article,
.contact-departments article {
  align-items: flex-start;
  background: #f2f4f1;
  border: 1px solid var(--line);
  direction: ltr;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  text-align: left;
}

.contact-lead {
  background: #eef5f3;
}

.contact-departments {
  display: grid;
  gap: 12px;
  grid-template-areas: "mechanical electrical";
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-mechanical {
  grid-area: mechanical;
}

.contact-electrical {
  grid-area: electrical;
}

.contact-people article > svg,
.contact-departments article > svg {
  color: var(--teal);
  flex: 0 0 auto;
  margin-top: 3px;
}

.contact-avatar {
  aspect-ratio: 1;
  border: 2px solid rgba(10, 103, 101, 0.18);
  border-radius: 50%;
  flex: 0 0 42px;
  height: 42px;
  object-fit: cover;
  object-position: center top;
  width: 42px;
}

.contact-people strong,
.contact-people span,
.contact-people a,
.contact-departments strong,
.contact-departments span,
.contact-departments a {
  display: block;
}

.contact-people strong,
.contact-departments strong {
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.contact-people span,
.contact-departments span {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 8px;
}

.contact-people a,
.contact-departments a {
  border: 0;
  color: var(--teal);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  min-height: 0;
  padding: 0;
  word-break: break-word;
}

.contact-people a + a,
.contact-departments a + a {
  color: var(--muted);
  font-weight: 700;
  margin-top: 5px;
}

.contact-card svg {
  color: var(--teal);
  flex: 0 0 auto;
}

.site-footer {
  align-items: center;
  background: #10191d;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

.site-footer strong {
  color: var(--white);
  font-family: "Inter", sans-serif;
}

.site-footer a,
.site-footer button {
  background: transparent;
  border: 0;
  color: #9bd2ca;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  padding: 0 4px;
  position: relative;
  text-transform: none;
  z-index: 45;
}

.modal-open {
  overflow: hidden;
}

.project-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 60;
}

.project-modal.is-open {
  display: block;
}

.project-modal-backdrop {
  background: rgba(11, 18, 20, 0.72);
  inset: 0;
  position: absolute;
}

.project-modal-panel {
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: 1080px;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 48px);
}

.project-modal-close {
  align-items: center;
  background: var(--red);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  left: 16px;
  position: absolute;
  top: 16px;
  width: 44px;
  z-index: 2;
}

.project-modal-gallery {
  background: #10191d;
  display: grid;
  gap: 8px;
  grid-template-rows: 1fr 0.55fr;
  min-height: 560px;
  padding: 8px;
}

.project-modal-gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-modal-copy {
  padding: clamp(28px, 5vw, 52px);
}

.project-modal-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
}

.project-modal-copy dl div {
  grid-template-columns: 160px 1fr;
}

.chatbot {
  bottom: 22px;
  direction: rtl;
  left: 22px;
  position: fixed;
  z-index: 40;
}

.chatbot-toggle {
  align-items: center;
  background: var(--red);
  border: 0;
  box-shadow: 0 18px 38px rgba(20, 35, 40, 0.24);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-family: "Cairo", "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
}

.chatbot-toggle svg,
.chatbot-close svg,
.chatbot-form svg {
  height: 20px;
  width: 20px;
}

.chatbot-window {
  background: var(--white);
  border: 1px solid var(--line);
  bottom: 70px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: none;
  left: 0;
  overflow: hidden;
  position: absolute;
  width: min(360px, calc(100vw - 36px));
}

.chatbot.is-open .chatbot-window {
  display: block;
}

.chatbot-head {
  align-items: center;
  background: #172126;
  color: var(--white);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.chatbot-head strong,
.chatbot-head span {
  display: block;
}

.chatbot-head strong {
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 15px;
}

.chatbot-head span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.chatbot-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  max-width: 88%;
  padding: 10px 12px;
}

.chat-message.bot {
  align-self: flex-start;
  background: #eef2ef;
}

.chat-message.user {
  align-self: flex-end;
  background: #172126;
  border-color: #172126;
  color: var(--white);
}

.chatbot-suggestions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.chatbot-suggestions button {
  background: #f2f4f1;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-family: "Cairo", "Inter", Arial, sans-serif;
  font-weight: 800;
  padding: 8px 10px;
}

.chatbot-form {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 48px;
}

.chatbot-form input {
  border: 0;
  color: var(--ink);
  font-family: "Cairo", "Inter", Arial, sans-serif;
  font-size: 14px;
  min-width: 0;
  outline: 0;
  padding: 14px;
}

.chatbot-form button {
  align-items: center;
  background: var(--teal);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.chatbot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.chatbot-actions a {
  background: #243238;
  color: var(--white);
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.chatbot-actions a:first-child {
  background: #0a6765;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 0;
    inset: 94px 0 auto;
    padding: 12px 18px 22px;
    position: fixed;
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 860px;
    padding-top: 140px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    max-width: none;
  }

  .intro,
  .leadership,
  .profile-download,
  .split-section,
  .project-stage,
  .credentials,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-people {
    grid-template-columns: 1fr;
  }

  .metrics,
  .timeline,
  .project-cards,
  .testimonial-grid,
  .contractor-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-modal-panel {
    grid-template-columns: 1fr;
  }

  .project-modal-gallery {
    min-height: 360px;
  }

  .profile-download {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-feature {
    min-height: 460px;
  }

  .project-data-list .credentials img {
    order: -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 84px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    height: 72px;
    width: 72px;
  }

  .brand small {
    display: none;
  }

  .header-whatsapp {
    font-size: 0;
    min-height: 42px;
    padding: 0;
    width: 42px;
    justify-content: center;
  }

  .main-nav {
    inset-block-start: 84px;
  }

  .hero {
    min-height: 940px;
    padding-top: 120px;
  }

  .hero-actions a {
    width: 100%;
  }

  .metrics,
  .service-grid,
  .timeline,
  .certificate-grid,
  .project-cards,
    .contact-people,
    .contact-departments,
    .testimonial-grid,
    .contractor-strip {
    grid-template-columns: 1fr;
  }

  .contact-departments {
    grid-template-areas:
      "mechanical"
      "electrical";
  }

  .project-modal-panel {
    max-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
  }

  .project-modal-gallery {
    min-height: 280px;
  }

  .project-modal-copy dl div {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .project-feature {
    min-height: 390px;
  }

  .project-feature div {
    padding: 22px;
  }

  .project-thumb {
    grid-template-columns: 96px 1fr;
  }

  .project-thumb img {
    height: 76px;
    width: 96px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .certificate-grid img {
    height: 430px;
  }

  .chatbot {
    bottom: 16px;
    left: 16px;
  }

  .chatbot-window {
    bottom: 64px;
  }
}
