/* VoltWise AZ - Lead Gen Site */
:root {
  /* Brand colors */
  --deep-navy: #0B2A4A;
  --electric-blue: #1E63B5;
  --accent-yellow: #F5B400;
  --light-gray: #F4F6F8;
  /* Legacy mapping for minimal change */
  --blue-900: #0B2A4A;
  --blue-700: #1e4976;
  --blue-600: #1E63B5;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --gray-50: #F4F6F8;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(11, 42, 74, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
}

/* Focus styles (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* Inner page hero (no form) */
.page-hero {
  padding: 2.5rem 0 3rem;
}
.page-hero .hero-form-wrap {
  display: none;
}
.page-hero .hero-grid {
  grid-template-columns: 1fr;
}

/* CTA block for inner pages */
.cta-block {
  text-align: center;
  padding: 2rem;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
}
.cta-block .btn {
  margin-top: 0.5rem;
}

/* Breadcrumb / utility */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--gray-600);
}
.breadcrumb a:hover {
  color: var(--blue-600);
}

/* Content prose for long-form pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.35rem;
  color: var(--blue-900);
  margin: 2rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.15rem;
  color: var(--blue-900);
  margin: 1.5rem 0 0.5rem;
}
.prose ul, .prose ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: var(--gray-700);
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose p {
  margin: 0 0 1rem;
  color: var(--gray-700);
}
.prose .steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.prose .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}
.prose .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.75rem;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-900);
  display: flex;
  align-items: center;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--gray-700);
  font-weight: 500;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--blue-600);
}

.header-cta {
  padding: 0.5rem 1rem;
  background: var(--blue-600);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(30, 99, 181, 0.35);
}

.header-cta:hover {
  background: var(--accent-yellow);
  color: var(--deep-navy) !important;
  box-shadow: 0 2px 8px rgba(245, 180, 0, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%);
  padding: 3rem 0 4rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/voltwise-logo.png') no-repeat center;
  background-size: 500px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-900);
}

.hero-content .highlight {
  color: var(--blue-600);
}

.hero-sub {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--gray-600);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--blue-600) !important;
}

.phone-icon {
  font-size: 1.25rem;
}

.hero-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.hero-form-wrap {
  position: relative;
}

.form-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--blue-900);
}

.form-card > p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.contact-form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}

.contact-form textarea {
  resize: vertical;
  min-height: 60px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary {
  margin-top: 1rem;
  width: 100%;
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-yellow);
  color: var(--deep-navy);
}

.btn-large {
  width: auto;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.section:nth-child(even) {
  background: var(--gray-50);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-900);
  text-align: center;
}

.section-sub {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--gray-600);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--blue-900);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}
.service-card .btn-primary {
  width: auto;
  margin-top: 1rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

.about-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--gray-600);
}

.about-list li {
  margin-bottom: 0.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  padding: 0.5rem 1rem;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

/* FAQ (SEO / AEO / GEO) */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.faq-list dt {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-900);
  margin: 1.25rem 0 0.35rem;
}

.faq-list dt:first-of-type {
  margin-top: 0;
}

.faq-list dd {
  margin: 0 0 0 0;
  padding: 0 0 0.5rem;
  color: var(--gray-600);
  line-height: 1.6;
  border-bottom: 1px solid var(--gray-200);
}

.faq-list dd:last-of-type {
  border-bottom: none;
}

.faq-list a {
  font-weight: 500;
}

/* Service area */
.neighborhoods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.neighborhood {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.section:nth-child(even) .neighborhood {
  background: var(--white);
}

.area-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

/* Contact CTA */
.contact-cta {
  text-align: center;
}

.contact-cta .btn-large {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--blue-900);
  color: var(--gray-200);
  padding: 2rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.footer-name {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-disclaimer {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.footer p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.footer a {
  color: var(--blue-100);
}

.footer a:hover {
  color: var(--white);
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .logo img {
    height: 42px;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-form-wrap {
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }

  .form-card {
    padding: 1.25rem;
  }
}
