/* SoCal Solar Help
   Domain: socalsolarhelp.com
   Mobile-first, no CSS dependencies
*/

:root {
  color-scheme: light;
  --ink: #18313c;
  --ink-deep: #102630;
  --text: #344b55;
  --muted: #52636a;
  --green: #176754;
  --green-dark: #10513f;
  --green-soft: #eaf4ed;
  --gold: #b97821;
  --gold-soft: #fff1d9;
  --cream: #fffaf0;
  --paper: #ffffff;
  --surface: #f3f7f5;
  --line: #d6e1dc;
  --danger: #9b3929;
  --focus: #b36d08;
  --shadow: 0 12px 36px rgba(15, 51, 44, .09);
  --radius: 15px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.7 system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI",
        Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0 0 .65em;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.65rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

a:hover { color: var(--gold); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

button { cursor: pointer; }

.container {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 790px;
  margin-inline: auto;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.bg-soft { background: var(--surface); }
.bg-cream { background: var(--cream); }
.bg-dark {
  background: var(--ink-deep);
  color: #e8f0ed;
}
.bg-dark h2,
.bg-dark h3 { color: white; }

.eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--green);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bg-dark .eyebrow { color: #efd09a; }

.lead {
  font-size: clamp(1.14rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: #425965;
}

.bg-dark .lead { color: #dfebe7; }

.muted { color: var(--muted); }
.small { font-size: .92rem; }
.center { text-align: center; }

.section-heading {
  max-width: 760px;
  margin-bottom: 35px;
}

.section-heading.center { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 1000;
  background: white;
  padding: 12px 18px;
}

.skip-link:focus { top: 10px; }

/* Header */

.utility-bar {
  background: var(--ink-deep);
  color: #f6f8f5;
  padding: 8px 0;
  font-size: .85rem;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.utility-bar a {
  color: #fff1d6;
  font-weight: 750;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--ink); }

.brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--green-dark);
  background:
    radial-gradient(circle at 72% 28%,
      #f8bc55 0 17%, transparent 18%),
    linear-gradient(135deg, #d7eddb, #f5e1b2);
  font-size: 1.45rem;
}

.brand-name {
  display: block;
  font-weight: 850;
  font-size: 1.24rem;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.brand-tag {
  display: block;
  font-size: .67rem;
  color: var(--muted);
  letter-spacing: .045em;
  margin-top: 5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav-links a {
  text-decoration: none;
  font-size: .91rem;
  font-weight: 700;
  color: var(--ink);
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-links .btn { font-size: .9rem; }

/* Buttons */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 23px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s,
              border-color .15s,
              transform .15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover {
  background: var(--green-dark);
  color: white;
}

.btn-secondary {
  border-color: var(--green);
  background: white;
  color: var(--green-dark);
}

.btn-secondary:hover { background: var(--green-soft); }

.btn-gold {
  background: #e9ae4e;
  color: var(--ink-deep);
}
.btn-gold:hover {
  background: #f3c06b;
  color: var(--ink-deep);
}

.btn-small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: .89rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 85px;
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(250, 197, 106, .34),
      transparent 36%
    ),
    linear-gradient(125deg, #fffcf4 10%, #edf7ef 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr)
                         minmax(275px, .7fr);
  align-items: center;
  gap: 64px;
}

.hero h1 { max-width: 850px; }

.hero .lead { max-width: 660px; }

.hero-panel {
  padding: 34px;
  border: 1px solid #d7e6d8;
  border-radius: 22px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow);
}

.hero-panel h2 { font-size: 1.5rem; }

.hero-panel ul { margin-bottom: 0; }

.hero-panel li { padding-bottom: 10px; }

.hero-panel li::marker { color: var(--green); }

.hero-note {
  margin-top: 22px;
  padding: 13px 17px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: .94rem;
  max-width: 700px;
}

/* Interior page hero */

.page-hero {
  padding: 69px 0 64px;
  background:
    radial-gradient(circle at right top,
      rgba(246, 190, 95, .25), transparent 45%),
    var(--cream);
  border-bottom: 1px solid #f0e7d8;
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

.page-hero .lead { max-width: 850px; }

.breadcrumb {
  margin-bottom: 28px;
  font-size: .86rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--green-dark); }

/* Cards and grids */

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

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 15px rgba(26, 52, 46, .025);
}

.card h3 { margin-bottom: 12px; }

.card p { font-size: .98rem; }

.card a { font-weight: 750; }

.card-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.stat {
  padding: 23px;
  text-align: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.65rem;
  line-height: 1.2;
}

.stat span { font-size: .86rem; }

.callout {
  padding: 25px 28px;
  margin: 25px 0;
  background: var(--green-soft);
  border-left: 5px solid var(--green);
  border-radius: 0 12px 12px 0;
}

.callout.warning {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.callout h3 {
  font-size: 1.2rem;
  margin-bottom: 9px;
}

/* Reading layouts */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 55px;
}

.article h2 {
  margin-top: 45px;
}

.article h2:first-child { margin-top: 0; }

.article h3 { margin-top: 26px; }

.article ul,
.article ol {
  padding-left: 25px;
  margin: 0 0 23px;
}

.article li { margin-bottom: 10px; }

.article p { max-width: 77ch; }

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-card {
  padding: 25px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.sidebar-card h2 { font-size: 1.3rem; }

.sidebar-card a:not(.btn) { font-weight: 700; }

.sidebar-card ul {
  margin: 0;
  padding-left: 21px;
}

.sidebar-card li { margin-bottom: 11px; }

.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 2px 0 22px 65px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.steps li strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.check-list {
  padding-left: 22px;
}

.check-list li { padding-left: 5px; }

.check-list li::marker { color: var(--green); }

/* FAQ */

.faq-list {
  max-width: 850px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}

.faq-list summary {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}

.faq-list details p {
  margin: 15px 0 0;
  padding-right: 20px;
}

.faq-list details[open] summary { color: var(--green); }

/* Form */

.quote-section {
  background: var(--surface);
  padding: 85px 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr)
                         minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}

.quote-intro h2 { margin-bottom: 22px; }

.quote-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 35px;
  box-shadow: var(--shadow);
}

.quote-form h3 { margin-bottom: 8px; }

.form-help {
  color: var(--muted);
  font-size: .91rem;
  margin-bottom: 20px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 750;
  font-size: .96rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  border: 1px solid #a8b8b0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-row textarea {
  min-height: 115px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #68797d;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}

.consent-row input {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 4px;
  accent-color: var(--green);
}

.consent-row label {
  font-size: .93rem;
  color: var(--ink);
  line-height: 1.55;
}

.disclosure {
  border-left: 4px solid var(--green);
  background: #edf4f1;
  padding: 17px 18px;
  font-size: .87rem;
  line-height: 1.6;
  color: #263f3c;
  margin: 19px 0;
}

.disclosure strong { color: var(--ink); }

.form-footnote {
  margin-top: 15px;
  font-size: .86rem;
  color: var(--muted);
}

.form-submit {
  width: 100%;
  min-height: 54px;
}

.direct-contact {
  padding: 26px;
  background: var(--ink-deep);
  color: white;
  border-radius: var(--radius);
  margin-top: 28px;
}

.direct-contact h3 { color: white; }

.direct-contact a { color: #ffe1a5; }

/* CTA band */

.cta-band {
  background: var(--green-dark);
  color: white;
  padding: 43px 0;
}

.cta-band h2 { color: white; margin-bottom: 9px; }
.cta-band p { color: #e2f1eb; }

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 23px;
}

/* Footer */

.site-footer {
  background: var(--ink-deep);
  color: #dce7e3;
  padding: 65px 0 28px;
  font-size: .95rem;
}

.site-footer h2,
.site-footer h3 { color: white; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 40px;
}

.footer-grid h3 { font-size: 1.12rem; }

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li { margin-bottom: 9px; }

.site-footer a { color: #f8e5bf; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #3a5059;
  font-size: .85rem;
}

.footer-bottom p { margin-bottom: 10px; }

/* Mobile call bar */

.mobile-call-bar { display: none; }

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Tablet */

@media (max-width: 1000px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 15px 0;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
    gap: 12px 19px;
  }

  .hero-grid { gap: 30px; }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .container { width: min(100% - 32px, var(--max)); }

  .section { padding: 57px 0; }

  .section-sm { padding: 38px 0; }

  .hero { padding: 61px 0; }

  .hero-grid,
  .quote-grid,
  .article-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-panel { padding: 25px; }

  .page-hero { padding: 46px 0; }

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

  .stat-strip { grid-template-columns: repeat(2, 1fr); }

  .sidebar { position: static; }

  .quote-grid { gap: 30px; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-grid > :first-child { grid-column: 1 / -1; }

  .site-footer { padding-bottom: 85px; }

  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 15px rgba(0, 0, 0, .08);
  }

  .mobile-call-bar .btn { flex: 1; }
}

@media (max-width: 520px) {
  .utility-inner {
    justify-content: center;
    text-align: center;
    font-size: .78rem;
  }

  .utility-inner span { display: none; }

  .nav-wrap { gap: 13px; }

  .brand-name { font-size: 1.16rem; }

  .nav-links {
    gap: 7px 15px;
    padding-bottom: 5px;
  }

  .nav-links a { font-size: .85rem; }

  .nav-links .btn { display: none; }

  .hero h1 { font-size: 2.35rem; }

  .card-grid,
  .stat-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child { grid-column: auto; }

  .card { padding: 24px; }

  .quote-form { padding: 23px 19px; }

  .btn-row { align-items: stretch; }
  .btn-row .btn { width: 100%; }

  .cta-inner .btn { width: 100%; }

  .mobile-call-bar .btn {
    font-size: .88rem;
    padding-inline: 10px;
  }
}

/* --- Deploy patch: privacy page components --- */
.contractor-block { padding: 20px 22px; margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 0 12px 12px 0; }
.contractor-block p { margin-bottom: 6px; }
.contractor-block p:last-child { margin-bottom: 0; }
.sidebar-call { padding: 25px; margin-bottom: 18px; background: var(--green-dark); color: white; border-radius: var(--radius); }
.sidebar-call h2 { color: white; font-size: 1.3rem; }
.sidebar-call .small { color: #dce7e3; }
.effective-date { font-weight: 600; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.btn-outline-light { background: transparent; color: white; border: 2px solid white; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: white; }
.cta-note { font-size: .9rem; color: #dce7e3; margin-top: 14px; }
.cta-note a { color: #f8e5bf; }
.footer-brand p { margin-bottom: 10px; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 9px; }

/* Deploy photo bands (added 2026-10-27) */
.site-photo{margin:36px auto;max-width:1120px;padding:0 20px}
.site-photo img{width:100%;height:auto;display:block;border-radius:14px}
.site-photo.narrow{max-width:520px}
