/* ============================================
   SUNROCK — Renewable Energy Landing Page
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  background: #0a1a1a;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ----- Hero Section ----- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 680px) {
  .hero {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }
}

/* Video Background */
.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 40, 40, 0.35) 0%,
    rgba(10, 40, 40, 0.15) 40%,
    rgba(10, 40, 40, 0.10) 60%,
    rgba(10, 40, 40, 0.40) 100%
  );
  z-index: 1;
}

/* ----- Navigation ----- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.3s ease, opacity 0.3s ease;
  color: #ffffff;
  white-space: nowrap;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav__link--active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav__menu-btn {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.nav__menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.nav__flag {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav__flag:hover {
  opacity: 0.8;
}

/* ----- Hero Content ----- */
.hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  margin-top: -40px;
}

.hero__heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 22px;
  max-width: 700px;
}

.hero__subtext {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
  max-width: 420px;
  letter-spacing: 0.15px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1a1a1a;
  padding: 12px 12px 12px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #2a8a8a;
  color: #ffffff;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.hero__cta:hover .hero__cta-icon {
  background: #1f7070;
}

/* ----- Info Cards ----- */
.hero__cards {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 40px 40px;
  width: 100%;
  align-items: flex-end;
}

.info-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px 30px;
  color: #ffffff;
  max-width: 380px;
}

#card-energy {
  align-self: flex-end;
}

#card-impact {
  margin-left: auto;
  align-self: flex-end;
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(100, 180, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 14px;
}

.info-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.1px;
}

.info-card__body {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.1px;
}

/* ----- Mobile Menu ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 30, 30, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  padding: 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease;
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__link {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.3px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu__link:hover {
  color: rgba(255, 255, 255, 0.7);
  padding-left: 10px;
}

/* ============================================
   SOLUTIONS / WHAT WE DO SECTION
   ============================================ */

.solutions {
  background: #0a1210;
  padding: 120px 0 0;
  overflow: hidden;
}

/* ----- Section Header ----- */
.solutions__header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 72px;
}

.solutions__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5abfad;
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(90, 191, 173, 0.25);
  border-radius: 50px;
}

.solutions__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 20px;
}

.solutions__subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Solutions Grid ----- */
.solutions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 0 40px;
  margin-bottom: 100px;
}

/* ----- Solution Card ----- */
.solution-card {
  border-radius: 20px;
  overflow: hidden;
  background: #121f1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.solution-card__image-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.solution-card--tall .solution-card__image-wrap {
  height: 300px;
}

.solution-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.solution-card:hover .solution-card__image {
  transform: scale(1.06);
}

.solution-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 18, 16, 0.8) 100%
  );
}

.solution-card__content {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card__number {
  font-size: 13px;
  font-weight: 600;
  color: #5abfad;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.solution-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.solution-card__body {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  flex: 1;
}

.solution-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5abfad;
  letter-spacing: 0.2px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.solution-card__link:hover {
  gap: 14px;
  color: #7dd4c4;
}

.solution-card__link svg {
  transition: transform 0.3s ease;
}

.solution-card__link:hover svg {
  transform: translateX(2px);
}

/* ----- Stats Row ----- */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 60px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 40px 100px;
}

.stats__item {
  flex: 1;
  text-align: center;
  padding: 20px 0;
}

.stats__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -1px;
}

.stats__unit {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: #5abfad;
  margin-left: 4px;
}

.stats__label {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.stats__divider {
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ----- Feature Image ----- */
.feature {
  padding: 0 40px 120px;
}

.feature__image-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
}

.feature__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature__image-wrap:hover .feature__image {
  transform: scale(1.03);
}

.feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 16, 0.15) 0%,
    rgba(10, 18, 16, 0.75) 100%
  );
}

.feature__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 52px;
}

.feature__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5abfad;
  margin-bottom: 14px;
}

.feature__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 24px;
}

.feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1a1a1a;
  padding: 12px 12px 12px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #2a8a8a;
  color: #ffffff;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.feature__cta:hover .feature__cta-icon {
  background: #1f7070;
}

/* ----- Scroll reveal animation ----- */
.solution-card,
.stats__item,
.feature__image-wrap {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.solution-card.revealed,
.stats__item.revealed,
.feature__image-wrap.revealed {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:nth-child(2) {
  transition-delay: 0.1s;
}

.solution-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  .hero__cta,
  .nav__link,
  .nav__menu-btn,
  .mobile-menu,
  .mobile-menu__link,
  .mobile-menu__close,
  .solution-card,
  .solution-card__image,
  .solution-card__link,
  .feature__image,
  .feature__cta,
  .stats__item,
  .feature__image-wrap {
    transition: none;
  }

  .solution-card,
  .stats__item,
  .feature__image-wrap {
    opacity: 1;
    transform: none;
  }

  .hero__video {
    animation: none;
  }
}

/* ----- Responsive: Tablet ----- */
@media (max-width: 1024px) {
  .nav {
    padding: 20px 28px;
  }

  .nav__links {
    display: none;
  }

  .hero__heading {
    font-size: clamp(30px, 5vw, 44px);
  }

  .hero__cards {
    padding: 0 28px 28px;
    gap: 16px;
  }

  .info-card {
    max-width: 340px;
    padding: 24px 24px;
  }

  .solutions {
    padding: 80px 0 0;
  }

  .solutions__grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 28px;
    margin-bottom: 80px;
  }

  .solution-card--tall .solution-card__image-wrap {
    height: 260px;
  }

  .stats {
    margin: 0 28px 80px;
    padding: 40px 20px;
  }

  .feature {
    padding: 0 28px 80px;
  }

  .feature__image-wrap {
    height: 420px;
  }
}

/* ----- Responsive: Mobile ----- */
@media (max-width: 680px) {
  .nav {
    padding: 18px 20px;
  }

  .nav__logo-text {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .nav__links {
    display: none;
  }

  .hero__content {
    margin-top: 0;
    padding: 60px 20px 40px;
  }

  .hero__heading {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 16px;
  }

  .hero__subtext {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .hero__subtext br {
    display: none;
  }

  .hero__cta {
    font-size: 13px;
    padding: 10px 10px 10px 20px;
  }

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

  .hero__cards {
    flex-direction: column;
    padding: 0 20px 24px;
    gap: 14px;
  }

  .info-card {
    max-width: 100%;
    padding: 22px 20px;
  }

  #card-impact {
    margin-left: 0;
  }

  .info-card__title {
    font-size: 16px;
  }

  .info-card__body {
    font-size: 12px;
  }

  .mobile-menu {
    padding: 18px 20px;
  }

  .mobile-menu__close {
    flex-shrink: 0;
  }

  .mobile-menu__link {
    font-size: 22px;
    padding: 12px 0;
  }

  .solutions {
    padding: 64px 0 0;
  }

  .solutions__header {
    padding: 0 20px;
    margin-bottom: 48px;
  }

  .solutions__subtitle {
    font-size: 13.5px;
  }

  .solutions__grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
    margin-bottom: 64px;
  }

  .solution-card__image-wrap {
    height: 220px;
  }

  .solution-card--tall .solution-card__image-wrap {
    height: 220px;
  }

  .solution-card__content {
    padding: 22px 22px 26px;
  }

  .stats {
    flex-wrap: wrap;
    margin: 0 20px 64px;
    padding: 32px 16px;
    gap: 16px;
  }

  .stats__item {
    flex: 1 1 40%;
    min-width: 120px;
  }

  .stats__divider {
    display: none;
  }

  .feature {
    padding: 0 20px 64px;
  }

  .feature__image-wrap {
    height: 340px;
  }

  .feature__content {
    padding: 28px 24px;
  }

  .feature__title br {
    display: none;
  }
}

/* ----- Small Mobile ----- */
@media (max-width: 380px) {
  .hero__heading {
    font-size: 24px;
  }

  .hero__heading br {
    display: none;
  }
}
