/* ═══════════════════════════════════════════════════════════════
   solar.css  –  Residential / Commercial / Industrial solar pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────── */
.sol-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--navy-deep) center/cover no-repeat;
  color: #fff;
  padding: 5.5rem 0 5rem;
}
.sol-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(22,19,72,0.93) 0%, rgba(22,19,72,0.48) 70%);
  pointer-events: none;
}
.sol-hero .wrap { position: relative; z-index: 1; }
.sol-hero .eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: #ffb066;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sol-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 680px;
  line-height: 1.1;
}
.sol-hero .lede {
  margin: 0 0 2rem;
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  max-width: 540px;
  line-height: 1.65;
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn-ghost-w {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid rgba(255,255,255,0.52);
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.22s, border-color 0.22s;
}
.btn-ghost-w:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ── Orange strip ── */
.sol-strip {
  background: var(--orange);
  padding: 0.85rem 0;
}
.sol-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
}
.sol-strip li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}
.sol-strip svg { width: 15px; height: 15px; flex: none; }

/* ── Section head ── */
.sol-sh { margin-bottom: 2.8rem; }
.sol-sh .eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sol-sh h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}
.sol-sh p { margin: 0; color: var(--muted); max-width: 44rem; }
.sol-sh .on-dark { color: #fff; }
.sol-sh p.on-dark { color: rgba(255,255,255,0.76); }

/* ── Why Choose ── */
.sol-why { padding: 5rem 0; }
.sol-why-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}
.sol-why-card {
  padding: 1.65rem 1.45rem 1.5rem;
  background: var(--paper);
  border-radius: 10px;
  border-left: 4px solid var(--orange);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sol-why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sol-why-card svg { width: 44px; height: 44px; color: var(--orange); margin-bottom: 0.9rem; }
.sol-why-card h3 { margin: 0 0 0.45rem; color: var(--navy); font-size: 1.05rem; }
.sol-why-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.62; }

/* ── Calculator ── */
.sol-calc { padding: 5rem 0; background: var(--navy); color: #fff; }
.calc-wrap { display: grid; gap: 2rem; align-items: stretch; }
.calc-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
}
.calc-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}
.calc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 19, 72, 0.08) 35%, rgba(22, 19, 72, 0.82) 100%);
  pointer-events: none;
}
.calc-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}
.calc-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 2rem 1.8rem;
}
.calc-box h3 { margin: 0 0 1.5rem; color: #fff; font-size: 1.22rem; }
.cf { margin-bottom: 1.2rem; }
.cf label {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(255,255,255,0.84);
  font-size: 0.88rem;
  font-weight: 600;
}
.cf input, .cf select {
  width: 100%;
  padding: 0.72rem 0.95rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: #fff;
  font-size: 0.97rem;
  transition: border-color 0.2s;
}
.cf input::placeholder { color: rgba(255,255,255,0.38); }
.cf input:focus, .cf select:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.14);
}
.cf select option { color: var(--ink); background: #fff; }
.btn-calc {
  display: block;
  width: 100%;
  margin-top: 1.4rem;
  min-height: 50px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.btn-calc:hover { background: var(--orange-deep); }
.calc-disc { margin-top: 0.85rem; font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.55; }

.calc-results { display: none; }
.calc-results.show { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
.crc {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-top: 3px solid var(--orange);
  border-radius: 10px;
  padding: 1rem 0.85rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.crc .val {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffb066;
  line-height: 1.15;
}
.crc .lbl { display: block; margin-top: 0.42rem; color: rgba(255,255,255,0.7); font-size: 0.82rem; line-height: 1.4; }
.calc-note {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.1);
  border-left: 3px solid #ffb066;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
}
.calc-note.show { display: block; }
.calc-note a { color: #ffb066; font-weight: 600; }

/* ── Projects ── */
.sol-projects { padding: 5rem 0; background: var(--paper); }
.sol-projects .marquee,
.sol-testimonials .marquee { overflow: hidden; }
.sol-projects .marquee-track { animation-duration: 38s; }
.sol-testimonials .marquee-track { animation-duration: 32s; animation-direction: reverse; }
.sol-projects .marquee:hover .marquee-track,
.sol-testimonials .marquee:hover .marquee-track { animation-play-state: paused; }
.proj-card {
  flex: none;
  width: min(320px, 82vw);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(22,19,72,0.12); }
.proj-card figure { margin: 0; overflow: hidden; }
.proj-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s ease; }
.proj-card:hover img { transform: scale(1.06); }
.proj-card div { padding: 1.1rem 1.2rem 1.3rem; }
.proj-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #fff6f0;
  color: var(--orange);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.proj-card h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.05rem; }
.proj-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.proj-notice { margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ── Testimonials ── */
.sol-testimonials { padding: 5rem 0; }
.testi-card {
  flex: none;
  width: min(300px, 82vw);
  background: var(--paper);
  border-radius: 10px;
  padding: 1.7rem 1.5rem 1.5rem;
  border-top: 3px solid var(--orange);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-stars { display: flex; gap: 0.2rem; margin-bottom: 0.9rem; }
.testi-stars svg { width: 17px; height: 17px; color: #f59e0b; }
.testi-card blockquote { margin: 0 0 1.1rem; color: var(--ink); font-style: italic; line-height: 1.65; font-size: 0.97rem; }
.testi-meta strong { display: block; color: var(--navy); font-size: 0.92rem; }
.testi-meta span { color: var(--muted); font-size: 0.83rem; }
.testi-disc { display: block; margin-top: 1.8rem; font-size: 0.78rem; color: var(--muted); font-style: italic; text-align: center; }

/* ── FAQ ── */
.sol-faq { padding: 5rem 0; background: var(--paper); }
.sol-faq-list { display: grid; gap: 0.75rem; max-width: 820px; }
.sfaq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.sfaq-btn {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.97rem;
  transition: color 0.2s;
}
.sfaq-btn .chev { flex: none; width: 20px; height: 20px; transition: transform 0.25s ease; }
.sfaq-item.open .sfaq-btn { color: var(--orange); }
.sfaq-item.open .sfaq-btn .chev { transform: rotate(180deg); }
.sfaq-ans {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.sfaq-item.open .sfaq-ans { display: block; }

/* ── CTA quote ── */
.sol-cta {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #2a2480 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sol-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(226,90,0,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.sol-cta .wrap { position: relative; z-index: 1; }
.sol-cta .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: #ffb066;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sol-cta h2 { margin: 0 0 0.9rem; color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.sol-cta > .wrap > p { margin: 0 auto 2.2rem; color: rgba(255,255,255,0.82); font-size: 1.06rem; max-width: 520px; }
.cta-acts { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.sol-cta .btn { padding: 0.85rem 2.2rem; font-size: 1rem; }
.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 1.5rem;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.22s, border-color 0.22s;
}
.btn-ghost-cta:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── Mobile nav sub-links ── */
.sub-link {
  padding-left: 2rem !important;
  font-size: 0.9rem !important;
  color: var(--orange) !important;
}

/* ── Responsive ── */
@media (min-width: 720px) {
  .calc-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .sol-hero { min-height: 380px; padding: 4.2rem 0 3.8rem; }
  .sol-strip li { font-size: 0.8rem; }
  .calc-visual,
  .calc-visual img { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-why-card, .proj-card, .proj-card img, .testi-card { transition: none; }
  .sol-projects .marquee-track,
  .sol-testimonials .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}
