/* ==========================================================
   SCALING SYSTEM: 1rem = 100px of the Figma design (1440px wide)
   (desktop only – mobile/tablet override this below)
   ========================================================== */
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;
  max-width: 100%;
}
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: 20;
  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;
}

/* ============ ABOUT HERO ============ */
.about-hero {
  position: relative;
  height: 8.71rem;
  padding: 2.14rem 0 0 0.36rem;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 14% 7% at 78% 6%,
      rgba(255, 255, 255, 0.9),
      transparent 70%
    ),
    radial-gradient(
      ellipse 16% 8% at 30% 3%,
      rgba(255, 255, 255, 0.85),
      transparent 70%
    ),
    radial-gradient(
      ellipse 12% 6% at 96% 30%,
      rgba(255, 255, 255, 0.8),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      #a9d6f5 0%,
      #d3e9fa 22%,
      #f3f9fe 45%,
      #ffffff 75%,
      #e3f0fb 100%
    );
}

.leaf-tl {
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 1.13rem;
  mix-blend-mode: multiply;
}

.leaf-tr {
  position: absolute;
  top: 1.3rem;
  right: 0;
  width: 1.35rem;
  transform: scaleX(-1);
  mix-blend-mode: multiply;
}

.accent-top {
  position: absolute;
  top: 2rem;
  left: 0.38rem;
  width: 1.42rem;
  height: 0.01rem;
  background: var(--green);
}

.accent-bottom {
  position: absolute;
  top: 8.19rem;
  left: 10.96rem;
  width: 2.54rem;
  height: 0.01rem;
  background: var(--green);
}

.about-hero-text {
  position: relative;
  z-index: 2;
  width: 7.2rem;
}

.about-hero h1 {
  font-size: 0.56rem;
  line-height: 0.72rem;
  font-weight: 700;
  color: var(--navy);
}

.about-sub {
  margin: 0.13rem 0 0.41rem 0.09rem;
  font-size: 0.28rem;
  line-height: 0.36rem;
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
}

.about-hero-text p {
  font-size: 0.195rem;
  line-height: 0.24rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.24rem;
}

.about-hero-img {
  position: absolute;
  top: 2.25rem;
  right: 0.36rem;
  width: 6.64rem;
  height: 5.37rem;
  object-fit: cover;
  border-radius: 0.32rem;
  z-index: 2;
}

/* ============ OUR APPROACH ============ */
.approach {
  position: relative;
  height: 3.72rem;
  margin-right: 0.08rem;
  background: #e8f1fc;
}

.approach-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 4.27rem;
  height: 3.72rem;
  object-fit: cover;
}

.approach-divider {
  position: absolute;
  top: 0.27rem;
  left: 4.95rem;
  width: 0.01rem;
  height: 3.15rem;
  background: #6f8196;
}

.approach-text {
  position: absolute;
  top: 0.29rem;
  left: 5.92rem;
}

.approach-text h2 {
  font-size: 0.54rem;
  line-height: 0.64rem;
  font-weight: 700;
  color: var(--navy);
}

.title-line {
  display: block;
  width: 0.9rem;
  height: 0.02rem;
  background: var(--green);
  margin: 0.04rem 0 0.27rem;
}

.approach-text p {
  font-size: 0.195rem;
  line-height: 0.24rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.24rem;
}

/* ============ MISSION & VISION ============ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.23rem;
  margin: 0.45rem 0.3rem 0 0.36rem;
}

.mv-card {
  position: relative;
  height: 2.55rem;
  border-radius: 0.36rem;
  background: linear-gradient(135deg, #ffffff 0%, #f1f6fc 60%, #e9f1fa 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);
}

.mv-icon {
  position: absolute;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mission-icon {
  left: 0.16rem;
  top: 0.32rem;
  width: 1.63rem;
  height: 1.48rem;
}
.vision-icon {
  left: 0;
  top: 0.49rem;
  width: 1.75rem;
  height: 1.13rem;
}

.mv-text {
  position: absolute;
  top: 0.29rem;
}
.mission-text {
  left: 2.24rem;
}
.vision-text {
  left: 2.12rem;
}

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

.mv-line {
  display: block;
  width: 0.88rem;
  height: 0.02rem;
  background: var(--green);
  margin-bottom: 0.18rem;
}

.mv-text p {
  font-size: 0.185rem;
  line-height: 0.24rem;
  font-weight: 500;
  color: var(--navy);
}

/* ============ WHY CHOOSE US ============ */
.why-title {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0.4rem 0.36rem 0.56rem;
  font-size: 0.5rem;
  line-height: 0.62rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.why-title::before,
.why-title::after {
  content: "";
  flex: 1;
  height: 0.01rem;
  background: #c5d3df;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.22rem 0.28rem;
  padding: 0 0.27rem 0 0.67rem;
}

.why-card {
  position: relative;
  height: 1.41rem;
  display: flex;
  align-items: center;
  background: #eaf2fc;
  border-radius: 0.24rem;
}

.why-icon {
  position: absolute;
  left: var(--il);
  top: 50%;
  width: var(--iw);
  transform: translateY(-50%);
  fill: none;
  stroke: var(--navy);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-text {
  margin-left: var(--tl);
}

.why-text h3 {
  font-size: 0.19rem;
  line-height: 0.2rem;
  font-weight: 700;
  color: var(--navy);
}

.why-text p {
  margin-top: 0.14rem;
  font-size: 0.13rem;
  line-height: 0.15rem;
  font-weight: 500;
  color: var(--navy);
}

.why-card.loose .why-text p {
  margin-top: 0.2rem;
  line-height: 0.2rem;
}

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

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

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

  /* ---------- ABOUT HERO ---------- */
  .about-hero {
    height: auto;
    padding: 120px 24px 48px;
    display: flex;
    flex-direction: column;
  }

  .leaf-tl {
    top: 90px;
    width: 64px;
    opacity: 0.7;
  }

  .leaf-tr {
    top: 100px;
    width: 76px;
    opacity: 0.7;
  }

  .accent-top,
  .accent-bottom {
    display: none;
  }

  .about-hero-text {
    width: 100%;
  }

  .about-hero h1 {
    font-size: 40px;
    line-height: 1.2;
  }

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

  .about-hero-text p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  /* remove forced desktop line breaks inside paragraphs */
  .about-hero-text p br,
  .approach-text p br,
  .mv-text p br {
    display: none;
  }

  .about-hero-img {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-top: 16px;
    border-radius: 24px;
  }

  /* ---------- APPROACH ---------- */
  .approach {
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .approach-img {
    position: relative;
    width: 100%;
    height: 260px;
  }

  .approach-divider {
    display: none;
  }

  .approach-text {
    position: static;
    padding: 32px 24px 16px;
  }

  .approach-text h2 {
    font-size: 36px;
    line-height: 1.2;
  }

  .title-line {
    width: 72px;
    height: 3px;
    margin: 8px 0 20px;
  }

  .approach-text p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  /* ---------- MISSION & VISION ---------- */
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 16px 0;
  }

  .mv-card {
    height: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    border-radius: 24px;
    box-shadow:
      0 3px 8px rgba(60, 80, 100, 0.25),
      0 0 0 1px rgba(200, 212, 226, 0.9);
  }

  .mv-icon,
  .mission-icon,
  .vision-icon {
    position: static;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
  }

  .mv-text,
  .mission-text,
  .vision-text {
    position: static;
    flex: 1;
    min-width: 0;
  }

  .mv-text h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .mv-line {
    width: 64px;
    height: 3px;
    margin: 6px 0 14px;
  }

  .mv-text p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* ---------- WHY CHOOSE US ---------- */
  .why-title {
    display: block;
    text-align: center;
    white-space: normal;
    margin: 48px 20px 28px;
    font-size: 34px;
    line-height: 1.25;
  }

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

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 16px 48px;
  }

  .why-card,
  .why-card.loose {
    height: auto;
    min-height: 120px;
    padding: 20px;
    gap: 16px;
    border-radius: 20px;
    align-items: center;
  }

  .why-icon {
    position: static;
    transform: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    stroke-width: 1.1;
  }

  .why-text {
    margin-left: 0;
    min-width: 0;
  }

  .why-text h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .why-text p,
  .why-card.loose .why-text p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  /* ---------- 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) {
  .about-hero {
    padding: 108px 20px 40px;
  }

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

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

  .about-hero-text p,
  .approach-text p {
    font-size: 16px;
    line-height: 1.6;
  }

  .about-hero-img {
    aspect-ratio: 4 / 3.2;
    border-radius: 20px;
  }

  .approach-img {
    height: 210px;
  }

  .approach-text {
    padding: 28px 20px 12px;
  }

  .approach-text h2 {
    font-size: 30px;
  }

  .mv-grid {
    margin: 28px 14px 0;
  }

  .mv-card {
    padding: 24px 18px;
    gap: 14px;
  }

  .mv-icon,
  .mission-icon,
  .vision-icon {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
  }

  .mv-text h2 {
    font-size: 26px;
  }

  .mv-text p {
    font-size: 15px;
  }

  .why-title {
    margin: 40px 16px 24px;
    font-size: 28px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 40px;
  }

  .why-card,
  .why-card.loose {
    min-height: 104px;
    padding: 18px;
  }

  .why-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .why-text h3 {
    font-size: 17px;
  }

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

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

  .about-hero {
    padding: 96px 16px 32px;
  }

  .about-hero h1 {
    font-size: 30px;
  }

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

  .mv-card {
    flex-direction: column;
    text-align: center;
  }

  .mv-line {
    margin-left: auto;
    margin-right: auto;
  }

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