* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { text-decoration: none; }

#rotating-word {
  color: #F5A623;
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#rotating-word.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}
#rotating-word.fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* TOP BAR */
.top-bar {
  background: #1A1A1A;
  padding: 8px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left span {
  font-size: 12px;
  color: #888;
}
.top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.top-bar-right a {
  color: #888;
  font-size: 13px;
  transition: color 0.2s;
}
.top-bar-right a:hover { color: #F5A623; }

/* NAV */
nav {
  background: #fff;
  padding: 0 48px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}
.nav-logo img {
  height: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #444; font-size: 14px; }
.nav-links a:hover { color: #F5A623; }
.btn-quote {
  background: transparent;
  color: #1A1A1A !important;
  border: 1.5px solid #ddd;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

/* HAMBURGER — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  background: #fff;
  padding: 80px 48px 0;
  text-align: center;
  position: relative;
}
.hero-badge {
  background: #FFF3E0;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  color: #F5A623;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
}
.btn-hero-primary {
  background: #F5A623;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
}
.btn-hero-outline {
  background: transparent;
  color: #1A1A1A;
  border: 1.5px solid #ddd;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
}
.hero-image-blend { width: 100%; position: relative; }
.hero-image-blend img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}

/* STATS MARQUEE */
.stats-wrapper {
  background: #1A1A1A;
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.stats-wrapper::before,
.stats-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.stats-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #1A1A1A, transparent);
}
.stats-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #1A1A1A, transparent);
}
.stats-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.stats-track:hover { animation-play-state: paused; }
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.stat-item .stat-number { font-size: 28px; font-weight: 700; color: #F5A623; }
.stat-item .stat-label { font-size: 13px; color: #888; }
.stat-divider { color: #F5A623; font-size: 20px; opacity: 0.4; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SERVICES */
.services { background: #fff; padding: 80px 48px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: #F5A623; margin-bottom: 12px;
}
.section-header h2 { font-size: 34px; font-weight: 600; color: #1A1A1A; }
.section-header p { color: #666; margin-top: 12px; font-size: 15px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.service-card {
  background: #FFF8EE;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #FDECC8;
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px;
  background: #F5A623;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.service-card h3 { font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: #666; line-height: 1.6; }

/* EXPERTISE */
.expertise { background: #F9F9F9; padding: 80px 48px; }
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.expertise-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}
.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.expertise-card img { width: 100%; height: 220px; object-fit: cover; }
.expertise-card-content { padding: 24px; }
.expertise-card h3 { font-size: 16px; font-weight: 600; color: #1A1A1A; margin-bottom: 10px; }
.expertise-card p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 16px; }
.btn-learn {
  display: inline-block;
  border: 1.5px solid #ddd;
  color: #1A1A1A;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
}
.btn-learn:hover { border-color: #F5A623; color: #F5A623; }

/* WHY SOLAR */
.why-solar { background: #F9F9F9; padding: 80px 48px; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-content h2 { font-size: 32px; font-weight: 600; color: #1A1A1A; margin-bottom: 18px; }
.why-content > p { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.check-list { display: flex; flex-direction: column; gap: 18px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; }
.check-icon {
  width: 24px; height: 24px; background: #F5A623; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; color: #fff; font-size: 13px; font-weight: 700;
}
.check-item-title { font-size: 14px; font-weight: 600; color: #1A1A1A; }
.check-item-desc { font-size: 13px; color: #666; margin-top: 3px; }
.savings-card {
  background: #F5A623; border-radius: 20px; padding: 40px 36px; color: #fff;
}
.savings-label { font-size: 12px; opacity: 0.8; margin-bottom: 20px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.savings-amount { font-size: 52px; font-weight: 700; margin-bottom: 4px; }
.savings-sub { font-size: 13px; opacity: 0.8; margin-bottom: 32px; }
.savings-row {
  background: rgba(255,255,255,0.2); border-radius: 10px;
  padding: 14px 18px; display: flex; justify-content: space-between; margin-bottom: 10px;
}
.savings-row.dark { background: rgba(0,0,0,0.15); }
.savings-row span { font-size: 13px; }
.savings-row strong { font-size: 13px; font-weight: 600; }

/* HOW IT WORKS */
.how-it-works { background: #fff; padding: 80px 48px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.step { text-align: center; padding: 24px 16px; }
.step-number {
  width: 60px; height: 60px;
  background: #FFF8EE; border: 2px solid #F5A623; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 22px; font-weight: 600; color: #F5A623;
}
.step-number.active { background: #F5A623; color: #fff; border-color: #F5A623; font-size: 28px; }
.step h3 { font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 8px; }
.step p { font-size: 13px; color: #666; line-height: 1.6; }

/* CTA */
.cta { background: #F5A623; padding: 80px 48px; text-align: center; }
.cta h2 { font-size: 38px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.88); font-size: 16px; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-dark {
  background: #1A1A1A; color: #fff; padding: 14px 32px;
  border-radius: 50px; font-size: 15px; font-weight: 500;
}
.btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid #fff; padding: 13px 32px;
  border-radius: 50px; font-size: 15px; font-weight: 500;
}

/* FOOTER */
footer { background: #111; padding: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand img { height: 100px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: #666; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: #666; margin-bottom: 10px; }
.footer-col a:hover { color: #F5A623; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: #555; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #555; font-size: 13px; }

/* ================================
   MOBILE — max 768px
================================ */
@media (max-width: 768px) {
 .top-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 20px;
  gap: 10px;
  background: #1A1A1A;
  order: 1;
}
.top-bar-left span { font-size: 12px; }
.top-bar-right { gap: 20px; }
.top-bar-right a { font-size: 18px; }
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  z-index: auto; /* remove z-index from nav itself */
}
  /* NAV */
  nav {
    padding: 0 20px;
    height: 64px;
    flex-wrap: nowrap;
    position: relative;
  }
  .nav-logo img { height: 200px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    color: #1A1A1A;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn-quote {
    margin-top: 12px;
    text-align: center;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 12px 20px;
  }

  /* HERO */
  .hero { padding: 40px 20px 0; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; text-align: center; }
  .hero-image-blend img { height: 220px; }

  /* STATS */
  .stat-item .stat-number { font-size: 20px; }
  .stat-item .stat-label { font-size: 11px; }

  /* SERVICES */
  .services { padding: 48px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 26px; }

  /* EXPERTISE */
  .expertise { padding: 48px 20px; }
  .expertise-grid { grid-template-columns: 1fr; }

  /* WHY SOLAR */
  .why-solar { padding: 48px 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-content h2 { font-size: 24px; }
  .savings-amount { font-size: 40px; }

  /* HOW IT WORKS */
  .how-it-works { padding: 48px 20px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta { padding: 48px 20px; }
  .cta h2 { font-size: 26px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-dark,
  .btn-outline-white { width: 100%; text-align: center; }

  /* FOOTER */
  footer { padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { height: 200px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ================================
   SMALL PHONES — max 480px
================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}