/* =========================================================
   HVAC Lead Gen — Main Stylesheet
   Mobile-first, conversion-optimized.
   ========================================================= */

:root {
  --color-primary: #0b63c5;
  --color-primary-dark: #084b95;
  --color-accent: #ff6b1a;
  --color-accent-dark: #e25310;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-error: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.muted { color: var(--color-muted); }
.small { font-size: 0.875rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* =================== Buttons =================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s;
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-call {
  background: #10b981;
  color: #fff;
  padding: 10px 16px;
  font-size: 0.95rem;
  line-height: 1.1;
}
.btn-call:hover { background: #0e9f72; }

.btn-lg { padding: 14px 26px; font-size: 1.05rem; min-height: 54px; }
.btn-xl { padding: 16px 30px; font-size: 1.15rem; min-height: 60px; }
.btn-sm { padding: 8px 12px; font-size: 0.875rem; min-height: 36px; }
.btn-block { width: 100%; }

.link-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* =================== Header =================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--color-text);
  font-size: 1.1rem;
}
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
}
.primary-nav { display: none; gap: 18px; }
.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a.is-active {
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

.call-text { display: flex; flex-direction: column; text-align: left; }
.call-label { font-size: 0.7rem; font-weight: 500; opacity: 0.9; }
.call-number { font-size: 0.95rem; font-weight: 700; }

@media (min-width: 900px) {
  .primary-nav { display: flex; }
}

/* =================== Hero =================== */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11, 99, 197, 0.92), rgba(8, 75, 149, 0.92)),
    radial-gradient(circle at 30% 10%, rgba(255,255,255,0.15), transparent 50%);
  color: #fff;
  padding: 48px 0 40px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(255,107,26,0.15), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero h1 { color: #fff; margin-bottom: 12px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 42rem; }
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 26rem;
  font-weight: 500;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-meta { color: rgba(255,255,255,0.8); }

/* Hero form card */
.hero-form .card,
.lead-card {
  background: #fff;
  color: var(--color-text);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lead-card h2 { margin-top: 0; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 60px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
}

/* =================== Forms =================== */

.lead-form .form-row { margin-bottom: 14px; }
.lead-form .form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 48px;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11,99,197,0.15);
}
.form-note { margin: 8px 0 0; text-align: center; }
.form-feedback {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-feedback.is-error { color: var(--color-error); }
.form-feedback.is-success { color: var(--color-success); }

/* =================== Sections =================== */

.section { padding: 48px 0; }
.section--alt { background: var(--color-bg-alt); }
.section-title { text-align: center; margin-bottom: 6px; }
.section-sub   { text-align: center; margin-bottom: 28px; }

.page-header {
  padding: 60px 0 30px;
  background: linear-gradient(180deg, var(--color-bg-alt), #fff);
}
.page-header h1 { margin-bottom: 12px; }
.page-header .lead { font-size: 1.15rem; max-width: 48rem; color: var(--color-muted); }
.page-header--service { text-align: center; }
.page-header--service .hero-cta { justify-content: center; }

.service-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--color-bg-alt);
  border-radius: 14px;
  margin-bottom: 12px;
}
.service-icon--xl { width: 84px; height: 84px; font-size: 2.6rem; margin: 0 auto 18px; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid--wide { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

.service-card {
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  text-decoration: none;
}
.service-card h2, .service-card h3 { margin: 8px 0; }
.service-card p { color: var(--color-muted); }
.service-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--color-primary);
}

.mini-list { padding-left: 18px; color: var(--color-muted); margin: 10px 0; }
.mini-list li { margin-bottom: 2px; }

/* Value band */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; }
}
.value-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.value-list li {
  padding-left: 28px;
  position: relative;
}
.value-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 800;
}
.value-list strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 40px 0;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0 0 4px; }
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .cta-band-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 800px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 0;
  border-left: 4px solid var(--color-accent);
}
.testimonial p { font-style: italic; }
.testimonial footer { color: var(--color-muted); font-weight: 600; }

/* Two-column service detail */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 960px) {
  .two-col { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}
.big-check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 1.05rem;
}
.process-list {
  padding-left: 20px;
  margin: 14px 0 0;
}
.process-list li { margin-bottom: 8px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}
.contact-info .phone-link {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Thank-you */
.thank-you-wrap { text-align: center; }
.thank-icon {
  width: 72px; height: 72px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--color-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}
.thank-steps { max-width: 560px; margin: 30px auto 0; text-align: left; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: #cbd5e1; }
.footer-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  z-index: 40;
  text-decoration: none;
}
.mobile-call-bar:hover { background: var(--color-accent-dark); text-decoration: none; }
.mobile-call-bar strong { font-size: 1.05rem; }
@media (min-width: 900px) {
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}
body { padding-bottom: 64px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* =================== TCPA Consent =================== */

.consent-row { margin: 10px 0 14px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.4;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.consent-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =================== Legal pages =================== */

.legal-content {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.7;
}
.legal-content h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}
.legal-content h3 {
  margin-top: 1.5em;
  font-size: 1.05rem;
}
.legal-content ul { padding-left: 20px; }
.legal-content ul li { margin-bottom: 6px; }

/* =================== Service areas grid =================== */

.service-area-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.service-area-grid li {
  padding: 12px 14px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* =================== Cookie banner =================== */

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 60;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-banner .btn-outline {
  color: #e2e8f0;
  border-color: #475569;
}
.cookie-banner .btn-outline:hover {
  background: #1e293b;
  color: #fff;
}
@media (min-width: 700px) {
  .cookie-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 440px;
  }
}
@media (min-width: 900px) {
  .cookie-banner { bottom: 20px; }
}

/* =================== Footer legal links =================== */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 8px;
}
.footer-legal a { color: #cbd5e1; }
.footer-address {
  font-size: 0.85rem;
  line-height: 1.55;
}
.footer-address strong { color: #fff; }
