/* HVACQuoteMatch — clean home-services theme */
:root {
  --blue-900: #0c2d48;
  --blue-800: #145374;
  --blue-600: #1a6b9a;
  --blue-500: #2b7bb9;
  --blue-100: #e8f2f9;
  --blue-50: #f4f8fb;
  --gray-900: #1a1d21;
  --gray-700: #3d4450;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --success: #1e7a46;
  --error: #b91c1c;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(12, 45, 72, 0.08);
  --shadow-lg: 0 8px 24px rgba(12, 45, 72, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--blue-500); }

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

.nav a {
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--blue-900);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}

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

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 34em;
}

.hero-bullets {
  margin-bottom: 1.5rem;
}

.hero-bullets li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  opacity: 0.95;
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #7dd3a8;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* Form card */
.form-card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  font-size: 1.2rem;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}

.form-card .form-sub {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.3rem;
}

.form-group label .req { color: var(--error); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.2);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.field-error.show { display: block; }

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  width: 100%;
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--blue-100);
  color: var(--blue-800);
}

.btn-secondary:hover { background: #d4e8f5; }

.form-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  text-align: center;
}

.form-status {
  display: none;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-status.error-msg {
  display: block;
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.form-status.success-msg {
  display: block;
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

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

.section-alt { background: var(--blue-50); }

.section h2 {
  font-size: 1.75rem;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section .section-lead {
  text-align: center;
  color: var(--gray-500);
  max-width: 36em;
  margin: 0 auto 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--blue-100);
  color: var(--blue-800);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.card p { color: var(--gray-700); font-size: 0.95rem; }

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-link:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.service-link h3 {
  color: var(--blue-800);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.service-link p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Content page */
.page-hero {
  background: var(--blue-50);
  border-bottom: 1px solid var(--gray-300);
  padding: 2.5rem 0;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--gray-700);
  max-width: 40em;
}

.content {
  padding: 2.5rem 0 3.5rem;
}

.content h2 {
  font-size: 1.35rem;
  color: var(--blue-900);
  margin: 1.75rem 0 0.75rem;
}

.content h3 {
  font-size: 1.1rem;
  color: var(--blue-800);
  margin: 1.25rem 0 0.5rem;
}

.content p, .content li {
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content a { font-weight: 500; }

.legal { font-size: 0.95rem; }
.legal .updated { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* CTA band */
.cta-band {
  background: var(--blue-900);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.cta-band .btn-primary {
  width: auto;
  display: inline-block;
  padding: 0.75rem 1.75rem;
}

/* Thank you */
.thank-you {
  text-align: center;
  padding: 4rem 0;
  max-width: 32em;
  margin: 0 auto;
}

.thank-you .check {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  font-weight: 700;
}

.thank-you h1 {
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}

.thank-you p { color: var(--gray-700); margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-brand span { color: #7eb8e0; }

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
}

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

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.site-footer ul li { margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Charlotte local note */
.local-note {
  background: var(--blue-100);
  border-left: 4px solid var(--blue-500);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

/* Responsive */
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
  .header-inner { position: relative; }
}

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