/* ============================================================
   GeneratorMatch — Premium Design System
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --green:   #1b3a2d;
  --green-mid: #244d3a;
  --green-light: #2d6047;
  --amber:   #f5821f;
  --amber-dark: #d96d0a;
  --cream:   #f7f5ef;
  --white:   #ffffff;
  --body:    #1a1a1a;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 28px rgba(0,0,0,.13), 0 4px 8px rgba(0,0,0,.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --nav-h: 68px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--body);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 700; }
h5 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
p { color: var(--body); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section--cream  { background: var(--cream); }
.section--green  { background: var(--green); }
.section--white  { background: var(--white); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn--primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  box-shadow: 0 4px 16px rgba(245, 130, 31, 0.35);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}
.btn--outline:hover {
  background: var(--amber);
  color: var(--white);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}
.btn--block { width: 100%; }

/* ── Navigation ────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--body);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--body); background: var(--cream); }
.nav-links a.active { color: var(--body); }
.nav-links a.nav-cta {
  background: var(--amber);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}
.nav-links a.nav-cta:hover {
  background: var(--amber-dark);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--body);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--green);
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  min-height: 420px;
}

.hero-content {
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(245, 130, 31, 0.18);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 480px;
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.hero-search input::placeholder { color: rgba(255,255,255,0.45); }
.hero-search input:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.15);
}

.hero-trust {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero right: CSS decorative shape */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-photo {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  object-fit: cover;
}

.hero-shape {
  width: 360px;
  height: 400px;
  position: relative;
}

.hero-shape-main {
  width: 300px;
  height: 360px;
  background: linear-gradient(145deg, #2d6047 0%, #1b3a2d 60%);
  border-radius: 24px 24px 0 0;
  position: absolute;
  bottom: 0;
  left: 30px;
  overflow: hidden;
}

.hero-shape-main::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  height: 110px;
  background: linear-gradient(135deg, rgba(245,130,31,0.25) 0%, rgba(245,130,31,0.05) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(245,130,31,0.3);
}

.hero-shape-main::after {
  content: '';
  position: absolute;
  top: 165px;
  left: 30px;
  right: 30px;
  height: 70px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-shape-accent {
  width: 80px;
  height: 80px;
  background: var(--amber);
  border-radius: 50%;
  position: absolute;
  top: 20px;
  right: 10px;
  opacity: 0.9;
}

.hero-shape-bolt {
  position: absolute;
  top: 46px;
  right: 32px;
  width: 36px;
  height: 36px;
}

/* ── Category Strip ─────────────────────────────────────────── */
.category-strip {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              color var(--transition), transform var(--transition);
  text-decoration: none;
}
.category-pill:hover {
  border-color: var(--amber);
  background: #fff8f2;
  color: var(--amber);
  transform: translateY(-1px);
}
.category-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--cream);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stat-item {
  text-align: center;
  padding: 24px 32px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── How It Works (dark band) ───────────────────────────────── */
.how-it-works-band {
  background: var(--green);
  padding: 80px 0;
}

.hiw-header {
  text-align: center;
  margin-bottom: 56px;
}
.hiw-header h2 { color: var(--white); }
.hiw-header p { color: rgba(255,255,255,0.65); margin-top: 10px; }

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(33.33% - 12px);
  right: calc(33.33% - 12px);
  height: 2px;
  background: rgba(255,255,255,0.12);
}

.hiw-step {
  text-align: center;
}

.hiw-step-num {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hiw-step-icon {
  width: 56px;
  height: 56px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.hiw-step-icon svg { width: 26px; height: 26px; }

.hiw-step h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.hiw-step p  { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ── Calculator CTA ─────────────────────────────────────────── */
.calc-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc-cta-text { max-width: 520px; }

.calc-cta-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 380px;
}

.photo-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .calc-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .calc-cta-photo { display: none; }
}

.calc-cta-section {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.calc-cta-section .section-eyebrow {
  display: inline-block;
  background: #fff3e8;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.calc-cta-section h2 { margin-bottom: 14px; }
.calc-cta-section p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header--center {
  text-align: center;
}
.section-header--center p { margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  background: #fff3e8;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section--green .section-eyebrow {
  background: rgba(245,130,31,0.18);
  color: var(--amber);
}

/* ── Installer Cards ────────────────────────────────────────── */
.installer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.installer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.installer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}

.installer-card.featured {
  border-top: 3px solid var(--amber);
}

.featured-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}

.installer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  object-fit: cover;
}

.installer-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.installer-info { flex: 1; min-width: 0; }

.installer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.installer-location {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.installer-brands {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8f4ee;
  color: var(--green);
  border: 1px solid #c6dece;
}
.brand-tag.kohler {
  background: #e8edf4;
  color: #1b2d4a;
  border-color: #c6cede;
}

.installer-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.installer-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.star {
  width: 14px;
  height: 14px;
  fill: #f5821f;
  color: #f5821f;
}
.star.empty { fill: #e5e7eb; color: #e5e7eb; }
.installer-stars span {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 4px;
}

.installer-card .btn {
  margin-top: auto;
}

.installer-card.hidden { display: none; }

/* ── No-results state ───────────────────────────────────────── */
.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
}
.no-results.visible { display: block; }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--amber);
  font-family: Georgia, serif;
  opacity: 0.6;
  margin-bottom: -8px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--body);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

/* ── Trust / Brand Bar ──────────────────────────────────────── */
.trust-bar {
  background: var(--cream);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--body);
  box-shadow: var(--shadow-sm);
}

.brand-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--green);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-band .btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
#site-footer {
  background: var(--green);
  color: rgba(255,255,255,0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-brand .nav-logo {
  color: var(--white);
}

.footer-col h5 {
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--amber); }
.breadcrumb-list .sep { opacity: 0.5; }
.breadcrumb-list .current { color: var(--body); font-weight: 600; }

/* ── Search / Filter Bar ────────────────────────────────────── */
.sticky-filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition);
  flex: 0 1 200px;
}
.filter-input-wrap:focus-within { border-color: var(--amber); }
.filter-input-wrap svg {
  padding: 0 10px;
  color: var(--muted);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.filter-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px 10px 0;
  font-size: 0.9rem;
  background: transparent;
}

.filter-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--body);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  flex: 0 1 160px;
}
.filter-select:focus { border-color: var(--amber); }

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--amber);
  background: #fff8f2;
  color: var(--amber);
}

.filter-search-btn {
  margin-left: auto;
}

/* ── Results count bar ──────────────────────────────────────── */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.results-count {
  font-size: 0.9rem;
  color: var(--muted);
}
.results-link {
  font-size: 0.875rem;
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
.results-link:hover { text-decoration: underline; }

/* ── Calculator Wizard ──────────────────────────────────────── */
.calc-page {
  background: var(--cream);
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 0;
}

.calc-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 36px;
}
.calc-header h2 { margin-bottom: 8px; }
.calc-header p { color: var(--muted); }

/* Progress bar */
.calc-progress {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.calc-progress-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 400px;
}

.calc-progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
  position: relative;
}
.calc-progress-step.active { background: var(--amber); }
.calc-progress-step.done   { background: var(--green); }

.calc-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.calc-progress-label.active { color: var(--amber); }
.calc-progress-label.done   { color: var(--green); }

/* Steps */
.calc-step { display: none; }
.calc-step.active { display: block; }

.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  margin-bottom: 24px;
}

.calc-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.calc-card h3 { margin-bottom: 6px; }
.calc-card .step-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }

/* Option grid */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.option-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--body);
}
.option-card span {
  font-size: 0.8rem;
  color: var(--muted);
}
.option-card:hover {
  border-color: var(--amber);
  background: #fff8f2;
}
.option-card.selected {
  border-color: var(--amber);
  background: #fff8f2;
  box-shadow: 0 0 0 3px rgba(245,130,31,0.15);
}
.option-card.selected strong { color: var(--amber); }

/* Checkbox list */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.checkbox-item:hover { border-color: #d1d5db; background: #fafafa; }
.checkbox-item.checked {
  border-color: var(--amber);
  background: #fff8f2;
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--amber);
  cursor: pointer;
}
.checkbox-item-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 2px;
}
.checkbox-item-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.tonnage-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.tonnage-row.visible { display: flex; }
.tonnage-row select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.85rem;
  outline: none;
}
.tonnage-row select:focus { border-color: var(--amber); }

/* Nav buttons */
.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--transition);
  font-family: inherit;
}
.btn-back:hover { color: var(--body); }
.btn-back.hidden { visibility: hidden; }

/* Result panel */
.result-panel { display: none; }
.result-panel.active { display: block; }

.result-hero {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  margin-bottom: 24px;
}

.result-kw {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 8px;
}
.result-kw-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.result-brand-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.result-cost {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}

.result-breakdown {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1.5px solid var(--border);
  margin-bottom: 24px;
}
.result-breakdown h4 { margin-bottom: 16px; }
.breakdown-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--body);
}
.breakdown-line:last-child {
  border-bottom: none;
  font-weight: 700;
}

.lead-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.lead-form-wrapper h4 { margin-bottom: 6px; }
.lead-form-wrapper > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--body);
}
.form-control:focus { border-color: var(--amber); }
.form-control::placeholder { color: #b0b8c1; }

.form-success {
  display: none;
  background: #e8f4ee;
  border: 1.5px solid #a8d4b8;
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.form-success.active { display: block; }

/* ── For Installers page ────────────────────────────────────── */
.page-hero {
  background: var(--green);
  padding: 80px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p   { color: rgba(255,255,255,0.7); max-width: 560px; font-size: 1.1rem; margin-bottom: 32px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,130,31,0.12), var(--shadow-md);
  position: relative;
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-3px); }

.pricing-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}
.check-icon {
  width: 18px;
  height: 18px;
  background: #e8f4ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon svg { width: 10px; height: 10px; color: var(--green); }

.pricing-card.featured .check-icon {
  background: #fff3e8;
}
.pricing-card.featured .check-icon svg { color: var(--amber); }

/* Benefits list */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.benefit-icon {
  width: 40px;
  height: 40px;
  background: #e8f4ee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-icon svg { width: 20px; height: 20px; color: var(--green); }
.benefit-text strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.benefit-text span   { font-size: 0.875rem; color: var(--muted); }

/* Application form */
.app-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}
.app-form-card h3 { margin-bottom: 6px; }
.app-form-card > p { color: var(--muted); margin-bottom: 28px; }

/* ── How It Works page ──────────────────────────────────────── */
.hiw-page-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.hiw-page-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: flex-start;
}
.hiw-step-number-box {
  width: 70px;
  height: 70px;
  background: var(--green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.hiw-page-step h3 { margin-bottom: 8px; }
.hiw-page-step p { color: var(--muted); }

.faq-section { padding: 60px 0; background: var(--cream); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  gap: 16px;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding-bottom: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; width: 100%; border-radius: var(--radius-sm); }
  .nav-links a.nav-cta { margin-top: 8px; justify-content: center; }
  #site-header { position: sticky; }

  .hero { padding: 56px 0 0; }
  .hero-content { padding-bottom: 56px; }
  .hero-search { flex-direction: column; }
  .hero-search input, .hero-search .btn { width: 100%; }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .hiw-steps { grid-template-columns: 1fr; gap: 36px; }
  .hiw-steps::before { display: none; }

  .installer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .option-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .calc-card { padding: 24px; }

  .filter-inner { gap: 8px; }
  .filter-input-wrap, .filter-select { flex: 1 1 140px; }
  .filter-search-btn { width: 100%; }

  .hiw-page-step { grid-template-columns: 60px 1fr; gap: 18px; }

  .calc-cta-section { padding: 56px 0; }
  .cta-band { padding: 56px 0; }
}

@media (max-width: 480px) {
  .installer-grid { grid-template-columns: 1fr; }
  .category-pill { padding: 8px 14px; font-size: 0.8rem; }
  .hero-search .btn { width: 100%; }
}
