/* ═══════════════ ELUNOR — Shared Styles ════════════════ */

/* BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-800);
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}



/* ── Scroll reveals — CSS transitions triggered by IntersectionObserver ─────────────
   These run entirely off the main thread. No GSAP ScrollTrigger / no scroll handlers. ── */
[data-gs="up"] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1), transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-gs="left"] {
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-gs="right"] {
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* On touch/mobile — only vertical reveal to avoid horizontal overflow */
@media (hover: none),
(pointer: coarse) {

  [data-gs="left"],
  [data-gs="right"] {
    transform: translateY(32px);
    transition: opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1), transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Revealed state */
[data-gs].gs-visible {
  opacity: 1;
  transform: none;
}

/* NAV */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: calc(100% - 48px);
  max-width: 1150px;
  margin: 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0;
  gap: 14px;
  opacity: 0;
  transform: translateY(-28px);

}

/* ── Logo pill ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 50px;
  padding: 13px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  flex-shrink: 0;
  transition: box-shadow .35s, transform .3s;
}

.nav-logo:hover {
  box-shadow: 0 6px 32px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.nav-logo-img {
  width: 88px;
  height: auto;
  display: block;
}

/* ── Nav links pill ── */
.nav-links-pill {
  background: #fff;
  border-radius: 50px;
  padding: 8px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  justify-content: space-evenly;
  gap: 2px;
}

.nav-links li a {
  display: block;
  padding: 11px 16px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-600);
  white-space: nowrap;
  border-radius: 50px;
  transition: color .25s, background .25s;
}

.nav-links li a:hover {
  color: var(--text-900);
  border-bottom-color: rgba(189, 213, 146, 0.5);
  /* Semi-transparent underline */
}

/* Active State */
.nav-links li a.active {
  color: var(--green-400);
  border-bottom-color: var(--green-400);
  /* Solid matching underline */
}

/* ── CTA button ── */
.nav-cta {
  background: var(--lime-hover);
  color: var(--text-800);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 34px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(206, 253, 62, .10);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .35s, transform .3s, box-shadow .35s;
}

.nav-cta:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(206, 253, 62, .55);
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: var(--lime-300);
  border: none;
  outline: none;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(206, 253, 62, .45);
}

.hamburger:hover {
  background: var(--lime-hover);
  transform: scale(1.06);
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 20px;
  background: var(--text-800);
  border-radius: 2px;
  transition: transform .35s, opacity .3s;
  transform-origin: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 20, 5, .97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.open {
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--lime-500);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.mobile-menu a.mobile-cta {
  color: var(--lime-300);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 12px 14px;
  z-index: 0;
  border-radius: 36px;
  transform-origin: center;
  overflow: hidden;
}

/* 1 · Ken Burns — photo slowly drifts/zooms inside the rounded frame */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('assets/images/solar-hero.png') center 40%/cover no-repeat;
  transform-origin: 60% 40%;
  animation: hero-kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-img { animation: none; }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 10, 0, .10) 0%, rgba(0, 10, 0, .05) 38%, rgba(0, 0, 0, .58) 100%);
  border-radius: inherit;
}

/* ── Decorative oversized title — NOT layout flow ── */
.hero-title-wrap {
  position: absolute;
  z-index: 3;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;

}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 20vw, 218px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  margin-top: 15px;

}

/* Each letter carries the fade (so letters can animate individually).
   Bright at top → fully transparent over the bottom 10%, so the word
   looks like it sits BEHIND the city skyline. */
.hero-title span {
  display: inline-block;
  /* Bebas glyphs fill only ~12%–84% of the line box, so the stops are
     measured against the letter shape: gone well before the skyline. */
  background: linear-gradient(to bottom,
      rgb(255 255 255 / 95%) 0%,
      rgb(255 255 255 / 88%) 22%,
      rgb(255 255 255 / 40%) 46%,
      rgb(255 255 255 / 0%)  68%,
      rgb(255 255 255 / 0%)  100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  will-change: transform, opacity;
}

.hero-bottom {
  position: absolute;
  z-index: 6;
  bottom: 52px;
  left: 0;
  right: 0;
  padding: 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-tag1 {
  font-size: clamp(3.55rem, 4vw, 4.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.hero-tag2 {
  font-size: clamp(3.55rem, 4vw, 4.6rem);
  font-weight: 800;
  color: var(--lime-soft);
  line-height: 1.15;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(32px);
  will-change: transform, opacity;
}

/* 7 · Headline words slide up from behind a mask */
.hero-tag1 .hw,
.hero-tag2 .hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;   /* keep descenders (g, y, p) inside the mask */
  margin-bottom: -0.08em;
}
.hero-tag1 .hw > span,
.hero-tag2 .hw > span { display: inline-block; will-change: transform; }

/* "Sustainably" — light shimmer sweeps through after the reveal */
.hero-tag2.is-shimmer .hw > span {
  background: linear-gradient(90deg,
      var(--lime-soft) 0%, var(--lime-soft) 35%,
      #f4ffd0 50%,
      var(--lime-soft) 65%, var(--lime-soft) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-shimmer 4.5s linear infinite;
}
@keyframes hero-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -150% 0; }
}

.hero-btn {
  display: inline-block;
  width: fit-content;
  background: var(--lime-300);
  color: var(--green-900);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background .4s, box-shadow .4s;
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
}

.hero-btn:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(140, 200, 0, .45);
}

.hero-stats {
  display: flex;
  gap: 14px;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

/* Removed backdrop-filter: blur — causes GPU compositing thrash on scroll */
.stat-box {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 22px;
  padding: 20px 36px;
  min-width: 148px;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10);
}

.stat-num {
  display: block;
  font-size: 4.7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-lbl {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .88);
  line-height: 1.45;
}

/* ABOUT */
.about {
  background: var(--bg-mint);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 80px;
}

/* About — full final colours always set; GSAP scrubs opacity only (GPU-composited, no repaint) */
.about-hl {
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.20;
  color: var(--green-800);
  opacity: 0.1;
  will-change: opacity;
}

.about-hl em {
  font-style: normal;
  background: linear-gradient(170deg, var(--lime-600) 0%, var(--green-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  will-change: opacity;
}

.about-p {
  font-size: clamp(1.50rem, 1.4vw, 1.35rem);
  line-height: 1.72;
  color: var(--text-sage);
  opacity: 0.06;
  will-change: opacity;
}

.about-p strong {
  color: var(--text-900);
  font-weight: 700;
}

/* SERVICES ACCORDION */
.services {
  background: #fff;
  padding: 96px 80px;
}

.sec-title-wrap {
  text-align: center;
  margin-bottom: 72px;
}

.sec-title {
  font-size: clamp(3.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text-900);
  position: relative;
  display: inline-block;
}

.sec-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 38px;
  background: var(--text-900);
  border-radius: 2px;
  margin: 10px auto 0;
}

.svc-list {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Item — 2-col grid at item level so image aligns with heading ── */
.svc-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  cursor: pointer;
  /* Remove mobile tap highlight */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.svc-item:focus,
.svc-item:focus-visible,
.svc-item *:focus,
.svc-item *:focus-visible {
  outline: none;
}

.svc-item:active,
.svc-item *:active {
  -webkit-tap-highlight-color: transparent;
}

/* Left column: header + animated body */
.svc-left {
  min-width: 0;
}

/* ── Header: number stacked above large title ── */
.svc-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 56px 0 44px;
  gap: 10px;
}

.svc-n {
  font-size: 0.78rem;
  font-weight: 500;
  color: #c0c4cc;
  letter-spacing: .14em;
}

.svc-t {
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  font-weight: 400;
  color: #c2c4cc;
  line-height: 1.12;
  transition: color .4s ease;
}

.svc-item:hover .svc-t,
.svc-item.is-open .svc-t {
  color: #111827;
  font-weight: 700;
}

/* ── Body (left col only — pills + text, height animated) ── */
.svc-body {
  height: 0;
  overflow: hidden;
  will-change: height;
}

.svc-body-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 0 60px;
}

/* ── Pills ── */
.svc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.svc-pill {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--green-500);
  color: var(--green-500);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .25s, color .25s;
}

.svc-item.is-open .svc-pill:hover {
  background: var(--green-500);
  color: #fff;
}

/* ── Body text ── */
.svc-body-text p {
  font-size: 1.0rem;
  line-height: 1.80;
  color: var(--text-600);
}

/* ── Image column — height:0 when closed, animated by JS ── */
.svc-img-col {
  overflow: hidden;
  height: 0;
  opacity: 0;
  will-change: height, opacity;
  margin-top: 83px;
}

.svc-body-img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.svc-body-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OUR ADVANTAGE */
.advantage {
  background: var(--bg-mint-2);
  padding: 96px 80px;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 300px 300px;
  gap: 16px;
  max-width: 1040px;
  margin: 58px auto 0;
}

.adv-card:nth-child(1) {
  grid-column: 1/7;
  grid-row: 1;
}

.adv-card:nth-child(2) {
  grid-column: 7/11;
  grid-row: 1;
}

.adv-card:nth-child(3) {
  grid-column: 1/5;
  grid-row: 2;
}

.adv-card:nth-child(4) {
  grid-column: 5/11;
  grid-row: 2;
}

.adv-card {
  border-radius: 20px;
  overflow: hidden;
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  transition: transform .55s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow .55s;
}

.adv-card:hover {
  transform: translateY(-5px);
}

.adv--white {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
  
}

.adv--white:hover {
  box-shadow: 0 12px 40px rgba(74, 144, 217, .22);
}

.adv--img {
  background: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?w=900&q=85') center/cover no-repeat;
}

.adv--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .65) 100%);
  border-radius: inherit;
}

.adv--lime {
  background: var(--lime-hover);
}

.adv--lime:hover {
  box-shadow: 0 12px 40px rgba(150, 210, 0, .30);
}

.adv--light {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
  border: 1px solid var(--border-light);
}

.adv--light:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
}

.adv-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--lime-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-badge svg {
  width: 17px;
  height: 17px;
}

.adv-body {
  position: relative;
  z-index: 1;
}

.adv-t {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-800);
}

.adv-d {
  font-size: 19px;
  line-height: 1.72;
  max-width: 420px;
}

.adv--white .adv-t {
  color: var(--text-900);
}

.adv--white .adv-d {
  color: var(--text-sage);
}

.adv--img .adv-t {
  color: #fff;
  font-size: 1.25rem;
}

.adv--lime .adv-t {
  color: var(--green-900);
  font-size: 1.2rem;
}

.adv--light .adv-t {
  color: var(--text-900);
}

.adv--light .adv-d {
  color: var(--text-sage);
}

/* QUOTE */
.quote {
  background: url('assets/images/home-quote.webp') center center / cover no-repeat;
  padding: 120px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  pointer-events: none;
}

.quote::before {
  content: '\201C';
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  font-size: 600px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .022);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.quote-q {
  position: relative;
  z-index: 3;
  font-size: clamp(2.35rem, 3.8vw, 3.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  max-width: 880px;
  margin: 0 auto;
}

.quote-q em {
  color: var(--lime-500);
  font-style: normal;
}

.quote-btns {
  position: relative;
  z-index: 3;
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ls {
  display: inline-block;
  background: var(--lime-500);
  color: var(--green-900);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 50px;
  transition: background .4s, transform .4s, box-shadow .4s;
}

.btn-ls:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(150, 210, 0, .35);
}

.btn-ow {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, .40);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 50px;
  transition: border-color .4s, transform .4s;
}

.btn-ow:hover {
  border-color: rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, .55);
  padding: 72px 80px 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  align-items: start;
}

.footer-bht {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 28px;
}

.footer-srch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  overflow: hidden;
  max-width: 220px;
}

.footer-srch input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.80rem;
  padding: 10px 16px;
  flex: 1;
}

.footer-srch input::placeholder {
  color: rgba(255, 255, 255, .28);
}

.footer-srch button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  color: rgba(255, 255, 255, .4);
  transition: color .2s;
}

.footer-srch button:hover {
  color: var(--lime-500);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .60);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: color .35s;
}

.footer-nav a:last-child {
  border-bottom: none;
}

.footer-nav a::after {
  content: '→';
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .3);
  transition: color .35s, transform .35s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav a:hover::after {
  color: var(--lime-500);
  transform: translateX(4px);
}

.footer-bot {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .28);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-mark-logo svg {
  width: 28px;
  height: 28px;
}

.footer-mark-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .10em;
  line-height: 1;
}

.footer-mark-text sup {
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .6);
}

/* Footer logo image */
.footer-logo-img img {
  width: 247px;
  display: block;
  -webkit-user-drag: none;
}

/* ═══════════ RESPONSIVE ═══════════ */

/* ── Laptop (≤1280px) — decorative title: 220px ── */
@media (max-width: 1280px) {
  .hero-title {
    font-size: 220px;
  }
}

/* ── Tablet / large mobile (≤860px) — decorative title: 160px ── */
@media (max-width: 860px) {

  /* Nav */
  .nav {
    width: calc(100% - 32px);
    padding: 16px 0;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .nav-links-pill {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* ── Hero — use svh (stable small viewport) to avoid height jump when address bar hides/shows ── */
  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  /* Remove side inset on mobile — image fills width; keep tiny inset for top/bottom rounded look */
  .hero-bg {
    inset: 10px 10px 0 10px;
    border-radius: 20px 20px 0 0;
  }

  .hero-bg-img {
    background-image: url('assets/images/mobile-hero.webp');
    background-position: center 40%;
  }

  /* Decorative title: 160px at tablet */
  .hero-title-wrap {
    top: 38%;
  }

  .hero-title {
    font-size: 160px;
  }

  /* Bottom row: stack vertically, anchored inside image */
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    bottom: 36px;
    padding: 0 22px;
    left: 0;
    right: 0;
  }

  /* Text tags */
  .hero-tag1 {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
  }

  .hero-tag2 {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
    margin-bottom: 10px;
  }

  .hero-btn {
    font-size: 0.86rem;
    padding: 13px 26px;
  }

  /* Stats */
  .hero-stats {
    width: 100%;
    gap: 10px;
  }

  .stat-box {
    flex: 1;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .stat-num {
    font-size: 1.9rem;
  }

  .stat-lbl {
    font-size: 0.70rem;
    margin-top: 5px;
  }

  /* Sections */
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 28px;
  }

  .about-hl {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    line-height: 1.14;
  }

  .about-p {
    font-size: 32px;
    font-weight: 300;
  }

  .services {
    padding: 64px 28px;
  }

  .advantage {
    padding: 64px 20px;
  }

  /* Mobile layout matching screenshot:
     Card 1 (white)  — full width
     Card 2 (image) + Card 3 (lime) — side by side
     Card 4 (white)  — full width  */
  .adv-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }

  .adv-card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 160px;
  }

  .adv-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    min-height: 180px;
  }

  .adv-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    min-height: 180px;
  }

  .adv-card:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 160px;
  }

  .adv-t {
    font-size: 1.05rem;
  }

  .adv-d {
    font-size: 0.80rem;
  }

  .quote {
    padding: 80px 28px;
  }

  .footer {
    padding: 48px 28px 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-srch {
    max-width: 100%;
  }

  .footer-bot {
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .footer-logo-img {
    margin: 0 auto;
  }
}

/* ── Small mobile (≤600px) — decorative title: 72px ── */
@media (max-width: 600px) {
  .hero-title-wrap {
    top: 36%;
  }

  .hero-title {
    font-size: 72px;
  }

  .hero-tag1 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .hero-tag2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .hero-btn {
    padding: 12px 22px;
  }

  .stat-num {
    font-size: 1.7rem;
  }

  .svc-header {
    padding: 28px 0 22px;
  }

  .svc-t {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
    max-width: 100%;
  }

  .svc-pill {
    font-size: 0.80rem;
    padding: 8px 18px;
  }

  .svc-img-col {
    margin-top: 0px;
  }
}

/* ── Very small (≤420px) — decorative title stays 72px ── */
@media (max-width: 420px) {
  .nav {
    padding: 14px 16px;
  }

  .hero-title {
    font-size: 72px;
  }

  .hero-bottom {
    bottom: 28px;
    padding: 0 18px;
    gap: 12px;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat-box {
    padding: 12px 14px;
  }

  /* Keep advantage 2-col layout even on very small screens */
  .adv-card:nth-child(2),
  .adv-card:nth-child(3) {
    min-height: 150px;
  }

  .svc-img-col {
    margin-top: 0px;
  }
}

/* ═══════════════════════════════════════════════
   INNER PAGES — SHARED STYLES
═══════════════════════════════════════════════ */

/* Utility */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad {
  padding: 96px 0;
}

.section-sub {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
}

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-900) 55%, var(--green-700) 100%);
  padding: 160px 40px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(158, 208, 30, .15) 0%, transparent 65%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-sub {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime-500);
  margin-bottom: 14px;
}

.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* CTA STRIP */
.cta-strip {
  background: linear-gradient(135deg, var(--green-500), var(--green-500));
  padding: 80px 40px;
}

/* MISSION / VISION CARDS */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.mv-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}

.mv-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .12);
  transform: translateY(-4px);
}

.mv-icon {
  margin-bottom: 18px;
}

.mv-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.mv-card p {
  font-size: .9rem;
  color: var(--text-600);
  line-height: 1.65;
}

/* ABOUT WHO */
.about-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-who-img {
  border-radius: 16px;
  overflow: hidden;
}

.about-who-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.about-who-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 16px;
}

.about-who-text p {
  color: var(--text-600);
  line-height: 1.7;
  font-size: .95rem;
}

/* On mobile: show text first, image second */
@media (max-width: 860px) {
  .about-who-grid {
    gap: 36px;
  }

  .about-who-img {
    order: 2;
    min-height: 260px;
    background-size: cover;
  }

  .about-who-text {
    order: 1;
  }
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.team-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .12);
  transform: translateY(-4px);
}

/* SERVICES PAGE */
.services-pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.srv-pg-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}

.srv-pg-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .12);
  transform: translateY(-4px);
}

.srv-pg-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-mint-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.srv-pg-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.srv-pg-card p {
  font-size: .88rem;
  color: var(--text-600);
  line-height: 1.65;
  margin-bottom: 16px;
}

.srv-points {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.srv-points li {
  font-size: .83rem;
  color: var(--text-700);
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.srv-points li::before {
  content: '✓';
  color: var(--green-500);
  font-weight: 700;
  flex-shrink: 0;
}

.srv-pg-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--green-500);
  transition: gap .2s;
  margin-top: auto;
}

.srv-pg-link:hover {
  color: var(--green-500);
}

/* PROCESS STEPS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 26px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--lime-500);
}

.process-step:last-child::after {
  display: none;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.process-step h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-step p {
  font-size: .82rem;
  color: var(--text-500);
  line-height: 1.6;
}

/* IMPACT STATS */
.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.impact-stat-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}

.impact-stat-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .12);
  transform: translateY(-4px);
}

.impact-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.impact-val {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green-500);
  line-height: 1;
}

.impact-unit {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--lime-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 4px 0 8px;
}

.impact-label {
  font-size: .85rem;
  color: var(--text-600);
  line-height: 1.5;
  margin: 0;
}

/* SDG */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sdg-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
}

.sdg-num {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.sdg-card h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sdg-card p {
  font-size: .82rem;
  color: var(--text-500);
  line-height: 1.6;
}

/* CASE STUDIES */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.case-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .12);
  transform: translateY(-4px);
}

/* CLIENTS */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.sector-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}

.sector-card:hover {
  box-shadow: 0 8px 24px rgba(46, 125, 50, .12);
  transform: translateY(-3px);
}

.sector-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.sector-card span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-800);
}

/* MARQUEE */
.logo-marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-logo {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-400);
  padding: 14px 40px;
  border-right: 1px solid var(--border-light);
  white-space: nowrap;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* TESTIMONIALS */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow .25s, transform .25s;
}

.testi-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .1);
  transform: translateY(-4px);
}

.testi-text {
  font-size: .9rem;
  color: var(--text-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--text-900);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.ci-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.ci-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ci-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ci-item p {
  font-size: .87rem;
  color: var(--text-600);
  line-height: 1.7;
}

.ci-item a {
  color: var(--green-500);
}

.ci-item a:hover {
  text-decoration: underline;
}

/* PROJECTS */
.proj-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.proj-filter {
  background: #fff;
  border: 1.5px solid var(--border-light);
  color: var(--text-700);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
}

.proj-filter:hover,
.proj-filter.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.proj-card:hover {
  box-shadow: 0 12px 32px rgba(46, 125, 50, .12);
  transform: translateY(-4px);
}

.proj-thumb {
  height: 180px;
}

.proj-info {
  padding: 20px;
}

.proj-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-500);
  background: var(--bg-mint-2);
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 10px;
}

.proj-info h4 {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-meta span {
  font-size: .78rem;
  color: var(--text-500);
}

/* RESPONSIVE — inner pages */
@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sdg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 24px;
  }

  .section-pad {
    padding: 64px 0;
  }

  .page-hero {
    padding: 140px 24px 72px;
  }

  /* Keep 2-col cards — single column is too narrow for card content */
  .mv-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-who-grid {
    grid-template-columns: 1fr;
  }

  .services-pg-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-step::after {
    display: none;
  }

  .impact-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Accordion — tablet: stack to single column */
  .svc-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .svc-img-col {
    padding-top: 0;
  }

  .svc-header {
    padding: 36px 0 28px;
    gap: 7px;
  }

  .svc-t {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
  }

  .svc-body-img {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 560px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .services-pg-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .impact-stats-grid {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .proj-grid {
    grid-template-columns: 1fr;
  }

  .sdg-grid {
    grid-template-columns: 1fr;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Accordion — compact on small phones */
  .svc-header {
    padding: 20px 0 16px;
    gap: 14px;
  }

  .svc-n {
    display: none;
  }

  .svc-body-inner {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 20px;
  }
}