/* ==========================================================
   SCALING SYSTEM: 1rem = 100px of the Figma design (1440px wide)
   (desktop only – tablet/mobile override this below)
   ========================================================== */
html {
  font-size: calc(100vw / 14.4);
  scroll-behavior: smooth;
}

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

:root {
  --navy: #0b4a6f;
  --green: #7ac143;
  --leaf: #6bb23a;
  --footer-bg: #0a2a4a;
}

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;
}

.hero-label {
  position: relative;
  display: inline-block;
  padding: 0.07rem 0.02rem 0.08rem;
  font-size: 0.22rem;
  line-height: 0.28rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 0.015rem solid var(--green);
}

.hero-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.8rem;
  height: 0.01rem;
  background: #9fb9cf;
}
.hero-label::after {
  content: "";
  width: 1.36rem;
  height: 0.02rem;
  background: var(--green);
}
.hero-sub::after {
  content: "";
  display: block;
  width: 1.3rem;
  height: 0.02rem;
  margin: 0.12rem 0 0 0.5rem;
  background: var(--green);
}

.hero h1 {
  margin-top: 0.14rem;
  font-size: 0.86rem;
  line-height: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.hero-desc {
  margin-top: 0.17rem;
  font-size: 0.17rem;
  line-height: 0.23rem;
  font-weight: 600;
  color: var(--navy);
}
.hero h1 .green {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  background: linear-gradient(90deg, #86c940 0%, #5dba58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  margin-top: 0.18rem;
  font-size: 0.28rem;
  line-height: 0.37rem;
  font-weight: 700;
  color: var(--navy);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin-top: 0.48rem;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.18rem;
  font-weight: 500;
  padding: 0.13rem 0.35rem;
  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; /* the visible strip shows the bottom of the picture */
  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-mid {
  position: absolute;
  top: 4.8rem;
  left: 5.75rem;
  width: 1.5rem;
  mix-blend-mode: multiply;
  z-index: 4;
}

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

/* ============ SERVICE CARDS ============ */
.s-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 6.88rem 6.89rem;
  gap: 0.25rem 0.15rem;
  margin: 0.91rem 0 0 0.25rem;
}

.s-grid .s-card:nth-child(5),
.s-grid .s-card:nth-child(6) {
  margin-top: 0.1rem;
}

.s-card {
  position: relative;
  height: 1.93rem;
  overflow: hidden;
  border-radius: 0.3rem;
  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(200, 212, 226, 0.9);
}

.s-circle {
  position: absolute;
  left: var(--cl);
  top: calc(var(--cy) - 0.5rem);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 0.015rem solid #cfe1f2;
  background: linear-gradient(135deg, #ffffff, #eaf3fc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-circle svg {
  width: 0.4rem;
  height: 0.4rem;
  fill: none;
  stroke: #3f6286;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-card h3 {
  position: absolute;
  left: 1.61rem;
  top: var(--tt);
  font-size: 0.245rem;
  line-height: 0.305rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.s-card p {
  position: absolute;
  left: 1.61rem;
  top: var(--xt);
  font-size: 0.17rem;
  line-height: 0.224rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.learn {
  position: absolute;
  left: 1.61rem;
  top: var(--lt);
  font-size: 0.17rem;
  line-height: 0.22rem;
  font-weight: 700;
  color: var(--leaf);
  transition: transform 0.3s;
}

.learn:hover {
  transform: translateX(0.05rem);
}

.s-img {
  position: absolute;
  right: 0;
  top: var(--it);
  width: var(--iw);
  height: var(--ih);
  object-fit: cover;
  border-radius: 0.14rem;
}

/* ============ SERVICE DETAILS ============ */
.sd-label {
  display: flex;
  align-items: center;
  gap: 0.21rem;
  margin: 0.57rem 0 0 0.55rem;
  font-size: 0.24rem;
  line-height: 0.3rem;
  font-weight: 500;
  color: var(--navy);
}

.sd-label::after {
  content: "";
  width: 1.36rem;
  height: 0.01rem;
  background: var(--green);
}

.sd-title {
  margin: 0.16rem 0 0 0.55rem;
  font-size: 0.33rem;
  line-height: 0.42rem;
  font-weight: 700;
  color: var(--navy);
}

.sd-grid {
  display: grid;
  grid-template-columns: 6.88rem 6.9rem;
  gap: 0.2rem 0.17rem;
  margin: 0.31rem 0 0 0.26rem;
}

.sd-card {
  position: relative;
  height: 3.04rem;
  border-radius: 0.28rem;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow:
    0 0.03rem 0.05rem rgba(60, 80, 100, 0.35),
    0 0 0 0.01rem rgba(200, 212, 226, 0.9);
}

.num {
  position: absolute;
  left: var(--nl);
  top: var(--nt);
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--leaf);
  color: #ffffff;
  font-size: 0.26rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.sd-icon {
  position: absolute;
  left: var(--il);
  top: var(--it);
  width: var(--iw);
  fill: none;
  stroke: #3f6286;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sd-text {
  position: absolute;
  left: var(--pl);
  top: var(--pt);
}

.sd-text p {
  font-size: var(--fs);
  line-height: 0.224rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.22rem;
  white-space: nowrap;
}

/* ============ INDUSTRIES ============ */
.industries {
  position: relative;
  margin-top: 0.36rem;
}

.ind-leaf {
  position: absolute;
  top: 0.11rem;
  right: 0;
  width: 0.87rem;
  mix-blend-mode: multiply;
}

.ind-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  line-height: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}

.ind-title::before,
.ind-title::after {
  content: "";
  flex: 0 0 1.36rem;
  height: 0.01rem;
}

.ind-title::before {
  background: linear-gradient(90deg, transparent, var(--green));
}
.ind-title::after {
  background: linear-gradient(270deg, transparent, var(--green));
}

.ind-sub {
  margin-top: 0.21rem;
  text-align: center;
  font-size: 0.4rem;
  line-height: 0.5rem;
  font-weight: 600;
  color: var(--navy);
}

.ind-desc {
  margin-top: 0.11rem;
  text-align: center;
  font-size: 0.185rem;
  line-height: 0.235rem;
  font-weight: 500;
  color: var(--navy);
}

.ind-grid {
  margin: 0.49rem 0 0 0.15rem;
}

.ind-row {
  display: flex;
  gap: 0.07rem;
}

.ind-row.r2 {
  margin-top: 0.07rem;
}

.tile {
  position: relative;
  height: 1.65rem;
  border-radius: 0.14rem;
  overflow: hidden;
  flex: none;
}

.r2 .tile {
  height: 1.71rem;
}

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

.tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12rem;
  z-index: 2;
  text-align: center;
  font-size: 0.18rem;
  line-height: 0.224rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0.01rem 0.03rem rgba(0, 0, 0, 0.5);
}

/* ============ CTA ============ */
.cta {
  position: relative;
  height: 2.34rem;
  margin: 0.24rem 0.17rem 0 0.15rem;
  border-radius: 0.22rem;
  background: #e6f1fc;
  border: 0.015rem solid #b9d3ec;
}

.cta h2 {
  position: absolute;
  left: 0.31rem;
  top: 0.335rem;
  font-size: 0.44rem;
  line-height: 0.61rem;
  font-weight: 700;
  color: var(--navy);
}

.cta-divider {
  position: absolute;
  left: 6.31rem;
  top: 0.48rem;
  width: 0.01rem;
  height: 0.8rem;
  background: var(--navy);
  opacity: 0.6;
}

.cta p {
  position: absolute;
  left: 6.55rem;
  top: 0.65rem;
  font-size: 0.165rem;
  line-height: 0.224rem;
  font-weight: 500;
  color: var(--navy);
}

.cta-btn {
  position: absolute;
  left: 6.48rem;
  top: 1.43rem;
  margin: 0;
  height: 0.43rem;
  padding: 0 0.28rem;
}

.cta-img {
  position: absolute;
  left: 11.46rem;
  top: 0.17rem;
  width: 2.41rem;
  height: 2.02rem;
  object-fit: contain;
}

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

/* ---- 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 ---- */
.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;
}

/* ==========================================================
   TABLET + MOBILE  (<= 1024px)
   Stops the rem scaling and switches to a stacked, fluid layout
   ========================================================== */
@media (max-width: 1024px) {
  html {
    font-size: 16px; /* reset rem scaling */
  }

  body {
    font-size: 16px;
    line-height: 1.5;
  }

  img {
    max-width: 100%;
  }

  /* optional helper: <br class="d-br" /> is hidden on mobile */
  .d-br {
    display: none;
  }

  /* ---------- HEADER + HAMBURGER ---------- */
  .site-header {
    top: 16px;
    left: 16px;
    right: 16px;
    height: 64px;
    padding: 0 12px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(11, 74, 111, 0.12);
  }

  .logo-link {
    order: 1;
    display: flex;
    align-items: center;
  }

  .logo {
    height: 44px;
  }

  .btn-green {
    order: 2;
    margin-left: auto;
    font-size: 15px;
    padding: 10px 18px;
    gap: 6px;
  }

  .menu-icon {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    font-size: 28px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    border-radius: 12px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-icon:active {
    background: #e8f2fc;
  }

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

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

  .main-nav a {
    display: block;
    font-size: 17px;
    line-height: 1.3;
    padding: 14px 18px;
    border-radius: 12px;
  }

  /* ---------- HERO ---------- */
  .hero {
    height: 750px;
    padding: 118px 24px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-content {
    order: 1;
  }

  .hero-dam {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 380px;
    margin-top: 28px;
    border: 0;
    border-radius: 24px;
    z-index: 2;
  }

  /* decorative duplicate image is not needed on mobile */
  .hero-dam-2 {
    display: none;
  }

  .hero-wave {
    order: 3;
    position: relative;
    top: -90px;
    bottom: auto;
    left: auto;
    width: 350px;
    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: 92px;
    left: -6px;
    width: 64px;
    opacity: 0.7;
  }

  .hero-leaf-mid,
  .hero-leaf-right {
    display: none;
  }

  .hero-label {
    padding: 10px 2px 8px;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    border-bottom-width: 2px;
  }

  .hero-label::before {
    width: 60px;
    height: 2px;
  }

  .hero h1 {
    margin-top: 12px;
    font-size: 48px;
    line-height: 1.1;
    white-space: normal;
  }

  .hero-sub {
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.35;
  }

  .hero-sub::after {
    width: 80px;
    height: 2px;
    margin: 12px 0 0;
  }

  .hero-desc {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.6;
  }

  .hero-desc br,
  .ind-desc br {
    display: none;
  }

  .btn-navy {
    margin-top: 28px;
    font-size: 16px;
    padding: 12px 28px;
    gap: 10px;
  }

  /* ---------- SERVICE CARDS ---------- */
  .s-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 20px 0;
  }

  .s-grid .s-card:nth-child(5),
  .s-grid .s-card:nth-child(6) {
    margin-top: 0;
  }

  .s-card {
    height: auto;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 14px;
    row-gap: 6px;
    align-content: start;
    padding: 16px;
    border-radius: 24px;
    box-shadow:
      0 3px 8px rgba(60, 80, 100, 0.25),
      0 0 0 1px rgba(200, 212, 226, 0.9);
  }

  .s-img {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 190px;
    margin-bottom: 10px;
    border-radius: 16px;
  }

  .s-circle {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 56px;
    height: 56px;
    align-self: center;
  }

  .s-circle svg {
    width: 26px;
    height: 26px;
  }

  .s-card h3 {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 19px;
    line-height: 1.3;
    white-space: normal;
  }

  .s-card p {
    position: static;
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
    white-space: normal;
  }

  .learn {
    position: static;
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.4;
  }

  /* ---------- SERVICE DETAILS ---------- */
  .sd-label {
    gap: 14px;
    margin: 48px 24px 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .sd-label::after {
    width: 60px;
    height: 2px;
  }

  .sd-title {
    margin: 12px 24px 0;
    font-size: 28px;
    line-height: 1.25;
  }

  .sd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 20px 0;
  }

  .sd-card {
    height: auto;
    display: grid;
    grid-template-columns: 48px 1fr 36px;
    column-gap: 14px;
    align-items: center;
    align-content: start;
    padding: 20px;
    border-radius: 22px;
    scroll-margin-top: 16px;
    box-shadow:
      0 3px 8px rgba(60, 80, 100, 0.25),
      0 0 0 1px rgba(200, 212, 226, 0.9);
  }

  .num {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

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

  .sd-icon {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }

  .sd-text {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 16px;
  }

  .sd-text p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    white-space: normal;
  }

  .sd-text p:last-child {
    margin-bottom: 0;
  }

  #service-details {
    scroll-margin-top: 16px;
  }

  /* ---------- INDUSTRIES ---------- */
  .industries {
    margin-top: 48px;
  }

  .ind-leaf {
    top: 4px;
    width: 56px;
    opacity: 0.7;
  }

  .ind-title {
    gap: 14px;
    padding: 0 16px;
    text-align: center;
    font-size: 34px;
    line-height: 1.2;
  }

  .ind-title::before,
  .ind-title::after {
    flex: 1 1 16px;
    max-width: 90px;
  }

  .ind-sub {
    margin: 14px 24px 0;
    font-size: 22px;
    line-height: 1.35;
  }

  .ind-desc {
    margin: 12px 24px 0;
    font-size: 16px;
    line-height: 1.6;
  }

  /* both flex rows become ONE grid of tiles */
  .ind-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 20px 0;
  }

  .ind-row,
  .ind-row.r2 {
    display: contents;
    margin: 0;
  }

  .tile,
  .r2 .tile {
    width: 100% !important; /* beats inline style */
    height: auto;
    aspect-ratio: 1.95 / 1;
    border-radius: 14px;
  }

  /* ---------- CTA ---------- */
  .cta {
    height: auto;
    margin: 40px 16px 0;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .cta h2 {
    position: static;
    font-size: 32px;
    line-height: 1.25;
  }

  .cta-divider {
    position: static;
    width: 64px;
    height: 3px;
    margin: 18px 0;
    opacity: 0.6;
  }

  .cta p {
    position: static;
    font-size: 17px;
    line-height: 1.6;
  }

  .cta .cta-btn {
    position: static;
    margin-top: 22px;
    height: auto;
    padding: 12px 28px;
    font-size: 17px;
  }

  .cta-img {
    position: static;
    align-self: center;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-top: 28px;
  }

  /* ---------- FOOTER ---------- */
  .site-footer .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    height: auto;
    padding: 28px 20px 24px;
    text-align: center;
  }

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

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

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

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

  .site-footer .footer-wave {
    height: 100px;
    background:
      linear-gradient(
        180deg,
        rgba(10, 42, 74, 0.45) 0%,
        rgba(10, 42, 74, 0) 65%
      ),
      url("../assets/footer_boarder.jpg") center 60% / cover no-repeat;
  }
}

/* ==========================================================
   PHONES  (<= 700px)
   ========================================================== */
@media (max-width: 700px) {
  .hero {
    padding: 106px 20px 0;
  }

  .hero-dam {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .hero-wave {
    width: calc(100% + 40px);
    margin: 16px -20px -1px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 19px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .s-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 14px 0;
  }

  .s-card {
    padding: 14px;
  }

  .s-card h3 {
    font-size: 18px;
  }

  .sd-label {
    margin: 40px 20px 0;
  }

  .sd-title {
    margin: 10px 20px 0;
    font-size: 24px;
  }

  .sd-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 14px 0;
  }

  .sd-card {
    grid-template-columns: 44px 1fr 30px;
    column-gap: 12px;
    padding: 18px;
  }

  .num {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .sd-card h3 {
    font-size: 18px;
  }

  .sd-icon {
    width: 30px;
    height: 30px;
  }

  .ind-title {
    gap: 10px;
    font-size: 28px;
  }

  .ind-title::before,
  .ind-title::after {
    max-width: 40px;
  }

  .ind-sub {
    margin: 12px 20px 0;
    font-size: 19px;
  }

  .ind-desc {
    margin: 10px 20px 0;
    font-size: 15px;
  }

  .ind-grid {
    margin: 24px 14px 0;
    gap: 10px;
  }

  .cta {
    margin: 32px 14px 0;
    padding: 26px 20px;
  }

  .cta h2 {
    font-size: 26px;
  }

  .cta p {
    font-size: 16px;
  }

  .site-footer .footer-wave {
    height: 80px;
  }
}

/* ==========================================================
   NARROW PHONES  (<= 560px): industry tiles go single column
   ========================================================== */
@media (max-width: 560px) {
  .ind-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   SMALL PHONES  (<= 400px)
   ========================================================== */
@media (max-width: 400px) {
  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    height: 58px;
    padding: 0 8px;
  }

  .logo {
    height: 38px;
  }

  .btn-green {
    font-size: 14px;
    padding: 9px 14px;
  }

  .btn-green span {
    display: none; /* hide arrow to save space */
  }

  .menu-icon {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .hero {
    padding: 96px 16px 0;
  }

  .hero-wave {
    width: calc(100% + 32px);
    margin: 14px -16px -1px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .sd-title {
    font-size: 22px;
  }

  .ind-title {
    font-size: 25px;
  }

  .ind-title::before,
  .ind-title::after {
    display: none;
  }

  .cta h2 {
    font-size: 24px;
  }
}
