/* ================================================
   ELUNOR — Homepage Styles
   Converted from Figma spec (1512px canvas)
   ================================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@200;400;500;600;700&family=Manrope:wght@400&family=Bebas+Neue&display=swap');

/* Gilroy (self-hosted or via CDN fallback) */
@font-face {
  font-family: 'Gilroy-Bold';
  src: url('assets/fonts/Gilroy-Bold.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy-SemiBold';
  src: url('assets/fonts/Gilroy-SemiBold.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy-Medium';
  src: url('assets/fonts/Gilroy-Medium.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; background: #fff; }

/* ---------- PAGE WRAPPER ---------- */
.page-wrapper {
  position: relative;
  width: 1512px;
  min-height: 5358px;
  margin: 0 auto;
  background: #FFFFFF;
}

/* ================================================
   1. NAVIGATION
   ================================================ */
.navbar {
  position: absolute;
  width: 1299px;
  height: 98px;
  left: 105px;
  top: 41px;
  z-index: 100;
}

.navbar__logo-pill {
  box-sizing: border-box;
  position: absolute;
  width: 226px;
  height: 60px;
  left: calc(50% - 226px/2 - 538px);
  top: 60px;
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 52.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.navbar__logo-img-icon {
  width: 47px;
  height: 100%;
  object-fit: contain;
}
.navbar__logo-img-text {
  width: 128px;
  height: 100%;
  object-fit: contain;
}
.navbar__logo-fallback {
  font-family: 'Gilroy-Bold', 'DM Sans', sans-serif;
  font-size: 22px;
  color: #0B6340;
  letter-spacing: -0.02em;
}

.navbar__links-pill {
  box-sizing: border-box;
  position: absolute;
  width: 844px;
  height: 60px;
  left: calc(50% - 844px/2 + 19px);
  top: 60px;
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 52.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.navbar__link {
  font-family: 'Gilroy-SemiBold', 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 25px;
  color: #5D5D5D;
  text-decoration: none;
  white-space: nowrap;
}
.navbar__link:hover { color: #0B6340; }

.navbar__cta {
  position: absolute;
  width: 178px;
  height: 60px;
  left: 1226px;
  top: 60px;
  background: #B2E125;
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.navbar__cta span {
  font-family: 'Gilroy-SemiBold', 'DM Sans', sans-serif;
  font-size: 22px;
  line-height: 27px;
  color: #18362B;
}

/* ================================================
   2. HERO SECTION
   ================================================ */
.hero {
  position: absolute;
  width: 1469px;
  height: 954px;
  left: calc(50% - 1469px/2 - 0.5px);
  top: 25px;
  background:
    linear-gradient(318.15deg, rgba(0,0,0,0.126) 15.04%, rgba(0,0,0,0) 28.85%),
    linear-gradient(14.68deg, rgba(0,0,0,0.3) 26.44%, rgba(0,0,0,0) 55.58%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.124) 18.5%),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
  border-radius: 46px;
  overflow: hidden;
}

/* "SOLAR ENERGY" big text */
.hero__bg-text {
  position: absolute;
  width: 1238px;
  height: 254px;
  left: calc(50% - 1238px/2);
  top: 208px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 275px;
  line-height: 330px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 11.53%, rgba(255,255,255,0) 75.98%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

/* Main headline */
.hero__headline {
  position: absolute;
  width: 912px;
  height: 180px;
  left: 74px;
  top: 609px;
  font-family: 'Gilroy-Bold', 'DM Sans', sans-serif;
  font-size: 80px;
  line-height: 90px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

/* CTA Button */
.hero__cta {
  box-sizing: border-box;
  position: absolute;
  width: 341px;
  height: 65px;
  left: 74px;
  top: 816px;
  background: #CEFD3E;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.hero__cta span {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  line-height: 30px;
  letter-spacing: -0.02em;
  color: #343434;
  font-weight: 500;
}

/* Stats cards */
.hero__stat-card {
  box-sizing: border-box;
  position: absolute;
  width: 254px;
  height: 193px;
  top: 688px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.3) 100%);
  border-radius: 36px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 30px 28px;
}
.hero__stat-card--left  { left: 912px; }
.hero__stat-card--right { left: 1182px; }

.hero__stat-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 90px;
  color: #FFFFFF;
}
.hero__stat-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 30px;
  color: #FFFFFF;
  margin-top: 8px;
}

/* ================================================
   3. ABOUT STRIP
   ================================================ */
.about-strip {
  position: absolute;
  width: 1468px;
  height: 520px;
  left: calc(50% - 1468px/2);
  top: 1009px;
  background: linear-gradient(99.85deg, #FFFFFF -19.63%, #E6F0D4 94.62%);
}

.about-strip__heading {
  position: absolute;
  width: 505px;
  height: 316px;
  left: 108px;
  top: 102px;
  font-family: 'Gilroy-Bold', 'DM Sans', sans-serif;
  font-size: 75.2709px;
  line-height: 85px;
  letter-spacing: -0.02em;
  color: #0B6340;
}

.about-strip__body {
  position: absolute;
  width: 628px;
  height: 302px;
  left: 776px;
  top: 109px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -0.02em;
  color: #262626;
}

/* ================================================
   4. WHAT WE DO — ACCORDION
   ================================================ */
.services {
  position: absolute;
  width: 1512px;
  left: 0;
  top: 1712px;
}

.services__heading {
  position: absolute;
  width: 643.57px;
  left: calc(50% - 643.57px/2 - 0.22px);
  top: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 75.2709px;
  line-height: 85px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #454545;
}

/* Horizontal divider at top of section */
.services__line {
  position: absolute;
  width: 1184px;
  height: 0;
  left: 117px;
  top: 172px;
  border-top: 0.51px solid #F0F0F0;
}

/* Each row */
.service-row {
  position: absolute;
  width: 1278px;
  left: 117px;
  height: 152px;
  background: #FFFFFF;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.35s ease;
}
.service-row--1 { top: 174px; }
.service-row--2 { top: 432px; }
.service-row--3 { top: 690px; }
.service-row--4 { top: 948px; }

/* Row inner layout */
.service-row__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-row__number {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 18.82px;
  line-height: 13px;
  color: #C8C8C8;
}

.service-row__title {
  position: absolute;
  left: 0;
  top: 21px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 56.45px;
  line-height: 61px;
  color: #C8C8C8;
  transition: color 0.25s;
}
.service-row:hover .service-row__title,
.service-row.is-open .service-row__title {
  color: #262626;
}

.service-row__tags {
  position: absolute;
  left: 0;
  top: 163px;
  display: flex;
  gap: 16px;
}
.service-row__tag {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 51px;
  padding: 0 24px;
  border: 1px solid #6B6B6B;
  border-radius: 59px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 36px;
  color: #6B6B6B;
}

.service-row__description {
  position: absolute;
  width: 731px;
  left: 0;
  top: 233px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 200;
  font-size: 26px;
  line-height: 34px;
  color: #262626;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.service-row.is-open .service-row__description { opacity: 1; }

.service-row__image {
  position: absolute;
  width: 487px;
  height: 369px;
  right: 0;
  top: 29px;
  border-radius: 16.94px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  background: #e8e8e8;
}
.service-row.is-open .service-row__image { opacity: 1; }

.service-row__divider {
  position: absolute;
  width: 1184px;
  height: 0;
  left: 0;
  bottom: 0;
  border-top: 0.51px solid #F0F0F0;
}

/* ================================================
   5. OUR ADVANTAGE
   ================================================ */
.advantage {
  position: absolute;
  width: 1535px;
  height: 1146px;
  left: calc(50% - 1535px/2 + 10.5px);
  top: 2954px;
  background: linear-gradient(99.85deg, rgba(255,255,255,0.7) -19.63%, rgba(230,240,212,0.7) 94.62%);
}

.advantage__heading {
  position: absolute;
  width: 643.57px;
  left: calc(50% - 643.57px/2 - 0.22px);
  top: 84px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 75.2709px;
  line-height: 85px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #262626;
}

/* Card base */
.adv-card {
  position: absolute;
  border-radius: 25px;
  overflow: hidden;
}

/* Top-left: white large card */
.adv-card--tl {
  box-sizing: border-box;
  width: 838px;
  height: 365px;
  left: 85px;
  top: 215px;
  background: linear-gradient(111.48deg, #FFFFFF 39.26%, #F4F4F2 134.29%);
  border: 0.5px solid #DEDEDE;
}

/* Top-right: dark card with image */
.adv-card--tr {
  width: 479px;
  height: 365px;
  left: 948px;
  top: 215px;
  background: #022C22;
}
.adv-card--tr-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Bottom-left: lime card */
.adv-card--bl {
  width: 479px;
  height: 365px;
  left: 85px;
  top: 600px;
  background: #BFF365;
}

/* Bottom-right: white large card */
.adv-card--br {
  box-sizing: border-box;
  width: 838px;
  height: 365px;
  left: 589px;
  top: 600px;
  background: linear-gradient(111.48deg, #FFFFFF 39.26%, #F4F4F2 134.29%);
  border: 0.5px solid #DEDEDE;
}

/* Icon badge inside cards */
.adv-card__icon {
  position: absolute;
  top: 40px;
  left: 52px;
  width: 48px;
  height: 48px;
  background: #BFF365;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-card--tr .adv-card__icon,
.adv-card--bl .adv-card__icon {
  background: #002416;
}
.adv-card__icon svg { width: 22px; height: 22px; }

.adv-card__title {
  position: absolute;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 42px;
  color: #262626;
}
.adv-card--tr .adv-card__title,
.adv-card--bl .adv-card__title { color: #262626; }
.adv-card--tr .adv-card__title { color: #FFFFFF; }

.adv-card__body {
  position: absolute;
  font-family: 'DM Sans', sans-serif;
  font-weight: 200;
  font-size: 30px;
  line-height: 39px;
  color: #262626;
}

/* TL card text positions */
.adv-card--tl .adv-card__title { left: 52px; top: 102px; width: 746px; }
.adv-card--tl .adv-card__body  { left: 52px; top: 160px; width: 746px; }

/* TR card text */
.adv-card--tr .adv-card__title { left: 60px; top: 196px; width: 338px; }

/* BL card text */
.adv-card--bl .adv-card__title { left: 45px; top: 186px; width: 347px; }

/* BR card text */
.adv-card--br .adv-card__title { left: 46px; top: 102px; width: 746px; }
.adv-card--br .adv-card__body  { left: 46px; top: 160px; width: 746px; }

/* ================================================
   6. QUOTE / DARK GREEN CTA SECTION
   ================================================ */
.quote-section {
  position: absolute;
  width: 1512px;
  height: 692px;
  left: calc(50% - 1512px/2 - 1px);
  top: 4023px;
  background: #063330;
  overflow: hidden;
}

.quote-section__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.quote-section__text {
  position: absolute;
  width: 1002px;
  left: calc(50% - 1002px/2);
  top: 165px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 60px;
  line-height: 78px;
  text-align: center;
  color: #FFFFFF;
}

.quote-section__buttons {
  position: absolute;
  width: 561px;
  left: calc(50% - 561px/2 + 0.5px);
  top: 461px;
  display: flex;
  gap: 0;
}

.btn-lime {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 268.56px;
  height: 66.5px;
  background: #BFF365;
  border-radius: 51.155px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  color: #003D31;
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 268.56px;
  height: 66.5px;
  border: 2.56px solid #FFFFFF;
  border-radius: 51.155px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  color: #FFFFFF;
  margin-left: 24px;
}

/* ================================================
   7. FOOTER
   ================================================ */
.footer {
  position: absolute;
  width: 1537px;
  height: 758px;
  left: calc(50% - 1537px/2 - 0.5px);
  top: 4719px;
  background: #111111;
  overflow: hidden;
}

/* Left column */
.footer__left {
  position: absolute;
  left: 66px;
  top: 0;
  width: 600px;
  height: 100%;
}

.footer__tagline {
  position: absolute;
  width: 500px;
  bottom: 431px;
  left: 0;
  font-family: 'Gilroy-Bold', 'DM Sans', sans-serif;
  font-size: 50px;
  line-height: 62px;
  color: #FFFFFF;
}

.footer__search {
  box-sizing: border-box;
  position: absolute;
  width: 379px;
  height: 55px;
  left: 0;
  bottom: 328px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.2) 100%);
  border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 52.5px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}
.footer__search input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  width: 100%;
}
.footer__search input::placeholder { color: rgba(255,255,255,0.6); }
.footer__search-icon {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  background: url('assets/images/search-icon.png') center/contain no-repeat;
  filter: invert(1);
}

.footer__hr {
  position: absolute;
  width: 906px;
  height: 0;
  left: 0;
  bottom: 107px;
  border-top: 1px solid #FFFFFF;
}

.footer__copy {
  position: absolute;
  left: 0;
  bottom: 45px;
  font-family: 'Gilroy-Medium', 'DM Sans', sans-serif;
  font-size: 26px;
  line-height: 32px;
  color: #FFFFFF;
  white-space: nowrap;
}

/* Right column — nav links */
.footer__right {
  position: absolute;
  left: 1073.75px;
  top: 0;
  width: 420px;
}

.footer__nav-heading {
  position: absolute;
  top: 65px;
  left: 0;
  font-family: 'Gilroy-Medium', 'DM Sans', sans-serif;
  font-size: 24px;
  line-height: 29px;
  color: #B9B9B9;
}

/* Nav links — positioned matching Figma top values relative to footer start (4719) */
.footer__nav-link {
  position: absolute;
  left: 0;
  font-family: 'Gilroy-Medium', 'DM Sans', sans-serif;
  font-size: 24px;
  line-height: 29px;
  color: #B9B9B9;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 380px;
}
.footer__nav-link:hover { color: #FFFFFF; }
.footer__nav-link .arrow {
  box-sizing: border-box;
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.59);
  display: inline-block;
}
/* top values relative to footer top (4719) */
.footer__nav-link--about      { top: 65px; }
.footer__nav-link--services   { top: 128px; }
.footer__nav-link--goa        { top: 194px; }
.footer__nav-link--projects   { top: 257px; }
.footer__nav-link--impact     { top: 320px; }
.footer__nav-link--clients    { top: 380px; }

/* Separator lines */
.footer__nav-sep {
  position: absolute;
  width: 380px;
  height: 0;
  left: 0;
  border-top: 0.4px solid rgba(255,255,255,0.59);
}
.footer__nav-sep--1 { top: 113px; }
.footer__nav-sep--2 { top: 176px; }
.footer__nav-sep--3 { top: 239px; }
.footer__nav-sep--4 { top: 302px; }
.footer__nav-sep--5 { top: 365px; }
.footer__nav-sep--6 { top: 428px; }

/* Deck image */
.footer__deck {
  position: absolute;
  left: 1035px;
  top: 408px;
  width: 457px;
  height: 246px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
}

/* ================================================
   SITE HEADER WRAPPER (wraps .navbar)
   ================================================ */
.site-header {
  position: fixed;         /* stays on top when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Once user scrolls past hero: add frosted pill background */
.site-header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

/* Shift page content down so it isn't hidden behind fixed header */
.page-wrapper { padding-top: 139px; } /* 41px offset + 60px pill + some breathing room */

/* ================================================
   SITE FOOTER WRAPPER (wraps footer content)
   ================================================ */
.site-footer {
  position: relative;
  width: 1512px;
  min-height: 758px;
  margin: 0 auto;
  background: #111111;
  overflow: hidden;
  display: flex;
}

/* Footer logo */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.footer__logo-icon { height: 40px; width: auto; }
.footer__logo-text { height: 40px; width: auto; }
.footer__logo-fallback {
  font-family: 'Gilroy-Bold', 'DM Sans', sans-serif;
  font-size: 28px;
  color: #FFFFFF;
}

/* Footer nav links (override positioning with flex) */
.footer__right {
  position: relative;
  left: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  padding-top: 65px;
  padding-left: 40px;
  flex: 1;
}

.footer__nav-link {
  position: relative;
  left: auto;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 380px;
  padding: 18px 0;
  font-family: 'Gilroy-Medium', 'DM Sans', sans-serif;
  font-size: 24px;
  line-height: 29px;
  color: #B9B9B9;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__nav-link:hover { color: #FFFFFF; }

.footer__nav-arrow svg { display: block; }

.footer__nav-sep {
  position: relative;
  left: auto;
  top: auto;
  width: 380px;
  height: 0;
  border: none;
  border-top: 0.4px solid rgba(255,255,255,0.2);
  margin: 0;
}

/* Deck placeholder */
.footer__deck--placeholder {
  background: #1e1e1e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__deck--placeholder span {
  color: #555;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}

/* ================================================
   UTILITY
   ================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder for service images when real image is missing */
.service-row__image--placeholder {
  background: #dde8c4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================
   GSAP ANIMATION HELPERS
   ================================================ */

/* GPU-hint elements that GSAP will animate */
.hero__bg-text,
.hero__headline,
.hero__stat-card,
.hero__cta,
.about-strip__heading,
.about-strip__body,
.services__heading,
.service-row,
.advantage__heading,
.adv-card,
.quote-section__text,
.btn-lime,
.btn-outline,
.footer__tagline,
.footer__nav-link,
.footer__deck {
  will-change: transform, opacity;
}

/* Start elements invisible — GSAP will fade them in.
   Use a very short CSS transition as a safe fallback if JS fails. */
.hero__bg-text,
.hero__headline,
.hero__stat-card,
.hero__cta {
  opacity: 0; /* GSAP sets opacity:1 on play */
}

/* Cards: disable CSS transition on transform so GSAP has full control */
.adv-card {
  transition: none;
}

/* Smooth cursor pointer on interactive cards */
.adv-card,
.service-row {
  cursor: pointer;
}

body { background: #111111; }
