﻿:root {
  --bg: #f4f6fa;
  --bg-alt: #ebeff5;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #2a3442;
  --muted: #5f6f82;
  --line: #d8e0ea;
  --primary: #0b4ea2;
  --primary-dark: #083b7c;
  --orange: #c27a45;
  --success: #1f9d65;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 88% -20%, #dce8f9 0%, transparent 62%),
    linear-gradient(165deg, #f8faff, var(--bg) 58%);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 1px solid #0a438d;
  color: #eef5ff;
}

.topbar a {
  color: #ffffff;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.92rem;
}

.topbar strong {
  color: #ffd7b4;
}

.topbar p {
  margin: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--primary), #2d74ce);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.12);
}

.brand p {
  margin: 0;
  line-height: 1.2;
}

.brand-title {
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  font: inherit;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: var(--text);
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-list a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.btn {
  display: inline-block;
  border-radius: 0.65rem;
  font-weight: 700;
  padding: 0.74rem 1rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(21, 38, 65, 0.14);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.btn-contrast {
  background: var(--orange);
  color: #ffffff;
}

.btn-contrast:hover {
  background: #a96534;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f9ff;
}

.hero {
  padding: 3.25rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.35rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 0.9rem;
}

.hero-art,
.section-art {
  border: 1px solid #cfd9e8;
  border-radius: 1rem;
  min-height: 350px;
  background:
    linear-gradient(145deg, #f5f9ff 0%, #e6eefb 52%, #d9e7fa 100%),
    repeating-linear-gradient(90deg, rgba(11, 78, 162, 0.05) 0 16px, rgba(255, 255, 255, 0.35) 16px 32px);
  box-shadow: inset 0 0 60px rgba(11, 78, 162, 0.08), 0 18px 32px rgba(24, 42, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  min-height: 350px;
  border: 1px solid #cfd9e8;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(24, 42, 68, 0.12);
}

.hero-art::after,
.section-art::after {
  content: "CALEBS HVAC";
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(43, 61, 86, 0.55);
}

.grid-3,
.grid-4,
.city-grid,
.review-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.city-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.section {
  padding: 2.5rem 0;
}

main > .section,
main > .cta-band {
  border-top: 1px solid #e3e9f2;
}

.quote-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.9rem;
  align-items: start;
}

.quote-side {
  display: grid;
  gap: 0.8rem;
}

.quote-card {
  padding: 0.8rem 0.9rem;
}

.quote-layout > .quote-card {
  box-shadow: 0 14px 28px rgba(18, 40, 71, 0.12);
}

.quote-card h2,
.quote-card h3 {
  margin-bottom: 0.5rem;
}

.quote-card .trust-list {
  margin: 0;
}

.quote-card .lead-form {
  gap: 0.58rem;
}

.quote-card input,
.quote-card select,
.quote-card textarea {
  padding: 0.58rem;
}

.quote-service-areas .city-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.55rem;
}

.quote-service-areas a {
  display: block;
  background: #f4f8ff;
  border: 1px solid #d6e2f4;
  border-radius: 0.45rem;
  padding: 0.28rem 0.4rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.quote-trust .trust-pairs {
  gap: 0.36rem;
}

.quote-trust .trust-icon {
  width: 1rem;
  height: 1rem;
  font-size: 0.7rem;
  margin-right: 0.3rem;
}

.quote-next .mini-steps {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: #445972;
}

.trust-section {
  padding-top: 0.4rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.trust-badge {
  background: #ffffff;
  border: 1px solid #d5deeb;
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 8px 16px rgba(30, 48, 74, 0.07);
}

.trust-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: #203047;
}

.trust-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: #e6eefb;
  color: #0b4ea2;
  font-size: 0.78rem;
  font-weight: 700;
}

.trust-pairs {
  display: grid;
  gap: 0.5rem;
}

.trust-pair {
  margin: 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #2a3442;
}

.section-alt {
  background: linear-gradient(180deg, #eef3f9, #e8edf5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-bar {
  background: #f2f6fd;
  border-top: 1px solid #dae4f3;
  border-bottom: 1px solid #dae4f3;
}

.credibility-inner {
  padding: 0.72rem 0;
}

.credibility-inner p {
  margin: 0;
  color: #30435f;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(30, 48, 74, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(26, 44, 71, 0.1);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.trust-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
}

.cta-band {
  background: linear-gradient(92deg, #0b4ea2, #2a69ba);
  color: #f7fbff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-band h3,
.cta-band p {
  color: #f7fbff;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
}

.lead-form,
.contact-form {
  display: grid;
  gap: 0.75rem;
}

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

label {
  font-size: 0.88rem;
  color: var(--muted);
  display: grid;
  gap: 0.2rem;
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #c4d1e3;
  border-radius: 0.55rem;
  padding: 0.68rem;
  background: #ffffff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(11, 78, 162, 0.2);
  border-color: var(--primary);
}

textarea { resize: vertical; }

.error-text {
  font-size: 0.78rem;
  color: #b43f3f;
  min-height: 1.05em;
}

.form-success {
  display: none;
  margin: 0;
  padding: 0.65rem;
  border-radius: 0.55rem;
  background: rgba(31, 157, 101, 0.1);
  border: 1px solid rgba(31, 157, 101, 0.35);
  color: #1a7b51;
}

.kpi {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  display: none;
  margin: 0;
  padding: 0 0.9rem 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid #d0d9e7;
  background: #f0f4fa;
  padding: 2.1rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mobile-call {
  display: none;
  position: fixed;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 120;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 34, 62, 0.24);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 0.6rem;
  top: 0.6rem;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .cta-inner,
  .form-grid-2,
  .quote-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    position: absolute;
    right: 4%;
    left: 4%;
    top: 145px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.9rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 14px 26px rgba(27, 45, 71, 0.12);
  }

  .nav-list.open {
    display: flex;
  }

  .mobile-call {
    display: block;
  }

  .site-footer {
    padding-bottom: 5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .topbar-inner {
    justify-content: flex-start;
  }

  .topbar-inner p:last-child {
    display: none;
  }

  .quote-service-areas .city-grid {
    grid-template-columns: 1fr;
  }
}

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

  .reveal,
  .reveal.in-view,
  .card,
  .btn {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

