/* Lead-gen base — mobile-first, system fonts, no heavy assets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-muted: #5c6570;
  --color-border: #d8dde3;
  --color-primary: #0b5fff;
  --color-primary-hover: #0847c7;
  --color-accent: #c2410c;
  --color-accent-hover: #9a3412;
  --color-success: #0f766e;
  --color-trust: #f0f4f8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 3.5rem;
  --space: 1rem;
  --max: 68rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* —— Sticky header with always-visible phone CTA —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.2;
  max-width: 45%;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.header-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.header-cta svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* —— Hero —— */
.hero {
  background: linear-gradient(165deg, #e8eef8 0%, var(--color-bg) 70%);
  padding: 1.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #fed7aa;
}

.hero-badge:empty,
.hero-badge.is-empty {
  display: none;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: background 0.15s ease;
}

.btn-call {
  background: var(--color-accent);
  color: #fff !important;
  flex: 1 1 12rem;
}

.btn-call:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-trust);
  color: var(--color-text);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
  width: 100%;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* —— CTA panel (module slot) —— */
.cta-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.cta-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.cta-panel .cta-lede {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}

.form-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status[data-state="ok"] {
  color: var(--color-success);
}

.form-status[data-state="err"] {
  color: var(--color-accent);
}

.cta-phone-secondary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.95rem;
}

.cta-phone-secondary a {
  font-weight: 700;
  text-decoration: none;
}

/* —— Sections —— */
.section {
  padding: 2.25rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
}

.section-intro {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  max-width: 40rem;
}

.services-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.section-alt .service-card {
  background: var(--color-bg);
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* —— Trust —— */
.trust-grid {
  display: grid;
  gap: 1rem;
}

.trust-card {
  background: var(--color-trust);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.trust-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.trust-card p,
.trust-card ul {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.trust-card ul {
  padding-left: 1.15rem;
}

.placeholder-marker {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
}

.testimonial-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.testimonial-slot {
  background: var(--color-surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 5rem;
}

.testimonial-slot .slot-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.map-placeholder {
  margin-top: 0.75rem;
  min-height: 8rem;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    -45deg,
    #e2e8f0,
    #e2e8f0 8px,
    #f1f5f9 8px,
    #f1f5f9 16px
  );
  border: 1px dashed #94a3b8;
  border-radius: var(--radius);
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* —— FAQ —— */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
}

.faq-item details {
  padding: 0.85rem 1rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--color-muted);
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item .answer {
  margin: 0.65rem 0 0;
  color: var(--color-muted);
}

.sample-note {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

/* —— Footer —— */
.site-footer {
  background: #1a1d23;
  color: #cbd5e1;
  padding: 2rem 0 2.5rem;
}

.site-footer a {
  color: #93c5fd;
}

.site-footer .brand-footer {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.footer-phone:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.footer-meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* —— Desktop —— */
@media (min-width: 720px) {
  :root {
    --header-h: 4rem;
  }

  .brand {
    font-size: 1.1rem;
    max-width: none;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2rem;
  }

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

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .header-cta {
    transition: none;
  }
}

/* —— Hudson Valley Solar directory extensions —— */
.brand-placeholder-note {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #92400e;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.header-cta.is-secondary {
  background: var(--color-surface);
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.header-cta.is-secondary:hover {
  background: var(--color-trust);
  color: var(--color-text) !important;
}

.trust-line {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.form-row-2 {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.form-field .radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 2.75rem;
  align-items: center;
}

.form-field .radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  min-height: 2.75rem;
  padding: 0.25rem 0.5rem;
}

.form-field .radio-option input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: auto;
  accent-color: var(--color-primary);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--color-accent);
}

.how-steps {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.how-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1rem 3.25rem;
  position: relative;
}

.section-alt .how-step {
  background: var(--color-bg);
}

.how-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.how-step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.how-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.towns-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.town-link {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  min-height: 2.75rem;
}

.section-alt .town-link {
  background: var(--color-bg);
}

.town-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.town-link .county-tag {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.counties-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.counties-list li {
  background: var(--color-trust);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.partner-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.partner-card {
  background: var(--color-surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 5.5rem;
}

.section-alt .partner-card {
  background: var(--color-bg);
}

.partner-card .slot-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.partner-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.utilities-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.nav-towns {
  display: none;
}

@media (min-width: 720px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .towns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-step {
    padding-left: 1.1rem;
    padding-top: 3.25rem;
  }

  .how-step::before {
    top: 1rem;
    left: 1.1rem;
  }
}

@media (min-width: 960px) {
  .towns-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* —— SEO-applied content helpers —— */
.disclosure-line {
  margin: 0 0 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--color-trust);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-text);
  max-width: 36rem;
}

.cta-panel > .visually-integrated,
.cta-panel h2.visually-integrated {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.cta-panel .cta-planned > h2 {
  /* keep form's own h2; if both present, first panel h2 acts as section label */
}


.content-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-muted);
  max-width: 44rem;
}
.content-list li { margin-bottom: 0.4rem; }
@media (min-width: 720px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); }
}


/* ========== Mobile optimization (HV Solar) ========== */
:root {
  --sticky-cta-h: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Prevent horizontal overflow */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* iOS: avoid input zoom — keep inputs ≥16px */
.form-field input,
.form-field select,
.form-field textarea,
.btn,
.header-cta {
  font-size: 1rem; /* 16px */
}

.form-field input,
.form-field select,
.form-field textarea,
.btn,
.header-cta,
.radio-option {
  min-height: 2.75rem; /* ≥44px touch */
}

/* City + ZIP side-by-side even on small phones (short fields) */
.form-row-2 {
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* —— Compact mobile header —— */
@media (max-width: 719px) {
  :root {
    --header-h: 3rem;
    --space: 0.85rem;
    --sticky-cta-h: calc(3.5rem + var(--safe-bottom));
  }

  .header-inner {
    min-height: var(--header-h);
    padding-block: 0.35rem;
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.82rem;
    max-width: 52%;
  }

  .header-cta {
    min-height: 2.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .header-cta svg {
    width: 1rem;
    height: 1rem;
  }

  /* Hide phone digits on very narrow if needed — keep icon+Call */
  @media (max-width: 379px) {
    .header-cta {
      font-size: 0.75rem;
      padding: 0.4rem 0.65rem;
    }
  }

  /* —— Hero: short H1 → form → clamped copy —— */
  .hero {
    padding: 0.85rem 0 1.25rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  /* Let H1 / form / sub / disclosure reorder as siblings */
  .hero-copy {
    display: contents;
  }

  .hero-copy > .breadcrumb {
    order: 0;
  }

  .hero-copy > h1 {
    order: 1;
    margin: 0;
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.2;
  }

  .cta-panel {
    order: 2;
  }

  .hero-copy > .hero-sub {
    order: 3;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    max-width: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .hero-copy > .disclosure-line {
    order: 4;
    margin: 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* —— Compact form —— */
  .cta-panel {
    padding: 0.85rem 0.9rem;
  }

  .cta-panel h2,
  .cta-planned > h2 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
  }

  .cta-panel .cta-lede {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .form-stack {
    gap: 0.55rem;
  }

  .form-field label,
  .form-field .label-text {
    margin-bottom: 0.15rem;
    font-size: 0.78rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 2.75rem;
    padding: 0.45rem 0.65rem;
  }

  .form-field textarea {
    min-height: 3.25rem;
  }

  .form-field .radio-group {
    min-height: auto;
    gap: 0.5rem;
  }

  .form-field .radio-option {
    min-height: 2.5rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.95rem;
  }

  .trust-line {
    font-size: 0.75rem;
    margin: 0.35rem 0 0;
  }

  .form-note {
    font-size: 0.72rem;
    margin: 0.35rem 0 0;
  }

  .cta-phone-secondary {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    font-size: 0.85rem;
  }

  .btn {
    min-height: 2.85rem;
    font-size: 1rem;
  }

  /* Sections: tighter */
  .section {
    padding: 1.5rem 0;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .towns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .town-link {
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
  }

  .counties-list {
    gap: 0.35rem;
  }

  .counties-list li {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .footer-phone {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    padding: 1.5rem 0 calc(2rem + var(--sticky-cta-h));
  }

  body {
    padding-bottom: var(--sticky-cta-h);
  }
}

/* —— Sticky mobile CTA bar —— */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 719px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.55rem 0.85rem calc(0.55rem + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.2s ease;
  }

  .mobile-sticky-cta.is-visible {
    transform: translateY(0);
  }

  .mobile-sticky-cta .btn {
    width: 100%;
    margin: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-sticky-cta {
      transition: none;
    }
  }
}

@media (min-width: 720px) {
  .mobile-sticky-cta {
    display: none !important;
  }

  /* Restore normal hero layout — display:contents only for mobile */
  .hero-copy {
    display: block;
  }

  .hero-copy > h1,
  .hero-copy > .hero-sub,
  .hero-copy > .disclosure-line,
  .cta-panel {
    order: unset;
  }
}


/* —— Service area map (OSM embed) —— */
.service-map-wrap {
  margin-top: 1rem;
  width: 100%;
}

.service-map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 8px;
  background: var(--color-trust);
}

.map-caption {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.trust-card .service-map {
  height: 220px;
}

.contact-block {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.contact-block p {
  margin: 0 0 0.45rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

/* Legacy map-placeholder no longer used for HV solar trust map */
.map-placeholder {
  display: none;
}
