/* ==========================================================
   SCALING SYSTEM: 1rem = 100px of the Figma design (1440px wide)
   Below 1000px the mobile section at the bottom takes over.
   ========================================================== */
html {
  font-size: calc(100vw / 14.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0b4a6f;
  --green: #7ac143;
  --leaf: #6bb23a;
  --dark: #03274b;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 0.16rem;
  color: var(--navy);
  background: #ffffff;
  overflow-x: hidden;
}

img {
  display: block;
}
a {
  text-decoration: none;
}
.green {
  color: var(--green);
}

/* ============ HEADER ============ */
.site-header {
  position: absolute;
  top: 0.55rem;
  left: 0.36rem;
  right: 0.36rem;
  height: 0.71rem;
  z-index: 30;
  background: #ffffff;
  border-radius: 0.2rem;
  padding: 0 0.31rem 0 0.14rem;
  display: flex;
  align-items: center;
}

.logo {
  height: 0.56rem;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  margin-left: 0.88rem;
  margin-right: auto;
}

.main-nav a {
  font-size: 0.18rem;
  line-height: 0.2rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.09rem 0.13rem;
  border-radius: 999px;
  transition: background 0.3s;
}

.main-nav a:hover {
  background: #e8f2fc;
}
.main-nav a.active {
  background: var(--navy);
  color: #ffffff;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  background: var(--green);
  color: #ffffff;
  font-size: 0.18rem;
  font-weight: 500;
  padding: 0.14rem 0.3rem;
  border-radius: 999px;
  transition: transform 0.3s;
}

.btn-green:hover {
  transform: translateY(-0.02rem);
}

.menu-toggle,
.menu-icon {
  display: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 7.22rem;
  padding: 1.78rem 0 0 0.29rem;
  overflow: visible; /* lets the water droplets fall below the sky */
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.45) 35%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url("../assets/images/home_images/cloud.jpg") center top / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 6;
}

/* label with the thin line on its right */
.hero-label {
  display: flex;
  align-items: center;
  gap: 0.21rem;
  margin-left: 0.07rem;
  font-size: 0.22rem;
  line-height: 0.28rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-label::after {
  content: "";
  width: 0.75rem;
  height: 0.01rem;
  background: #7f93a8;
}

.hero h1 {
  margin: 0.1rem 0 0 0;
  font-size: 0.6rem;
  line-height: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.hero h1 .green {
  color: var(--green);
}

.hero-desc {
  margin: 0.23rem 0 0 0.05rem;
  font-size: 0.175rem;
  line-height: 0.216rem;
  font-weight: 600;
  color: var(--navy);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin: 0.44rem 0 0 0.07rem;
  height: 0.4rem;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.18rem;
  font-weight: 500;
  padding: 0 0.21rem;
  border-radius: 999px;
  transition: transform 0.3s;
}

.btn-navy:hover {
  transform: translateY(-0.02rem);
}

/* hero images */
.hero-dam {
  position: absolute;
  top: 1.22rem;
  right: 0;
  width: 7.9rem;
  height: 4.7rem;
  object-fit: cover;
  border-left: 0.1rem solid var(--green);
  border-radius: 1.5rem 0 0 1.5rem / 3.3rem 0 0 2.2rem;
  z-index: 2; /* in front */
}

.hero-dam-2 {
  position: absolute;
  top: 1.76rem;
  right: 0;
  width: 6.1rem;
  height: 4.5rem;
  object-fit: cover;
  object-position: center bottom;
  border-left: 0.1rem solid var(--green);
  border-radius: 1.5rem 0 0 1.5rem / 3.3rem 0 0 2.2rem;
  z-index: 1; /* behind hero-dam */
  transform: scale(1.2);
  transform-origin: right bottom;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -0.9rem;
  width: 100%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.hero-leaf-left {
  position: absolute;
  top: 1.1rem;
  left: -0.1rem;
  width: 1.2rem;
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-leaf-right {
  position: absolute;
  top: 5.5rem;
  right: -1.1rem;
  width: 2rem;
  transform: scaleX(-1);
  mix-blend-mode: multiply;
  z-index: 4;
}

/* ============ PROCESS TITLE ============ */
.proc-title {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  margin-top: 0.88rem; /* was 1.52rem; hero is 0.64rem taller now */
  font-size: 0.59rem;
  line-height: 0.72rem;
  font-weight: 700;
  color: var(--navy);
}

.proc-title::before,
.proc-title::after {
  content: "";
  height: 0.01rem;
  background: #5f7f9a;
}

.proc-title::before {
  flex: 0 0 2.09rem;
}
.proc-title::after {
  flex: 0 0 1.86rem;
  margin-left: 0.16rem;
}

.proc-sub {
  position: relative;
  z-index: 5;
  margin-top: 0.02rem;
  text-align: center;
  font-size: 0.25rem;
  line-height: 0.3rem;
  font-weight: 600;
  color: var(--navy);
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  height: 9.91rem;
  margin-top: 0.5rem;
}

.t-line {
  position: absolute;
  left: 7.49rem;
  top: 0.78rem;
  width: 0.01rem;
  height: 8.26rem;
  background: #4aa3df;
}

.dot {
  position: absolute;
  left: 7.4rem;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0.02rem rgba(122, 193, 67, 0.25);
}

.conn {
  position: absolute;
  height: 0.01rem;
  background: #4aa3df;
}

.step {
  position: absolute;
  border-radius: 0.26rem;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8fd 100%);
  box-shadow:
    0 0.03rem 0.05rem rgba(60, 80, 100, 0.35),
    0 0 0 0.01rem rgba(180, 205, 230, 0.9);
}

.pill {
  position: absolute;
  left: var(--pl);
  top: var(--pt);
  width: 0.83rem;
  height: 0.29rem;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  font-size: 0.16rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  position: absolute;
  left: var(--tl);
  top: var(--tt);
  font-size: 0.29rem;
  line-height: 0.36rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.step p {
  position: absolute;
  left: var(--xl);
  top: var(--xt);
  font-size: var(--fs);
  line-height: var(--lh);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.step-icon {
  position: absolute;
  left: var(--il);
  top: var(--it);
  width: var(--iw);
  height: var(--ih);
  object-fit: contain;
  border-radius: 0.14rem;
}

/* ============ WHY CHOOSE NTS ============ */
.why {
  position: relative;
  height: 2.36rem;
  margin: 0.36rem 0.29rem 0 0.27rem;
  border-radius: 0.28rem;
  background: #f5faff;
  border: 0.015rem solid #c3dcf0;
}

.why h2 {
  position: absolute;
  left: 0.33rem;
  top: 0.17rem;
  font-size: 0.5rem;
  line-height: 0.62rem;
  font-weight: 700;
  color: var(--navy);
}

.why-sub {
  position: absolute;
  left: 0.32rem;
  top: 1.1rem;
  font-size: 0.23rem;
  line-height: 0.29rem;
  font-weight: 600;
  color: var(--navy);
}

.why-div {
  position: absolute;
  top: 0.43rem;
  width: 0.01rem;
  height: 1.34rem;
  background: linear-gradient(
    180deg,
    transparent,
    #7fb3dc 25%,
    #7fb3dc 75%,
    transparent
  );
}

.why-item {
  position: absolute;
  top: 0;
  text-align: center;
}

.why-item svg {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 auto;
  margin-top: var(--it);
  fill: none;
  stroke: var(--leaf);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item p {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--tt);
  font-size: 0.25rem;
  line-height: 0.3rem;
  font-weight: 500;
  color: var(--navy);
}

/* ============ DARK CTA BAND ============ */
.cta-band {
  position: relative;
  height: 1.71rem;
  margin-top: 0.3rem;
  overflow: hidden;
  /* the wave is pushed down so only a thin sliver shows at the bottom corners */
  background: var(--dark) url("../assets/footer_boarder.jpg") no-repeat
    center -0.42rem / 100% auto;
}

.cta-band h2 {
  position: absolute;
  left: 0.4rem;
  top: 0.325rem;
  font-size: 0.47rem;
  line-height: 0.59rem;
  font-weight: 700;
  color: #ffffff;
}

.cta-green {
  color: #9bd35a;
}

.cta-divider {
  position: absolute;
  left: 6.28rem;
  top: 0.27rem;
  width: 0.01rem;
  height: 1.36rem;
  background: #7a8fa8;
}

.cta-band p {
  position: absolute;
  left: 6.59rem;
  top: 0.45rem;
  font-size: 0.165rem;
  line-height: 0.216rem;
  font-weight: 500;
  color: #ffffff;
}

.cta-btn {
  position: absolute;
  left: 6.59rem;
  top: 1.05rem; /* was 1.32rem, smaller number = higher */
  margin: 0;
  height: 0.45rem;
  padding: 0 0.26rem;
}

.cta-img {
  position: absolute;
  left: 12.25rem;
  top: 0.28rem;
  width: 1.95rem;
  height: 1.5rem;
  object-fit: contain;
}

/* ============ FOOTER ============ */
/* 1rem = 100px of the Figma frame (1440px wide) */
.site-footer {
  position: relative;
  background: #0a2a4a;
  color: #fff;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

/* line between the CTA band and the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.39rem; /* lines up with the "Let's Work Together" text */
  right: 0.39rem;
  height: 0.01rem;
  background: rgba(255, 255, 255, 0.35);
}

/* ---- text row ---- */
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 2.84rem 3.41rem 4.58rem 1fr;
  align-items: center;
  height: 1.1rem;
}

/* logo */
.site-footer .footer-logo {
  display: block;
  height: 0.9rem;
  width: auto;
  margin-left: 0.15rem;
  mix-blend-mode: lighten;
}

/* text blocks */
.site-footer .footer-block {
  display: flex;
  align-items: center;
  height: 0.59rem;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.14rem;
  line-height: 1.4;
  white-space: nowrap;
}

.site-footer .footer-company {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.site-footer .footer-company strong {
  font-weight: 700;
}

.site-footer .footer-copy {
  padding-left: 0.31rem;
  font-size: 0.13rem;
}

.site-footer .footer-tagline {
  justify-content: center;
  gap: 0.1rem;
}

.site-footer .tag-leaf {
  flex: 0 0 0.18rem;
  width: 0.18rem;
  height: 0.18rem;
  fill: none;
  stroke: #7ac143;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- wave: shows only the wave band of the image ---- */
.site-footer .footer-wave {
  width: 100%;
  height: 1.3rem;
  background:
    linear-gradient(180deg, rgba(10, 42, 74, 0.45) 0%, rgba(10, 42, 74, 0) 65%),
    url("../assets/footer_boarder.jpg") center 60% / 100% auto no-repeat;
}

/* ==========================================================
   MOBILE + TABLET (1000px and below)
   Back to normal px sizes. Everything that was in rem above
   is re-set here, so nothing stays tiny.
   ========================================================== */
@media (max-width: 1000px) {
  html {
    font-size: 16px;
  }
  body {
    font-size: 16px;
  }

  /* ---------- header + hamburger menu (CSS only) ---------- */
  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    height: auto;
    padding: 10px 14px;
    justify-content: space-between;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(11, 74, 111, 0.1);
  }

  .logo {
    height: 40px;
  }

  .btn-green {
    display: none;
  }

  .menu-icon {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 8px 0 0;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 74, 111, 0.15);
  }

  .main-nav a {
    font-size: 16px;
    line-height: 1.3;
    padding: 11px 16px;
    text-align: center;
  }

  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }

  /* ---------- hero ---------- */
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 110px 20px 0;
    overflow: hidden;
  }

  .hero br {
    display: none;
  }

  .hero-content {
    order: 1;
  }

  .hero-label {
    gap: 10px;
    margin-left: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-label::after {
    width: 50px;
    height: 1px;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.2;
    white-space: normal;
  }

  .hero-desc {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .btn-navy {
    gap: 10px;
    margin: 22px 0 0;
    height: 44px;
    font-size: 16px;
    padding: 0 26px;
  }

  /* dam image reaches the right edge (no gap) */
  .hero-dam {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% + 20px);
    height: clamp(200px, 55vw, 380px);
    margin: 28px -20px 0 0;
    border-left: 5px solid var(--green);
    border-radius: 100px 0 0 100px;
  }

  .hero-dam-2 {
    display: none;
  }

  /* wave sits on the bottom of the dam, cropped so there is no empty sky */
  .hero-wave {
    order: 3;
    position: relative;
    top: -2px;
    bottom: auto;
    left: auto;
    width: 500px;
    max-width: none;
    height: clamp(160px, 52vw, 300px);
    object-fit: cover;
    object-position: center top;
    margin: -90px -20px 0;
    z-index: 3;
  }

  .hero-leaf-left {
    top: 70px;
    left: -8px;
    width: 64px;
  }

  .hero-leaf-right {
    top: 600px;
    right: -50px;
    bottom: 20px;
    width: 120px;
  }

  /* ---------- process title ---------- */
  .proc-title {
    gap: 10px;
    margin-top: 10px;
    padding: 0 14px;
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.2;
  }

  .proc-title::before,
  .proc-title::after {
    flex: 0 1 30px;
    margin: 0;
  }

  .proc-sub {
    margin-top: 8px;
    padding: 0 14px;
    font-size: 17px;
    line-height: 1.4;
  }

  /* ---------- timeline (cards stack with a line on the left) ---------- */
  .timeline {
    height: auto;
    margin: 28px 14px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: #4aa3df;
  }

  .t-line,
  .dot,
  .conn {
    display: none;
  }

  .step {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    display: grid;
    grid-template-columns: 78px 1fr;
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
    padding: 18px;
    border-radius: 22px;
  }

  /* green dot on the timeline line */
  .step::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 26px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--leaf);
    box-shadow: 0 0 0 3px rgba(122, 193, 67, 0.25);
  }

  .step-icon {
    position: static;
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 78px;
    height: 78px;
  }

  .pill {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: 76px;
    height: 28px;
    font-size: 14px;
  }

  .step h3 {
    position: static;
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
    font-size: 20px;
    line-height: 1.3;
  }

  .step h3 br,
  .step p br {
    display: none;
  }

  .step p {
    position: static;
    grid-column: 2;
    grid-row: 3;
    white-space: normal;
    font-size: 15px;
    line-height: 1.5;
  }

  /* ---------- why choose NTS ---------- */
  .why {
    height: auto;
    margin: 26px 14px 0;
    padding: 24px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 10px;
    border-radius: 22px;
  }

  .why h2,
  .why-sub {
    position: static;
    grid-column: 1 / -1;
  }

  .why h2 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.2;
  }

  .why-sub {
    font-size: 17px;
    line-height: 1.4;
  }

  .why-sub br {
    display: none;
  }

  .why-div {
    display: none;
  }

  .why-item {
    position: static !important;
    left: auto !important;
    width: auto !important;
    text-align: center;
  }

  .why-item svg {
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
  }

  .why-item p {
    position: static;
    font-size: 16px;
    line-height: 1.3;
  }

  /* ---------- dark CTA band ---------- */
  .cta-band {
    height: auto;
    margin-top: 26px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--dark);
  }

  .cta-band h2,
  .cta-band p,
  .cta-btn,
  .cta-img,
  .cta-divider {
    position: static;
  }

  .cta-band h2 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.25;
  }

  .cta-divider {
    display: none;
  }

  .cta-band p {
    font-size: 15px;
    line-height: 1.5;
  }

  .cta-band p br {
    display: none;
  }

  .cta-btn {
    align-self: flex-start;
    height: 44px;
    margin: 0;
    padding: 0 24px;
    font-size: 16px;
  }

  .cta-img {
    align-self: center;
    width: 150px;
    height: auto;
  }

  /* ---------- footer ---------- */
  .site-footer::before {
    left: 16px;
    right: 16px;
  }

  .site-footer .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 24px 16px 10px;
    text-align: center;
  }

  .site-footer .footer-logo {
    height: 60px;
    margin: 0;
  }

  .site-footer .footer-block {
    height: auto;
    padding: 0;
    border: 0;
    justify-content: center;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    text-align: center;
  }

  .site-footer .footer-copy {
    padding-left: 0;
    font-size: 13px;
  }

  .site-footer .footer-tagline {
    gap: 8px;
  }

  .site-footer .tag-leaf {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .site-footer .footer-wave {
    height: 120px;
    background: url("../assets/footer_boarder.jpg") center bottom / cover
      no-repeat;
  }
}

/* ==========================================================
   SMALL PHONES (440px and below)
   ========================================================== */
@media (max-width: 440px) {
  .step {
    grid-template-columns: 64px 1fr;
    column-gap: 12px;
    padding: 16px;
  }

  .step-icon {
    width: 64px;
    height: 64px;
  }

  .step h3 {
    font-size: 18px;
  }

  .why {
    padding: 20px 14px;
  }

  .why-item p {
    font-size: 15px;
  }
}
