/* ==========================================================
   SCALING SYSTEM
   1rem = 100px of the Figma design (frame width 1440px).
   So .18rem = 18px, 1.22rem = 122px, etc.
   The whole page scales with the browser width (desktop).
   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;
  --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.51rem;
  left: 0.34rem;
  right: 0.34rem;
  height: 0.71rem;
  z-index: 20;
  background: #ffffff;
  border-radius: 0.2rem;
  padding: 0 0.17rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0.04rem 0.18rem rgba(11, 74, 111, 0.08);
}

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

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

.main-nav a {
  font-size: 0.18rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--navy);
  padding: 0.11rem 0.17rem;
  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 {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  font-size: 0.22rem;
  line-height: 0.28rem;
  font-weight: 700;
  color: var(--navy);
}

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

.hero h1 {
  margin-top: 0.1rem;
  font-size: 0.5rem;
  line-height: 0.68rem;
  font-weight: 700;
  color: var(--navy);
}

.hero h1 .green {
  display: block;
  font-size: 0.64rem;
  line-height: 0.76rem;
}

.hero-sub {
  margin-top: 0.2rem;
  font-size: 0.18rem;
  line-height: 0.24rem;
  font-weight: 600;
  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;
}

/* ============ INTRO ============ */
.intro {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 4.44rem;
  padding-top: 0.35rem;
}

.intro-image {
  width: 4.85rem;
  flex: none;
}

.intro-image img {
  width: 100%;
  height: 4.1rem;
  object-fit: contain;
  object-position: left bottom;
  mix-blend-mode: multiply;
}

.intro-text {
  margin-left: 0.06rem;
  padding-top: 0.1rem;
  position: relative;
  z-index: 2;
}

.intro-text p {
  font-size: 0.2rem;
  line-height: 0.272rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.26rem;
}

.intro-leaf {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============ PARTNER BANNER ============ */
.partner-banner {
  position: relative;
  margin: 0 0.34rem;
  height: 0.89rem;
  background: #e3eef8;
  border-radius: 0.24rem;
  display: flex;
  align-items: center;
  padding-left: 0.63rem;
}

.handshake {
  height: 0.52rem;
  width: auto;
  mix-blend-mode: multiply;
}

.banner-divider {
  width: 0.01rem;
  height: 0.4rem;
  background: var(--navy);
  margin: 0 0.23rem 0 0.32rem;
}

.partner-banner p {
  font-size: 0.22rem;
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
}

.banner-leaf {
  position: absolute;
  right: 0.4rem;
  bottom: -0.02rem;
  height: 0.98rem;
  width: auto;
  mix-blend-mode: multiply;
}

/* ============ SERVICES ============ */
.services {
  padding-top: 0.06rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  font-size: 0.44rem;
  line-height: 0.56rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.49rem;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 0 0 2.55rem;
  height: 0.02rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem 0.35rem;
  padding: 0 0.59rem;
}

.service-card {
  height: 1.52rem;
  background: #eaf3fd;
  border-radius: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-0.05rem);
}

.service-card svg {
  width: 0.4rem;
  height: 0.4rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 0.19rem;
  line-height: 0.27rem;
  font-weight: 600;
  color: var(--navy);
}

/* ============ CTA ============ */
.cta {
  position: relative;
  margin: 0.29rem 0.45rem 0;
  height: 3.3rem;
  border-radius: 0.3rem;
  overflow: hidden;
  background: linear-gradient(90deg, #e4eefa 0%, #e4eefa 55%, #cfe3f5 100%);
}

.cta-text {
  position: relative;
  z-index: 2;
  padding: 0.29rem 0 0 0.34rem;
}

.cta-text h2 {
  font-size: 0.48rem;
  line-height: 0.66rem;
  font-weight: 700;
  color: var(--navy);
}

.cta-line {
  display: block;
  width: 0.56rem;
  height: 0.02rem;
  background: var(--navy);
  opacity: 0.5;
  margin: 0.12rem 0 0.15rem;
}

.cta-text p {
  font-size: 0.17rem;
  line-height: 0.245rem;
  color: var(--navy);
}

.cta-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 6.97rem;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
}

/* ============ 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: 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: 800px;
    display: flex;
    flex-direction: column;
    padding: 110px 20px 30px; /* was 150px at the bottom */
    overflow: hidden;
  }

  .hero br {
    display: none;
  }

  .hero-content {
    order: 1;
  }

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

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

  .hero h1 {
    margin-top: 10px;
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.2;
  }

  .hero h1 .green {
    font-size: 1.15em;
    line-height: 1.15;
  }

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

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

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

  .hero-dam-2,
  .hero-leaf-mid {
    display: none;
    width: 900px;
    left: 0px;
    right: 2500px;
  }

  .hero-wave {
    order: 3;
    position: relative;
    top: -103px;
    bottom: auto;
    left: auto;
    width: 950px; /* full screen width */
    max-width: none;
    height: auto;
    margin: -90px -20px 0; /* more negative = wave moves up */
    z-index: 3;
  }

  .hero-leaf-left {
    top: 700px;
    left: -103px;
    bottom: 40px;
    width: 149px;
  }

  .hero-leaf-right {
    top: 590px;
    right: -103px;
    bottom: 40px;
    width: 169px;
  }

  /* ---------- intro ---------- */
  .intro {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 10px;
  }

  .intro br {
    display: none;
  }

  .intro-image {
    width: 100%;
    max-width: 210px; /* was 320px, the droplet was too big */
    margin: 0 auto;
  }

  .intro-image img {
    height: auto;
    margin: 0 auto;
  }

  .intro-text {
    margin: 0;
    padding: 10px 0;
  }

  .intro-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .intro-leaf {
    width: 140px;
    opacity: 0.4;
  }

  /* ---------- partner banner ---------- */
  .partner-banner {
    margin: 10px 14px 0;
    height: auto;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    border-radius: 18px;
  }

  .handshake {
    height: 44px;
  }

  .banner-divider {
    display: none;
  }

  .partner-banner p {
    font-size: 17px;
    line-height: 1.4;
  }

  .banner-leaf {
    right: 12px;
    bottom: -6px;
    height: 56px;
  }

  /* ---------- services ---------- */
  .services {
    padding-top: 24px;
  }

  .section-title {
    gap: 12px;
    margin-bottom: 24px;
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.2;
  }

  .section-title::before,
  .section-title::after {
    flex: 0 0 clamp(24px, 8vw, 80px);
    height: 2px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 14px;
  }

  .service-card {
    height: auto;
    min-height: 130px;
    padding: 16px 10px;
    gap: 10px;
    border-radius: 16px;
  }

  .service-card svg {
    width: 32px;
    height: 32px;
  }

  .service-card h3 {
    font-size: 15px;
    line-height: 1.3;
  }

  .service-card br {
    display: none;
  }

  /* ---------- CTA ---------- */
  .cta {
    margin: 24px 14px 0;
    height: auto;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
  }

  .cta br {
    display: none;
  }

  .cta-text {
    padding: 24px 20px 12px;
  }

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

  .cta-line {
    width: 40px;
    height: 2px;
    margin: 12px 0;
  }

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

  .cta-image {
    position: relative;
    width: 100%;
    height: 200px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* ---------- footer ---------- */
  .site-footer {
    margin-top: 24px;
  }

  .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) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 110px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .partner-banner p {
    font-size: 16px;
  }
}
