/* Home page sections */

/* HERO */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  color: var(--us-white);
  text-align: center;
  background-color: var(--us-charcoal);
  background-image: linear-gradient(180deg, rgba(31,41,55,.55) 0%, rgba(31,41,55,.7) 70%, rgba(31,41,55,.95) 100%), url('../public/images/2025/04/thumb-2-1.jpg');
  background-size: cover;
  background-position: center;
  padding: 160px 0 120px;
}
.hero-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.hero-toggle { margin-bottom: 32px; display: inline-flex; }
.hero h1 {
  font-size: var(--us-fs-hero);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .005em;
  font-weight: 600;
  margin: 0 0 12px;
}
.hero h1 .accent { color: var(--us-orange); }
.hero p { font-size: 17px; max-width: 640px; margin: 0 auto 32px; color: rgba(255,255,255,.85); }
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Tax credit banner */
.banner-cta {
  background: var(--us-navy);
  color: var(--us-white);
  padding: 70px 24px;
  text-align: center;
}
.banner-cta h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--us-white);
  margin: 0 0 14px;
  text-transform: none;
  line-height: 1.2;
}
.banner-cta p { max-width: 700px; margin: 0 auto 26px; color: rgba(255,255,255,.78); font-size: 16px; }

/* Intro section */
.intro {
  padding: 90px 0;
  text-align: center;
}
.intro .eyebrow { justify-content: center; }
.intro h2 {
  font-size: 36px;
  color: var(--us-navy);
  font-weight: 600;
  margin: 0 0 8px;
}
.intro .subtitle { color: var(--us-orange); font-weight: 500; font-size: 18px; margin: 0 0 28px; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto 32px; text-align: left; }
.intro-cols p { color: var(--us-text); font-size: 15px; line-height: 1.65; }

/* What Sets Us Apart */
.about-grid {
  background: var(--us-bg-light);
  padding: 90px 0;
}
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: var(--us-container); margin: 0 auto; padding: 0 24px; }
.about-row .copy h2 { font-size: 30px; color: var(--us-navy); font-weight: 600; margin: 6px 0 18px; line-height: 1.2; }
.about-row .copy p { color: var(--us-text); font-size: 15px; line-height: 1.65; margin: 0 0 24px; }
.about-row .stats { background: var(--us-white); border-radius: 16px; padding: 28px 30px; box-shadow: var(--us-shadow-card); }
.about-row .stats h3 { color: var(--us-navy); font-size: 22px; margin: 0 0 20px; font-weight: 600; }
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.about-stat { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.about-stat .ic { width: 28px; height: 28px; flex-shrink: 0; color: var(--us-orange); display: inline-flex; align-items: center; justify-content: center; }
.about-stat .ic svg { width: 100%; height: 100%; fill: currentColor; }
.about-stat span { color: var(--us-navy); font-size: 16px; font-weight: 500; }

/* Who We Work With */
.work-with {
  padding: 90px 0;
  text-align: center;
}
.work-with .intro-text { max-width: 760px; margin: 0 auto 48px; color: var(--us-text); font-size: 15px; line-height: 1.65; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--us-container);
  margin: 0 auto;
  padding: 0 24px;
}
.work-card {
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--us-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--us-shadow-card); }
.work-card .ic {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--us-bg-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--us-orange);
}
.work-card .ic svg { width: 36px; height: 36px; fill: currentColor; }
.work-card h3 { font-size: 20px; color: var(--us-navy); margin: 0 0 10px; font-weight: 600; }
.work-card p { font-size: 14px; color: var(--us-text); line-height: 1.55; margin: 0 0 14px; }
.work-card .learn {
  color: var(--us-orange);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: inline-block;
  margin-top: auto;
}
a.work-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
a.work-card:hover .learn { color: var(--us-orange-hover); }

/* 3-card variant (centred, slightly wider cards) */
.work-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.work-grid-3 .work-card { padding: 36px 28px; text-align: left; }
.work-grid-3 .work-card .ic { margin: 0 0 22px; width: 76px; height: 76px; }
.work-grid-3 .work-card .ic svg { width: 38px; height: 38px; }
@media (max-width: 900px) { .work-grid-3 { grid-template-columns: 1fr; max-width: 480px; } }

/* Smart Solar Solutions (tabbed) */
.solutions {
  padding: 90px 0;
  text-align: center;
}
.solutions h2 { font-size: 36px; color: var(--us-navy); font-weight: 600; margin: 6px 0 22px; }
.solutions-tabs {
  display: inline-flex;
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: 100px;
  padding: 5px;
  margin: 0 auto 40px;
}
.solutions-tab {
  background: transparent;
  border: 0;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: 500;
  color: var(--us-gray-dark);
  border-radius: 100px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.solutions-tab.is-active { background: var(--us-orange); color: var(--us-white); }

.solutions-panel { display: none; }
.solutions-panel.is-active { display: block; }
.solutions-card {
  max-width: var(--us-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.solutions-card .copy .eyebrow-text { color: var(--us-orange); font-size: 14px; text-transform: uppercase; margin: 0 0 10px; font-weight: 500; }
.solutions-card .copy h3 { font-size: 28px; color: var(--us-navy); margin: 0 0 18px; font-weight: 600; line-height: 1.25; }
.solutions-card .copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0 0 24px; }
.solutions-card .copy ul li { font-size: 15px; color: var(--us-text); position: relative; padding-left: 24px; }
.solutions-card .copy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--us-orange);
  border-radius: 50%;
}
.solutions-visual {
  background: linear-gradient(135deg, var(--us-charcoal) 0%, #2a3849 100%);
  border-radius: 20px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--us-white);
}
.solutions-visual .play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--us-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--us-orange);
  cursor: pointer;
  transition: transform .2s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.solutions-visual .play-btn:hover { transform: scale(1.08); }
.solutions-visual .play-btn svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }

/* Recent Projects */
.projects {
  padding: 90px 0;
  text-align: center;
}
.projects .grid {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-card {
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--us-shadow-soft);
}
.project-card .label { color: var(--us-orange); font-size: 14px; font-weight: 500; text-transform: uppercase; margin: 0; }
.project-card h3 { color: var(--us-navy); font-size: 22px; margin: 0; font-weight: 600; }
.project-card p { color: var(--us-text); font-size: 14px; line-height: 1.55; margin: 0 0 8px; flex-grow: 1; }
.project-card .btn { align-self: flex-start; }

/* Track record */
.record {
  background:
    radial-gradient(circle at 20% 30%, rgba(249,115,22,.10), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(239,68,68,.06), transparent 55%),
    linear-gradient(135deg, var(--us-bg-warm) 0%, #fdedd9 100%);
  padding: 80px 24px;
  text-align: center;
}
.record .eyebrow { color: var(--us-orange); justify-content: center; }
.record h2 { font-size: 36px; color: var(--us-navy); font-weight: 600; margin: 0 0 18px; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.record p { max-width: 780px; margin: 0 auto 26px; color: var(--us-text); font-size: 15px; line-height: 1.65; }

/* Your Property */
.banner-small {
  background: var(--us-navy);
  color: var(--us-white);
  text-align: center;
  padding: 50px 24px;
}
.banner-small h2 { font-size: 30px; color: var(--us-white); margin: 0 0 22px; font-weight: 600; }

/* Testimonials */
.testimonials {
  padding: 80px 0;
  text-align: center;
}
.testimonials .eyebrow { justify-content: center; }
.testimonials h2 { font-size: 36px; color: var(--us-navy); margin: 0 0 18px; line-height: 1.2; font-weight: 600; }
.testimonial-grid {
  max-width: var(--us-container);
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.testimonial-grid .img { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.testimonial-grid .img img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-body p { color: var(--us-text); font-size: 16px; line-height: 1.7; }
.testimonial-meta { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-meta .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--us-divider); }
.testimonial-meta .name { font-weight: 600; color: var(--us-navy); }
.testimonial-meta .role { font-size: 13px; color: var(--us-text-muted); }

/* Blog */
.blog-section { padding: 80px 0; text-align: center; }
.blog-section .eyebrow { justify-content: center; }
.blog-section h2 { font-size: 36px; color: var(--us-navy); margin: 0 0 18px; line-height: 1.2; font-weight: 600; }
.blog-grid {
  max-width: var(--us-container);
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.blog-card { background: var(--us-white); border: 1px solid var(--us-divider); border-radius: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--us-shadow-card); }
.blog-card .img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 20px; }
.blog-card .date { color: var(--us-text-muted); font-size: 12px; margin: 0 0 8px; }
.blog-card h3 { font-size: 16px; color: var(--us-navy); line-height: 1.35; margin: 0 0 12px; font-weight: 600; }
.blog-card .read-more { color: var(--us-orange); font-weight: 500; font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { min-height: 600px; padding: 130px 0 90px; }
  .intro-cols, .about-row, .solutions-card, .testimonial-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .intro-cols, .about-row, .solutions-card, .testimonial-grid, .projects .grid { grid-template-columns: 1fr; }
  .work-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; padding: 120px 0 70px; }
  .banner-cta h2 { font-size: 26px; }
  .solutions-card .copy ul { grid-template-columns: 1fr; }
}
