/* Solar Lead Marketing — site styles */
:root {
  --ink: #102418;
  --ink-soft: #1c3324;
  --brand: #2c9a38;
  --brand-dark: #1e7a2a;
  --brand-deep: #0c2a18;
  --brand-light: #e7f6e8;
  --sky: #2b7eb5;
  --sky-soft: #6aadd6;
  --sun: #e6bd47;
  --bg: #f6fbf7;
  --bg-alt: #eef6f1;
  --white: #ffffff;
  --muted: #4a5c50;
  --line: #d3e3d7;
  --cta: #2c9a38;
  --cta-dark: #1e7a2a;
  --danger: #9b2c2c;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(12, 42, 24, 0.08);
  --max: 1280px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.55em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 200;
  background: #fff; color: var(--ink);
  padding: 8px 12px; border-radius: 8px;
  outline: 3px solid var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand img {
  width: 52px; height: 44px; object-fit: contain;
  border-radius: 8px; background: #fff;
}
.brand-text { line-height: 1.15; }
.brand-text small {
  display: block; font-weight: 600; font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 6px 18px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a, .nav-links .sub-toggle {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
  background: none; border: 0; font-family: inherit;
  cursor: pointer; padding: 8px 0;
  white-space: nowrap;
}
.nav .btn { white-space: nowrap; }
.nav-links a:hover, .nav-links .sub-toggle:hover,
.nav-links a[aria-current="page"] { color: var(--brand-dark); }
.has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 5px; }
.sub-toggle::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.7;
}
.sub-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: -12px;
  min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px;
  z-index: 90;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: 0.93rem;
}
.sub-menu a:hover { background: var(--brand-light); }
.menu-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font: inherit;
  font-weight: 700; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.98rem; line-height: 1.2; text-align: center; cursor: pointer;
  font-family: inherit; color: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--brand-light); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-light); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.nav .btn { padding: 9px 16px; font-size: 0.9rem; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% -10%, rgba(230, 189, 71, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 110%, rgba(44, 154, 56, 0.35), transparent 55%),
    linear-gradient(160deg, #071a10 0%, #0c2a18 48%, #143c28 100%);
  color: #fff; padding: 84px 0 76px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.12); padding: 6px 12px;
  border-radius: 999px; margin-bottom: 16px;
}
.hero p.lead { font-size: 1.2rem; color: #d8eadc; max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero .note { font-size: 0.95rem; color: #c5d9cb; }
.hero .note a { color: #fff; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 22px 50px rgba(0,0,0,0.25);
}
.hero-card h2, .hero-card h3 { font-size: 1.3rem; }
.hero-visual {
  display: flex; justify-content: center;
}
.hero-visual img {
  width: min(100%, 420px); border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.28);
  background: #fff;
}

.check { list-style: none; padding: 0; margin: 0 0 18px; }
.check li {
  padding-left: 32px; position: relative; margin-bottom: 10px;
}
.check li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%231e7a2a' d='M8 13.6 4.4 10l-1.4 1.4L8 16.4 17 7.4 15.6 6z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--brand-deep); color: #fff;
}
.section-dark p, .section-dark li { color: #d5e6d9; }
.section-dark a { color: #fff; }
.section-dark .btn-light { color: var(--ink); }
.section-dark .btn-light:hover { color: var(--ink); background: var(--brand-light); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #c5d9cb; }
.kicker {
  color: var(--brand-dark); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 10px; display: block;
}
.section-dark .kicker { color: var(--sun); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); margin: 8px 0 0; }
.card h3 { margin-bottom: 8px; }
.card a.card-link {
  display: inline-flex; margin-top: 14px; font-weight: 700;
  text-decoration: none; color: var(--brand-dark);
}
.card a.card-link:hover { text-decoration: underline; }
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(230, 189, 71, 0.2), transparent 50%),
    linear-gradient(160deg, #071a10 0%, #0c2a18 100%);
  color: #fff; padding: 64px 0 56px;
}
.page-hero .lead { font-size: 1.15rem; color: #d8eadc; max-width: 700px; }
.crumbs {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: #c5d9cb;
}
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: 0.7; }

/* Content layout */
.prose { max-width: 760px; }
.prose-wide { max-width: 860px; }
.split {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: start;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; padding: 0 0 28px 72px;
  border-left: 2px solid var(--line); margin-left: 18px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -19px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.compare {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); font-size: 0.97rem;
}
.compare th, .compare td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.compare th { background: var(--brand-deep); color: #fff; font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.compare caption {
  text-align: left; font-weight: 700; margin-bottom: 10px;
  caption-side: top; font-size: 1.05rem;
}
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 18px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 800; color: var(--brand-dark); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }
.faq details a { font-weight: 600; }

/* Forms */
form { display: grid; gap: 14px; }
label { font-weight: 700; font-size: 0.92rem; display: grid; gap: 6px; }
.req { color: var(--danger); }
input, select, textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--brand-light);
  border-color: var(--brand);
}
.consent {
  font-weight: 500; font-size: 0.88rem; color: var(--muted);
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
}
.consent input { width: auto; margin-top: 3px; }
.form-note, .form-feedback { font-size: 0.92rem; color: var(--muted); margin: 0; }
.form-feedback { color: var(--ink); background: var(--brand-light); padding: 12px 14px; border-radius: 10px; }
.hl-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff8; margin-top: 18px;
  font-size: 0.92rem; color: var(--muted);
}
.hl-placeholder code { font-size: 0.85em; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }
.calendly-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 700px;
}
.calendly-inline-widget { min-width: 320px; height: 700px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { max-width: 640px; margin: 0 auto 22px; }

/* Footer */
.site-footer {
  background: #071a10; color: #d5e6d9; padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 36px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9cc8a5; margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 12px;
}
.footer-brand img {
  width: 48px; height: 40px; object-fit: contain;
  border-radius: 8px; background: #fff;
}
.legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; color: #9cc8a5; font-size: 0.88rem; }
.legal p { margin: 0 0 8px; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  .hero-grid, .split, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 22px 20px;
    gap: 0; box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li { border-top: 1px solid var(--line); }
  .nav-links a, .nav-links .sub-toggle { padding: 12px 0; width: 100%; text-align: left; }
  .sub-menu {
    position: static; display: none; box-shadow: none; border: 0;
    padding: 0 0 8px 12px; min-width: 0;
  }
  .has-sub.is-open .sub-menu { display: block; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.is-open:hover .sub-menu { display: block; }
  .nav-links .btn { width: 100%; margin: 10px 0; }
  .hero, section { padding: 56px 0; }
  .page-hero { padding: 44px 0 36px; }
  .hero-grid, .split, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .brand-text { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Extra nav items (Solar, Roofing, Home Services) */
@media (min-width: 841px) and (max-width: 1240px) {
  .nav-links { gap: 4px 12px; }
  .nav-links a, .nav-links .sub-toggle { font-size: 0.9rem; }
  .brand-text { font-size: 0.92rem; }
}
.site-footer .footer-grid ul li { margin-bottom: 6px; }

@media (min-width: 1181px) {
  .nav-item-home { display: none; }
  .nav-links { gap: 4px 16px; }
}

/* Homepage product strip */
.hero .cta-row .btn-primary { padding: 16px 26px; font-size: 1.06rem; }
.product-strip {
  background: #071a10;
  color: #fff;
  padding: 8px 0 56px;
  margin-top: -1px;
}
.product-strip .kicker { color: var(--sun); }
.product-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
}
.product-strip-head h2 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.product-strip-head p { margin: 0 0 6px; }
.product-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.product-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 18px 16px 16px;
  color: #fff;
  text-decoration: none;
  min-height: 148px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.product-chip:hover, .product-chip:focus-visible {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  transform: translateY(-3px);
}
.product-chip .icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
  margin-bottom: 4px;
}
.product-chip strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.product-chip span { font-size: 0.9rem; color: #d5e6d9; line-height: 1.4; }
.product-strip-note { margin: 18px 0 0; color: #c5d9cb; font-size: 0.95rem; }
.product-strip-note a { color: #fff; font-weight: 700; }
@media (max-width: 1100px) {
  .product-strip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .product-strip-grid { grid-template-columns: 1fr 1fr; }
  .product-chip { min-height: 0; }
}
.product-strip .btn-light { color: var(--ink); }
.product-strip .btn-light:hover { color: var(--ink); background: var(--brand-light); }

.nav-links a.btn-primary { background: var(--cta); color: #fff; }
.nav-links a.btn-primary:hover { background: var(--cta-dark); color: #fff; }
