:root {
  --navy: #0f2a6b;
  --blue: #1f6feb;
  --red: #e5202e;
  --ink: #14213d;
  --mist: #eef3fb;
  --line: #d9e2f1;
  --bg: #fff;
  --card: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eefc;
    --mist: #0c1a3d;
    --line: #223468;
    --bg: #081230;
    --card: #0c1a3d;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1160px, 92%);
  margin: auto;
}
section {
  padding: 88px 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  h1,
  h2,
  h3 {
    color: #fff;
  }
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  margin-top: 14px;
}
.lead {
  max-width: 62ch;
  opacity: 0.85;
  margin-bottom: 36px;
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.2s;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover {
  background: var(--navy);
}
.btn.ghost {
  background: transparent;
  border: 2px solid #fff;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.logo b {
  color: var(--red);
}
.logo small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 600;
  margin-top: -4px;
}
nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
}
nav a {
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.on {
  border-color: var(--red);
}
.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  color: var(--ink);
}
.img {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  overflow: hidden;
  position: relative;
}
.slider {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.slide.on {
  opacity: 1;
  visibility: visible;
}
.hero {
  height: calc(100vh - 72px);
  min-height: 560px;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 42, 107, 0.9),
    rgba(15, 42, 107, 0.25)
  );
}
.slide .txt {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  color: #fff;
  width: min(1160px, 92%);
  margin: auto;
}
.slide h1,
.slide h2 {
  color: #fff;
  max-width: 14ch;
}
.slide h2::after {
  display: none;
}
.slide p {
  max-width: 48ch;
  font-size: 1.15rem;
}
.ctrl {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  right: 4%;
  display: flex;
  gap: 10px;
}
.ctrl button {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  background: rgba(15, 42, 107, 0.5);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.ctrl button:hover {
  background: var(--red);
  border-color: var(--red);
}
.dots {
  position: absolute;
  z-index: 5;
  bottom: 40px;
  left: 4%;
  display: flex;
  gap: 8px;
}
.dots i {
  width: 34px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.dots i.on {
  background: var(--red);
}
.grid {
  display: grid;
  gap: 24px;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.g5 {
  grid-template-columns: repeat(5, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 28px;
}
.card p {
  opacity: 0.85;
  font-size: 0.95rem;
}
.card.photo {
  padding: 0;
}
.card.photo .img {
  aspect-ratio: 4/3;
}
.card.photo div:last-child {
  padding: 22px;
}
.band {
  background: var(--mist);
}
.dark {
  background: var(--navy);
  color: #fff;
}
.dark h2,
.dark h3 {
  color: #fff;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .img {
  height: 100%;
  width: 100%;
  aspect-ratio: 4/3;
}
.step {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 18px;
}
.step span {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.sector {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.sector h3 {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  padding: 12px 32px 12px 18px;
  margin: 0;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}
.clients {
  height: 150px;
}
.clients .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
}
.clients .slide::after {
  display: none;
}
.proj {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.proj b {
  font-size: 1.8rem;
  color: var(--blue);
  min-width: 48px;
}
.proj small {
  opacity: 0.75;
  display: block;
}
.pslider {
  height: min(70vh, 560px);
}
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 96px 0 72px;
}
.page-hero h1 {
  color: #fff;
}
.page-hero p {
  max-width: 56ch;
  margin-top: 16px;
  opacity: 0.9;
}
form {
  display: grid;
  gap: 14px;
}
input,
textarea {
  font: inherit;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
footer {
  background: var(--navy);
  color: #d7e2fa;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
footer h3 {
  color: #fff;
  font-size: 1rem;
}
footer .grid {
  grid-template-columns: 2fr 1fr 1fr;
}
footer small {
  display: block;
  margin-top: 36px;
  opacity: 0.7;
}
footer .logo {
  color: #fff;
}
footer .logo small {
  color: #d7e2fa;
}
@media (max-width: 860px) {
  .g2,
  .g3,
  .g4,
  .g5,
  .split,
  footer .grid {
    grid-template-columns: 1fr;
  }
  .burger {
    display: block;
  }
  nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 4%;
    display: none;
    border-bottom: 1px solid var(--line);
  }
  nav.open {
    display: flex;
  }
  section {
    padding: 60px 0;
  }
}

/* Offset anchor destinations below the sticky navigation. */
html {
  scroll-padding-top: 100px;
}
#architectural,
#structural,
#mep,
#support {
  scroll-margin-top: 100px;
}

/* Seamless clients logo marquee (not part of the hero slider). */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 32px;
  background: #fff;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}
.clients-marquee-track {
  display: flex;
  width: max-content;
  animation: adeco-clients-scroll 32s linear infinite;
}
.clients-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.client-logo {
  width: clamp(180px, 19vw, 250px);
  height: 104px;
  flex: 0 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes adeco-clients-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 600px) {
  .client-logo {
    width: 180px;
    height: 90px;
    padding: 14px 18px;
  }
  .clients-marquee-track {
    animation-duration: 24s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation: none;
  }
  .clients-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* .contact-band {
  background-image: url("./../images/contact-facade.png");
  min-height: 40vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
} */

.p-0 {
  padding: 0;
}
@media (max-width: 860px) {
  .md-order-1 {
    order: 1;
  }
  .md-order-2 {
    order: 2;
  }
  .md-order-3 {
    order: 3;
  }
  .md-order-4 {
    order: 4;
  }
  .md-order-5 {
    order: 5;
  }
  .md-order-6 {
    order: 6;
  }
  .md-order-7 {
    order: 7;
  }
  .md-order-8 {
    order: 8;
  }
}

.flex-1 {
  flex: 1;
}
.h-100 {
  height: 100%;
}
.object-fit-contain {
  object-fit: contain;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.hover\:red {
  transition: all 0.3s;
}
.hover\:red:hover {
  color: red;
}
