/* ============================================================
   BucksCountyHVACCost.com — Stylesheet
   CSS variables at top for easy re-theming when cloning for
   other geo+vertical sites.
   ============================================================ */

:root {
  /* Brand colors — update per site if desired */
  --primary:       #1e40af;
  --primary-light: #3b82f6;
  --primary-dark:  #1e3a8a;
  --accent:        #f97316;   /* CTA buttons */
  --accent-hover:  #ea6c00;
  --success:       #16a34a;

  /* Neutrals */
  --text:          #111827;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --bg:            #ffffff;
  --bg-light:      #f8fafc;
  --bg-dark:       #1e3a8a;
  --border:        #e2e8f0;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.18);

  /* Radii */
  --radius:    8px;
  --radius-lg: 14px;

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, var(--primary-dark) 0%, #1d4ed8 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 0 72px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* Stack on tablet/mobile */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 28px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  opacity: 0.82;
}

/* ===== FORM BOX ===== */
.form-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  background: var(--accent);
  padding: 18px 24px;
  color: #fff;
}

.form-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.form-header p {
  font-size: 13px;
  opacity: 0.9;
}

form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-group textarea { resize: vertical; min-height: 72px; }

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  margin-top: 4px;
  width: 100%;
}

.btn-submit:hover  { background: var(--accent-hover); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Form Success State */
.form-success {
  padding: 40px 24px;
  text-align: center;
}

.success-icon { font-size: 52px; margin-bottom: 14px; }

.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 10px;
}

.form-success p { color: var(--text-muted); font-size: 15px; }

/* Phone CTA (below form box) */
.phone-cta {
  margin-top: 18px;
  text-align: center;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

.phone-link {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin: 6px 0 4px;
  letter-spacing: -0.5px;
}

.phone-link:hover { opacity: 0.85; color: #fff; }

.phone-note { font-size: 12px; opacity: 0.68; }

/* ===== COST SUMMARY ===== */
.cost-summary {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 52px 0 40px;
}

.cost-summary h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cost-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cost-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cost-range {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.cost-note { font-size: 12px; color: var(--text-muted); }

/* ===== ARTICLE CONTENT ===== */
.content {
  max-width: 780px;
  margin: 0 auto 60px;
}

.content section { margin-bottom: 52px; }

.content h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-top: 4px;
  border-top: 3px solid var(--primary-light);
  padding-top: 18px;
}

.content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}

.content p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.78;
}

.content ul {
  margin: 12px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.content li { font-size: 16px; line-height: 1.65; }

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }

thead { background: var(--primary-dark); color: #fff; }

thead th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-light); }
tbody tr:hover { background: #eff6ff; }

tbody td {
  padding: 12px 16px;
  vertical-align: top;
  font-size: 14px;
}

.table-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
  padding: 0 4px;
}

/* ===== INLINE CTA ===== */
.inline-cta { margin: 48px 0; }

.inline-cta-box {
  background: var(--bg-light);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.inline-cta-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--primary-dark);
}

.inline-cta-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.inline-cta-box > div { flex: 1; min-width: 200px; }

.btn-cta-inline {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s;
  white-space: nowrap;
}

.btn-cta-inline:hover { background: var(--accent-hover); color: #fff; }

.inline-or {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.inline-or a { color: var(--primary); font-weight: 600; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  background: var(--bg-light);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 10px;
}

.faq-item p { margin: 0; font-size: 15px; line-height: 1.7; }

/* ===== BOTTOM CTA ===== */
.bottom-cta { margin: 16px 0 60px; }

.cta-box {
  background: linear-gradient(140deg, var(--primary-dark) 0%, #1d4ed8 100%);
  color: #fff;
  padding: 52px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-box p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  transition: background 0.18s, transform 0.1s;
}

.btn-cta:hover  { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }

.cta-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  font-size: 13px;
  opacity: 0.82;
}

/* ===== FOOTER ===== */
footer {
  background: #111827;
  color: var(--text-light);
  padding: 36px 0;
  text-align: center;
  font-size: 13px;
}

footer p { margin-bottom: 8px; }
footer strong { color: #d1d5db; }

footer .footer-note {
  font-size: 11px;
  max-width: 620px;
  margin: 0 auto 12px;
  line-height: 1.6;
  opacity: 0.7;
}

footer a { color: #6b7280; text-decoration: none; }
footer a:hover { color: #d1d5db; }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 600px) {
  .cost-summary { padding: 24px 18px; }
  .cta-box { padding: 36px 24px; }
  .inline-cta-box { padding: 22px 20px; flex-direction: column; }
  .table-wrap { font-size: 13px; }
  thead th, tbody td { padding: 10px 12px; }
  .hero { padding: 40px 0 56px; }
}

/* ===== UPDATED BADGE (Reviewed) ===== */
.badge-reviewed {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 12px;
  padding: 3px 12px;
  margin-top: 6px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== SEASONAL URGENCY BANNER ===== */
.season-banner {
  background: linear-gradient(95deg, var(--accent) 0%, #fb923c 50%, var(--accent) 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.4;
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}

.season-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 48px 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.season-icon { font-size: 20px; line-height: 1; }

.season-msg {
  flex: 1;
  min-width: 220px;
  font-size: 14px;
}

.season-msg strong { font-weight: 800; margin-right: 6px; }

.season-sub { opacity: 0.92; }

.season-cta {
  background: #fff;
  color: var(--accent-hover);
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
  transition: transform 0.1s, background 0.18s;
}

.season-cta:hover {
  background: #fff7ed;
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.season-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0.82;
  transition: opacity 0.15s, background 0.15s;
}

.season-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .season-banner-inner { padding: 10px 40px 10px 14px; gap: 10px; }
  .season-msg { font-size: 13px; }
  .season-sub { display: block; margin-top: 2px; font-size: 12.5px; }
  .season-cta { font-size: 12.5px; padding: 6px 12px; }
}

/* ===== SERVICE AREA / ZIP CODES ===== */
.service-area { margin: 48px 0; }

.zip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 24px 0 18px;
}

@media (max-width: 820px) {
  .zip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .zip-grid { grid-template-columns: 1fr; }
}

.zip-region {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.zip-region h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.zip-list {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px !important;
}

.zip-list li {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: var(--text);
  padding: 2px 0;
}

.zip-list li strong {
  display: inline-block;
  min-width: 56px;
  color: var(--primary);
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.area-note {
  font-size: 14px !important;
  color: var(--text-muted);
  margin-top: 14px !important;
  font-style: italic;
}
