/*
Theme Name: Mounds View Draft Help
Theme URI: https://moundsviewdrafthelp.com
Author: Independent Draft Help Resource
Description: Accessible, mobile-first WordPress microsite theme for MoundsViewDraftHelp.com focused on affordable whole-house air sealing, winterization sealing, and draft help in Mounds View, MN.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: moundsview-drafthelp
*/

:root {
  --bg: #ffffff;
  --ink: #17212b;
  --muted: #5c6875;
  --line: #d8e0e8;
  --panel: #f4f7fa;
  --panel-2: #eef6f2;
  --brand: #185a7d;
  --brand-dark: #103d54;
  --accent: #f2b84b;
  --good: #2f6b45;
  --danger: #a33c2f;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.10);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  font-size: 17px;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.container {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #2d8aa5);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(24,90,125,.2);
}
.logo-text strong { display: block; font-size: 1.06rem; line-height: 1.1; }
.logo-text span { display: block; color: var(--muted); font-size: .86rem; }
.nav-row { display: flex; align-items: center; gap: 12px; }
.primary-nav ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 11px;
  border-radius: 12px;
  font-weight: 650;
  font-size: .94rem;
}
.primary-nav a:hover { background: var(--panel); }
.call-now, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.call-now { background: var(--good); color: #fff; white-space: nowrap; }
.call-now:hover { background: #25593a; color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--panel); }
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(242,184,75,.32), transparent 30%),
    linear-gradient(135deg, #edf7fb 0%, #ffffff 58%, #f8fafc 100%);
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 34px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: 18px;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(2.18rem, 6vw, 4.2rem); letter-spacing: -.045em; max-width: 880px; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.18rem; color: #2f3a45; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-card img { border-radius: 16px; margin-bottom: 14px; background: var(--panel); }
.price-box {
  background: #fff;
  border: 2px solid rgba(24,90,125,.16);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.price-box strong { font-size: 2rem; color: var(--brand-dark); display: block; }
.main { padding: 52px 0; }
.section { padding: 46px 0; }
.section.alt { background: var(--panel); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(23,33,43,.05);
}
.card.soft { background: var(--panel-2); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin: 10px 0; }
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 900;
}
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--brand); color: #fff; }
.price-table tr:last-child td { border-bottom: 0; }
.notice { background: #fff8e8; border-left: 5px solid var(--accent); padding: 16px; border-radius: 14px; }
.local-box { background: #eef7fb; border: 1px solid #cde5ef; border-radius: var(--radius); padding: 22px; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 750; }
input[type="text"], input[type="tel"], input[type="email"], input[type="file"], textarea, select {
  width: 100%;
  border: 1px solid #b7c4d1;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 132px; resize: vertical; }
.preference-row { display: flex; flex-wrap: wrap; gap: 10px; }
.preference-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--panel);
  cursor: pointer;
}
.form-help { color: var(--muted); font-size: .92rem; }
.disclaimer { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.site-footer { background: #13202b; color: #dce7ef; padding: 34px 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.page-hero { background: linear-gradient(135deg, #edf7fb, #fff); padding: 42px 0; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .primary-nav { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 70px; }
  .logo-text span { display: none; }
  .call-now { padding: 10px 13px; font-size: .93rem; }
  .hero { padding: 38px 0 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn, .call-now { width: 100%; }
  .grid-3, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .floating-call { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .footer-grid { padding-bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------------
   v1.1 additions: steps, FAQ accordion, CTA band, banners, tables, honeypot
   --------------------------------------------------------------------------- */
.container.narrow { max-width: 820px; }
.section-intro { color: var(--muted); max-width: 68ch; margin-top: -6px; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }

/* Steps */
.steps { counter-reset: mvdh-step; list-style: none; padding: 0; margin: 18px 0 0; }
.steps li {
  counter-increment: mvdh-step;
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(mvdh-step);
  position: absolute;
  left: 0; top: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps-inline { display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); }
.steps-inline li { border-bottom: 0; background: var(--panel); border-radius: var(--radius); margin-right: 12px; padding: 22px 22px 22px 62px; }
.steps-inline li::before { left: 18px; top: 20px; }
.check-list.plain li { list-style: none; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); margin-top: 18px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 1.06rem;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 6px; top: 14px;
  font-size: 1.6rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.faq-answer { padding: 0 0 18px; color: var(--muted); max-width: 72ch; }
.faq-answer p { margin: 0; }
.more-link { margin-top: 22px; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--panel-2); }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta-inner h2 { margin-top: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* Banners */
.success-banner, .error-banner {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
  border-left: 6px solid var(--good);
  background: #eef6f2;
}
.error-banner { border-left-color: var(--danger); background: #fdf0ee; }
.success-banner p, .error-banner p { margin: 6px 0 0; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table caption { text-align: left; }

/* Form extras */
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { font-weight: 400; color: var(--muted); font-size: 0.86rem; }

/* 404 */
.error-404 { text-align: center; padding: 60px 0; }
.error-404 ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; }
  .steps-inline { grid-template-columns: 1fr; }
  .steps-inline li { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.wide-img { display: block; width: 100%; height: auto; max-width: 960px; margin: 0 auto 30px; border-radius: var(--radius); border: 1px solid var(--line); }
