@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --white: #FFFFFF;
  --light-grey: #F5F5F4;
  --charcoal: #1C1C1C;
  --green: #2D6A4F;
  --green-hover: #40916C;
  --amber: #E9A825;
  --amber-hover: #D4941A;
  --mid-grey: #6B7280;
  --border-grey: #E5E7EB;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--charcoal);
  background: var(--light-grey);
}

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

.site-topbar {
  background: var(--green);
  color: var(--white);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
}

.phone-link {
  font-weight: 600;
  transition: color 0.2s ease;
}

.phone-link:hover,
.phone-link:focus-visible {
  color: var(--amber);
}

.site-header {
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  max-width: 320px;
}

.logo img {
  max-height: 78px;
  width: auto;
  display: block;
}

.logo-fallback {
  display: none;
  color: var(--white);
  line-height: 1.3;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border-grey);
  background: transparent;
  color: var(--white);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.dropdown-toggle,
.mobile-services-group a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  padding: 10px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.mobile-services-group a:hover,
.mobile-services-group a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active,
.main-nav button.active,
.dropdown-menu a.active,
.mobile-services-group a.active {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  min-width: 300px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  z-index: 40;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@media (hover: hover) {
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: var(--charcoal);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--light-grey);
}

.mobile-services-group {
  display: none;
  width: 100%;
}

.page-shell {
  min-height: 55vh;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  margin: 28px auto;
}

.page-shell .container {
  padding: 36px 0;
}

.homepage-main {
  background: var(--light-grey);
}

.services-main {
  background: var(--light-grey);
}

.projects-main {
  background: var(--light-grey);
}

.about-main {
  background: var(--light-grey);
}

.contact-main,
.thanks-main,
.privacy-main {
  background: var(--light-grey);
}

.policy-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 28px 24px;
  line-height: 1.65;
}

.policy-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.policy-card h2 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
}

.policy-card p {
  margin: 0;
}

.policy-card a {
  color: var(--green);
}

.policy-card a:hover,
.policy-card a:focus-visible {
  color: var(--green-hover);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 22px;
}

.contact-card h2 {
  margin: 0 0 16px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

.contact-submit {
  width: 100%;
  margin-top: 4px;
}

.contact-phone-large {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--green);
}

.contact-phone-large:hover,
.contact-phone-large:focus-visible {
  color: var(--green-hover);
}

.contact-info p {
  margin: 12px 0 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  padding: 18px;
}

.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
}

.faq-card p {
  margin: 0;
  color: var(--mid-grey);
}

.thanks-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 34px 24px;
}

.thanks-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
}

.thanks-card p {
  margin: 14px 0 24px;
  color: var(--mid-grey);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-top: 5px solid var(--green);
  border-radius: 10px;
  padding: 18px;
}

.cert-card h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
}

.cert-card p {
  margin: 0;
  color: var(--mid-grey);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  border: 1px solid var(--border-grey);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(28, 28, 28, 0.1);
}

.project-card-body {
  padding: 16px;
}

.project-card-body p {
  margin: 0 0 10px;
  color: var(--charcoal);
  line-height: 1.58;
}

.project-card-body p:last-child {
  margin-bottom: 0;
}

.project-meta {
  color: var(--mid-grey);
}

.projects-cta {
  text-align: center;
  margin-top: 26px;
}

.projects-cta h2 {
  margin: 0 0 14px;
}

.services-hero {
  background: var(--white);
  border-top: 1px solid var(--border-grey);
  border-bottom: 1px solid var(--border-grey);
}

.services-hero-inner {
  padding: 54px 0;
}

.services-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  line-height: 1.15;
}

.services-hero p {
  margin: 14px 0 0;
  max-width: 850px;
  color: var(--mid-grey);
  font-size: 1.06rem;
}

.homepage-section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.2;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--mid-grey);
  max-width: 760px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-amber {
  background: var(--amber);
  color: var(--charcoal);
}

.btn-amber:hover,
.btn-amber:focus-visible {
  background: var(--amber-hover);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--charcoal);
  color: var(--white);
}

.solar-page-main {
  background: var(--light-grey);
}

.service-detail-hero {
  background: var(--white);
  border-top: 1px solid var(--border-grey);
  border-bottom: 1px solid var(--border-grey);
}

.service-detail-hero-inner {
  padding: 58px 0;
}

.service-detail-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.14;
}

.service-detail-hero p {
  margin: 14px 0 0;
  max-width: 860px;
  font-size: 1.06rem;
  color: var(--mid-grey);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.service-detail-grid h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.service-detail-grid p {
  margin: 0 0 12px;
  color: var(--charcoal);
  line-height: 1.65;
}

.service-detail-included {
  background: var(--white);
}

.service-detail-included h2 {
  margin-top: 0;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.included-item {
  background: var(--light-grey);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.included-icon {
  color: var(--green);
  font-size: 1rem;
  line-height: 1.3;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  padding: 18px;
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
}

.step-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  color: var(--mid-grey);
}

.single-testimonial {
  max-width: 840px;
  margin: 0 auto;
  background: var(--white);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 22px;
}

.single-testimonial p {
  margin: 0;
}

.hero-section {
  width: 100%;
  color: var(--white);
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600&q=80');
  background-size: cover;
  background-position: center;
  object-fit: cover;
}

.hero-content {
  padding: clamp(72px, 10vw, 130px) 0;
}

.hero-content h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.1;
}

.hero-content p {
  margin: 18px 0 0;
  max-width: 880px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border-grey);
  border-bottom: 1px solid var(--border-grey);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  padding: 18px 10px;
  font-weight: 600;
}

.trust-icon {
  color: var(--green);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(28, 28, 28, 0.1);
}

.service-icon {
  color: var(--green);
  font-size: 1.4rem;
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
}

.service-card h2 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--mid-grey);
}

.services-intro {
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: var(--mid-grey);
}

.service-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--green);
}

.service-card .service-card-btn {
  color: var(--charcoal);
}

.service-card .service-card-btn:hover,
.service-card .service-card-btn:focus-visible {
  color: var(--charcoal);
  background: var(--amber-hover);
}

.services-page-cta .btn {
  margin-top: 22px;
}

.service-card a:hover,
.service-card a:focus-visible {
  color: var(--green-hover);
}

.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  background: var(--light-grey);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 20px;
}

.stars {
  color: var(--amber);
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.testimonial-card p {
  margin: 0;
  color: var(--charcoal);
}

.testimonial-author {
  margin-top: 14px;
  font-weight: 700;
  color: var(--green);
}

.areas-section {
  background: var(--light-grey);
}

.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-pills span {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.areas-cta {
  margin-top: 24px;
}

.final-cta {
  background: var(--green);
  color: var(--white);
  padding: 70px 0;
}

.final-cta-inner {
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.final-cta p {
  margin: 12px 0 24px;
  font-size: 1.1rem;
}

.cta-phone {
  margin-top: 20px;
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--green-hover);
}

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 36px 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-list a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-list a:hover,
.footer-list a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--amber);
}

.footer-contact {
  margin: 0;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: var(--amber);
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 84px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 122px;
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    z-index: 50;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link,
  .dropdown-toggle,
  .mobile-services-group a {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown {
    display: none;
  }

  .mobile-services-group {
    display: grid;
    gap: 2px;
  }

  .mobile-services-group a {
    font-weight: 500;
  }

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

  .homepage-section {
    padding: 56px 0;
  }

  .services-hero-inner {
    padding: 46px 0;
  }

  .service-detail-hero-inner {
    padding: 48px 0;
  }

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

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .services-grid,
  .testimonials-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 480px) {
  .logo {
    max-width: 220px;
    font-size: 0.95rem;
  }

  .topbar-inner {
    min-height: 42px;
  }

  .phone-link {
    font-size: 0.95rem;
  }

  .page-shell {
    margin: 18px auto;
    border-radius: 10px;
  }

  .hero-content {
    padding: 68px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .services-grid,
  .testimonials-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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