/* =========================================================
   Natures Eco Tech Solar Installations
   Redesigned stylesheet
   ========================================================= */

:root {
  --ink: #10202d;
  --ink-soft: #52616d;
  --navy: #005a27;
  --green-2: #005a27;
  --sun: #FFA500;
  --sun-soft: #fff2c7;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --line: #e5e8e8;
  --green: #1f9d68;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 50px rgba(9, 40, 61, .10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  height: 76px;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16,32,45,.08);
  transition: box-shadow .25s ease, background .25s ease;
}

nav.scrolled {
  box-shadow: 0 8px 32px rgba(9,40,61,.10);
  background: rgba(255,255,255,.98);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

.nav-logo:hover .nav-logo-img {
  opacity: .85;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  border-left: 1px solid rgba(16, 32, 45, .15);
  padding-left: 14px;
}

.nav-brand-text strong {
  color: #FFC15A;
  text-shadow:
    0 0 5px rgba(255, 192, 90, 0.432),
    0 0 12px rgba(255, 192, 90, 0.171);
  font-family: "Space Grotesk", sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-brand-text strong span {
  color: #70D4FF;
  text-shadow:
    0 0 5px rgba(112, 212, 255, 0.247),
    0 0 12px rgba(112, 212, 255, 0.096);
  font-family: "Space Grotesk", sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-brand-text span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: "Manrope", sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.logo-icon {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  transition: color .2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--sun);
  transition: width .2s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--green-2);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(9,40,61,.16);
}

.nav-cta:hover {
  background: var(--green-2) !important;
}



/* ---------------- SHARED SECTIONS ---------------- */

section {
  padding: 105px 5%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--green-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--sun);
}

.section-title,
.why-title,
.cta-title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

.section-title {
  max-width: 720px;
  margin-bottom: 17px;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
}

.section-title .blue {
  color: var(--green-2);
}

.section-title .yel {
  color: #e4a500;
}

.section-desc {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.8;
}


/* ---------------- PROJECTS ---------------- */

/* =========================
   PROJECTS
========================= */

.projects {
  background: var(--cream);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.proj-card {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
  background: #e9e5dc;
}

.proj-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.proj-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, .78)
  );
  pointer-events: none;
}

.proj-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  color: #fff;
}

.proj-info span {
  display: inline-block;
  margin-bottom: 4px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sun);
}

.proj-info h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: .98rem;
  line-height: 1.25;
  font-weight: 700;
}

.proj-info p {
  margin: 3px 0 0;
  font-size: .7rem;
  color: rgba(255,255,255,.72);
}

.proj-card:hover img {
  transform: scale(1.035);
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .proj-card {
    height: 250px;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
  }

  .proj-card {
    height: 190px;
    border-radius: 12px;
  }

  .proj-info {
    left: 12px;
    right: 12px;
    bottom: 11px;
  }

  .proj-info span {
    font-size: .52rem;
    margin-bottom: 3px;
  }

  .proj-info h3 {
    font-size: .78rem;
    line-height: 1.2;
  }

  .proj-info p {
    font-size: .6rem;
    margin-top: 2px;
  }
}

/* ---------------- CTA ---------------- */

.cta-section {
  padding: 60px 5%;
  background: var(--navy);
  text-align: center;
}

.cta-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}

.cta-title span {
  color: var(--sun);
}

.cta-desc {
  max-width: 500px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,.62);
  font-size: .88rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.btn-yellow {
  background: orange;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--navy);
}

.btn-yellow:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cta-section {
    padding: 50px 5%;
  }

  .cta-actions {
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-actions a {
    width: 100%;
  }
}

/* ---------------- FOOTER ---------------- */

footer {
  padding: 55px 5% 22px;
  background:  #0b1f15;
  color: rgba(255,255,255,.6);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 45px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo-img {
  display: block;
  width: auto;
  height: 42px;
  margin-bottom: 17px;
}

.footer-desc {
  max-width: 300px;
  margin: 0;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .82rem;
  transition: .2s ease;
}

.footer-social a:hover {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--navy);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3 {
  margin: 3px 0 17px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

.footer-column a,
.footer-column span {
  margin-bottom: 10px;
  color: rgba(255,255,255,.5);
  font-size: .74rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-column a:hover {
  color: var(--sun);
}

.footer-column span {
  margin-bottom: 0;
}


/* Bottom bar */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
  font-size: .68rem;
}

/* footer credit */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-credit a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-credit a:hover {
  color: var(--sun);
}

/* Mobile */

@media (max-width: 800px) {

  footer {
    padding: 45px 5% 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 35px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav {
    gap: 25px;
  }

}

@media (max-width: 550px) {

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

}


@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- MOBILE MENU ---------------- */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------------- TABLET ---------------- */

@media (max-width: 1024px) {
  .nav-links { gap: 21px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 105px;
    gap: 45px;
  }
  .hero-content { order: 2; }
  .hero-visual {
    order: 1;
    width: 100%;
    max-width: 620px;
    height: 430px;
    margin: 0 auto;
  }
  .about,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .about-images {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .why-image {
    max-width: 650px;
  }
  .why-image img { height: 430px; }
  .services-header { grid-template-columns: 1fr; gap: 15px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card,
  .proj-card.large { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {
  nav {
    height: 66px;
    padding: 0 5%;
  }

  .nav-logo-img { height: 40px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 66px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(9,40,61,.12);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 6%;
    border-bottom: 1px solid var(--line);
    font-size: .93rem;
  }

  .nav-links a:not(.nav-cta)::after { display: none; }

  .nav-links li:last-child a {
    margin: 12px 6% 0;
    padding: 12px;
    border: 0;
    border-radius: 11px;
    text-align: center;
  }

  .hamburger { display: flex; }

  section,
  .why-section {
    padding: 70px 5%;
  }

  .hero {
    min-height: auto;
    padding: 92px 5% 64px;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3.3rem);
  }

  .hero-desc {
    max-width: 100%;
    font-size: .9rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 22px;
  }

  .stat + .stat {
    padding-left: 22px;
  }

  .hero-visual {
    height: 300px;
    max-width: 480px;
  }

  .hero-img-main {
    width: 78%;
    height: 88%;
    border-radius: 22px 22px 22px 65px;
  }

  .hero-img-sub {
    width: 52%;
    height: 50%;
    border-width: 5px;
  }

  .hero-tag {
    top: auto;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 12px;
    font-size: .68rem;
  }

  .about-images {
    height: 340px;
  }

  .about-features,
  .why-cards {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .service-card-img {
    height: 210px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .proj-card,
  .proj-card.large {
    grid-column: span 1;
    min-height: 240px;
  }

  .proj-card img {
    min-height: 240px;
  }

  .proj-overlay {
    opacity: 1;
    transform: none;
    inset: auto 10px 10px;
  }

  .why-image img {
    height: 310px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---------------- SMALL MOBILE ---------------- */

@media (max-width: 480px) {

  
  nav { height: 60px; }
  .nav-logo-img { height: 36px; }
  .nav-links { inset: 60px 0 auto; }
  

  section,
  .why-section {
    padding: 58px 4.5%;
  }

  .hero {
    padding: 82px 4.5% 52px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white,
  .btn-yellow {
    width: 100%;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat + .stat {
    padding-left: 14px;
  }

  .stat-num { font-size: 1.45rem; }
  .stat-label { font-size: .67rem; }

  .hero-visual {
    height: 245px;
  }

  .about {
    padding: 58px 4.5%;
    gap: 34px;
  }

  .about-images {
    height: 285px;
  }

  .about-features,
  .why-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .why-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .feature-icon,
  .why-card-icon {
    margin: 0;
    flex-shrink: 0;
    font-size: 1.3rem;
  }

  .service-card-img {
    height: 185px;
  }

  .proj-card,
  .proj-card.large {
    min-height: 205px;
  }

  .proj-card img {
    min-height: 205px;
  }

  .why-image img {
    height: 230px;
  }

  .cta-section {
    padding: 58px 4.5%;
  }

  footer {
    padding: 50px 4.5% 28px;
  }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .hero-visual { height: 215px; }
  .about-images { height: 250px; }
  .why-image img { height: 195px; }
}


/* ---------------- PROJECT LIGHTBOX ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, .9);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  display: block;

  max-width: 92vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 8px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, .12);
  color: #fff;

  font-size: 32px;
  line-height: 1;

  cursor: pointer;

  transition: background .2s ease, transform .2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .22);
  transform: rotate(90deg);
}


/* Make project images feel clickable */

.proj-card img {
  cursor: zoom-in;
}


/* see more projects btn */
.see-more-projects .btn-primary{
  background: transparent;
  color: var(--green-2);
  border: 1px solid var(--green-2);
}