:root {
  --bg: #f2eee8;
  --white: #ffffff;
  --black: #0f1114;
  --text: #1b1f24;
  --text-soft: #5f6771;
  --muted: rgba(255,255,255,.84);
  --line: rgba(255,255,255,.24);
  --header-h: 92px;
  --after-h: 390px;
  --footer-border: rgba(15,17,20,.10);
  --footer-line: rgba(15,17,20,.16);
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.page {
  position: relative;
  z-index: 2;
  background: var(--bg);
  margin-bottom: var(--after-h);
}
.header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  color: var(--white);
}
.header__inner {
  width: min(1400px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header {
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.4s ease;
}

/* hidden state */
.header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.burger {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}
.burger__circle {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: .42s var(--ease);
  background: rgba(255,255,255,.04);
}
.burger:hover .burger__circle {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: scale(1.04);
}
.burger__lines,
.burger__lines::before,
.burger__lines::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.burger__lines::before { position: absolute; top: -6px; left: 0; }
.burger__lines::after { position: absolute; top: 6px; left: 0; }
.brand { justify-self: end; }
.brand img { height: 52px; width: auto; }
.header__actions {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header__actions a {
  position: relative;
  color: var(--white);
  opacity: .92;
}
.header__actions a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: .25s ease;
}
.header__actions a:hover::after { transform: scaleX(1); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10,10,10,.95);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .35s ease;
}
.menu-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.menu-panel__inner {
  width: min(1400px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 60px;
}
.menu-panel__close {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 30px;
  background: rgba(255,255,255,.04);
}
.menu-nav a {
  display: block;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  padding: 10px 0;
  color: rgba(255,255,255,.88);
  transition: .25s ease;
}
.menu-nav a:hover {
  color: var(--white);
  transform: translateX(10px);
}
.menu-aside p {
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
}

.section-nav {
  position: fixed;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-end;
}
.section-nav a {
  position: relative;
  width: 54px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.section-nav a::before {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.52);
  transition: width .5s var(--ease), height .35s ease, background .35s ease, opacity .35s ease;
  opacity: .8;
}
.section-nav a:hover::before {
  width: 38px;
  background: rgba(255,255,255,.85);
}
.section-nav a.active::before {
  width: 58px;
  height: 2px;
  background: rgba(255,255,255,1);
  opacity: 1;
}

.panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.panel__bg,
.panel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.panel__fallback {
  position: absolute;
  inset: 0;
  background: url('../assets/images/ground-works.webp') center/cover no-repeat;
  transform: scale(1.03);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.76) 0%, rgba(0,0,0,.24) 48%, rgba(0,0,0,.18) 100%);
}
.panel__content {
  position: relative;
  z-index: 2;
  width: min(76vw, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
}
.panel.in-view .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.panel.in-view .reveal--1 { transition-delay: .08s; }
.panel.in-view .reveal--2 { transition-delay: .45s; }
.panel.in-view .reveal--3 { transition-delay: .82s; }
.panel.in-view .reveal--4 { transition-delay: 1.18s; }

.eyebrow {
  font-size: 18px;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 16px;
}
.panel h1,
.panel h2 {
  width: 78%;
  font-weight: 400;
  line-height: 1.3;
  font-size: clamp(31px, 5.6vw, 73px);
  margin: 0 0 18px;
  text-align: center;
}
.panel p {
  width: 76%;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
  text-align: center;
}
.panel__link {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 30px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,.03);
  transition: .35s var(--ease);
  font-weight:600;
}
.panel__link svg {
  width: 14px;
  height: 14px;
  transition: transform .35s var(--ease);
}
.panel__link:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}
.panel__link:hover svg { transform: translateX(4px); }

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .85s var(--ease);
  backdrop-filter: blur(6px);
}
.scroll-down:hover {
  background: rgba(255,255,255,.1);
  transform: translateX(-50%) translateY(-2px);
}
.scroll-down svg { width: 24px; height: 24px; }

.panel--1 { z-index: 2; }
.panel--2 { z-index: 3; }
.panel--3 { z-index: 4; }
.panel--4 { z-index: 5; }

.panel--2 .panel__bg { background: url('../assets/images/ground-works.webp') center/cover no-repeat; }
.panel--3 .panel__bg { background: url('../assets/images/civil-services.webp') center/cover no-repeat; }
.panel--4 .panel__bg { background: url('../assets/images/infrastructure.webp') center/cover no-repeat; }

.footer {
  position: relative;
  z-index: 8;
  background: var(--white);
  color: var(--text);
  padding: 100px 0 32px;
}
.footer__inner {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 54px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--footer-border);
}
.footer__title {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
}
.footer__menu {
  display: grid;
  gap: 12px;
}
.footer__menu a,
.footer__contact-item,
.footer__meta a {
  color: var(--text-soft);
  transition: .25s ease;
}
.footer__menu a:hover,
.footer__meta a:hover,
.footer__contact-item a:hover,
.footer__socials a:hover {
  color: var(--black);
}
.footer__contact-item {
  margin-bottom: 18px;
  line-height: 1.8;
}
.footer__contact-label {
  display: block;
  color: #8b939c;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__brand img {
  height: 54px;
  width: auto;
  margin-bottom: 20px;
}
.footer__save {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--footer-line);
  border-radius: 999px;
  background: rgba(15,17,20,.02);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: .3s ease;
  white-space: nowrap;
  color: var(--black);
}
.footer__save svg { width: 13px; height: 13px; }
.footer__save:hover {
  background: rgba(15,17,20,.05);
  border-color: rgba(15,17,20,.3);
}
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.footer__socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--footer-line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: .25s ease;
  background: rgba(15,17,20,.02);
}
.footer__socials a:hover {
  transform: translateY(-2px);
  background: rgba(15,17,20,.05);
  border-color: rgba(15,17,20,.25);
}
.footer__socials svg { width: 16px; height: 16px; }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer__copyright {
  color: #8b939c;
  font-size: 14px;
  line-height: 1.6;
}
.footer__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.6;
}

.after-footer {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--after-h);
  z-index: 0;
  background: linear-gradient(to top, rgba(255,255,255,.20), rgba(255,255,255,.12)), url('../assets/images/after-footer.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.after-footer__inner { width: min(1200px, calc(100% - 40px)); }
.after-footer h3 {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
}
.after-footer p {
  margin: 0 auto 26px;
  width: min(760px, 100%);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.92);
}
.certs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
  align-items: center;
}
.cert {
  min-height: 140px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px 24px;
  text-align: center;
}


.cert img {
  width: 100%;
  max-height: 100px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .brand { justify-self: end; }
  .header__actions, .section-nav { display: none; }
  .menu-panel__inner {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 120px 0 60px;
  }
  .panel__content, .footer__inner {
    width: calc(100% - 34px);
  }
  .panel h1, .panel h2, .panel p {
    width: 100%;
  }
  .footer__top,
  .certs {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  :root {
    --header-h: 80px;
    --after-h: 530px;
  }
  .scroll-down {
    width: 62px;
    height: 62px;
    bottom: 80px;
  }
  .panel p { font-size: 16px; }
  .eyebrow { font-size: 15px; }
}

/* =========================
   HERO PREMIUM SLIDER - PANEL 1 ONLY
   ========================= */

.panel--1 .panel__bg.hero-slider {
  background: none !important;
  overflow: hidden;
  transform: scale(1.03);
}

.panel--1 .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

  opacity: 0;
  z-index: 1;

  transform: scale(1.06);
  transition:
    opacity 3s ease-in-out,
    transform 9s ease-in-out;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ACTIVE */
.panel--1 .hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

/* DIRECTIONS */
.panel--1 .hero-slide.is-active.move-left {
  transform: scale(1.14) translateX(3%);
}

.panel--1 .hero-slide.is-active.move-right {
  transform: scale(1.14) translateX(-3%);
}

.panel--1 .hero-slide.is-active.move-up {
  transform: scale(1.14) translateY(-3%);
}

.panel--1 .hero-slide.is-active.move-down {
  transform: scale(1.14) translateY(3%);
}

/* EXIT */
.panel--1 .hero-slide.is-prev {
  opacity: 0;
  z-index: 1;
}

.panel--1 .hero-slide.is-prev.move-left {
  transform: scale(1.1) translateX(-2%);
}

.panel--1 .hero-slide.is-prev.move-right {
  transform: scale(1.1) translateX(2%);
}

.panel--1 .hero-slide.is-prev.move-up {
  transform: scale(1.1) translateY(2%);
}

.panel--1 .hero-slide.is-prev.move-down {
  transform: scale(1.1) translateY(-2%);
}


@media (max-width: 768px) {

  .panel--1 .hero-slide {
    transition:
      opacity 2s ease-in-out,
      transform 6s ease-in-out;
    background-position: center center;
  }

  .panel--1 .hero-slide.is-active.move-left {
    transform: scale(1.2) translateX(2%);
  }

  .panel--1 .hero-slide.is-active.move-right {
    transform: scale(1.2) translateX(-2%);
  }

  .panel--1 .hero-slide.is-active.move-up {
    transform: scale(1.2) translateY(-2%);
  }

  .panel--1 .hero-slide.is-active.move-down {
    transform: scale(1.2) translateY(2%);
  }

  .panel--1 .hero-slide.is-prev.move-left {
    transform: scale(1.05) translateX(-1%);
  }

  .panel--1 .hero-slide.is-prev.move-right {
    transform: scale(1.05) translateX(1%);
  }

  .panel--1 .hero-slide.is-prev.move-up {
    transform: scale(1.05) translateY(1%);
  }

  .panel--1 .hero-slide.is-prev.move-down {
    transform: scale(1.05) translateY(-1%);
  }
  
    .panel--1 .hero-1 { background-position: 60% center; }
  .panel--1 .hero-2 { background-position: 45% center; }
  .panel--1 .hero-3 { background-position: center top; }
  .panel--1 .hero-4 { background-position: center 30%; }
}

/* =========================
   SECTION BUTTONS + SMOOTHER SECTION FEEL
   ========================= */

html {
  scroll-behavior: auto;
}

.panel {
  transition: opacity .75s var(--ease);
}

.panel .panel__bg {
  transition: transform 1.35s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}

.panel .panel__content {
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}

.panel:not(.in-view) .panel__bg {
  transform: scale(1.08);
  opacity: .82;
  filter: saturate(.9);
}

.panel.in-view .panel__bg {
  transform: scale(1.03);
  opacity: 1;
  filter: saturate(1);
}

.panel__content--button {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel__link--simple {
  min-height: 68px;
  padding: 0 34px;
  border: 1.5px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .18em;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  overflow: hidden;
}

.panel__link--simple svg {
  display: none;
}

.panel__link--simple:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.98);
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(0) scale(1.18);
  transform-origin: center center;
  clip-path: inset(38% 0 38% 0 round 999px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease),
    transform 1.25s var(--ease),
    clip-path 1.25s var(--ease),
    filter 1.1s var(--ease),
    letter-spacing 1.25s var(--ease);
  letter-spacing: .28em;
  will-change: opacity, transform, clip-path, filter;
}

.panel.in-view .reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0 round 999px);
  filter: blur(0);
  letter-spacing: .18em;
}

/* =========================
   MAP FOOTER
   ========================= */

.footer--map {
  padding: 0;
  background: #0f1114;
}

.footer__map-wrap {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.footer__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.08) contrast(1.02);
}


.footer__card {
  position: absolute;
  z-index: 9;
  width: min(420px, calc(100% - 40px));
  margin: 54px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,17,20,.58);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-radius: 24px;
  top:0px;
  right:0px;
}

.footer__contact-link,
.footer__map-link {
  color: var(--white);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: .04em;
}

.footer__contact-link:hover,
.footer__map-link:hover {
  opacity: .82;
}

.footer--map .footer__save {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: var(--white);
  margin: 4px 0 0;
}

.footer--map .footer__save:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.5);
}

.footer__map-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .9;
}

@media (max-width: 980px) {
  .footer__map-wrap {
    min-height: 620px;
  }

  .footer__map-wrap::after {
    background: linear-gradient(180deg, rgba(15,17,20,.62) 0%, rgba(15,17,20,.18) 100%);
  }

  .footer__card {
    margin: 24px;
    margin-top: 340px;
    width: calc(100% - 48px);
  }
}

@media (max-width: 767px) {
  .panel__link--simple {
    min-height: 60px;
    padding: 0 24px;
    letter-spacing: .14em;
  }

  .footer__map-wrap {
    min-height: 560px;
  }

  .footer__card {
    margin: 18px;
    margin-top: 300px;
    width: calc(100% - 36px);
    padding: 22px 20px;
    border-radius: 18px;
  }

  .footer__contact-link {
    font-size: 18px;
  }
}

