/* Prairie Peak Heating & Plumbing */
:root {
  --charcoal: #181A1F;
  --charcoal-2: #23262D;
  --alabaster: #FAF8F5;
  --sand: #F1ECE4;
  --line: #E2DBD0;
  --ember: #B84321;
  --ember-dark: #9A3619;
  --steel: #26547C;
  --steel-dark: #1F3F5E;
  --text: #181A1F;
  --muted: #4A4F59;
  --radius: 14px;
  --header-h: 56px;
  --shadow: 0 1px 2px rgba(24,26,31,.06), 0 8px 24px rgba(24,26,31,.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 960px) { :root { --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--alabaster);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--steel-dark); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); font-weight: 850; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.small { font-size: .95rem; color: var(--muted); }
.nowrap, a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--charcoal); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(250,248,245,.97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(250,248,245,.88); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); min-width: 0; }
.brand:hover { color: var(--charcoal); }
.logo-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand-name { font-weight: 850; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-sub { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-call { background: var(--ember); color: #fff; padding: 10px 16px; min-height: 44px; font-size: .98rem; }
.btn-call:hover { background: var(--ember-dark); color: #fff; }
.call-long { display: none; }
.nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--charcoal); font-weight: 650; }
.main-nav a:hover { color: var(--ember); }
@media (max-width: 959px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--alabaster); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { padding: 8px 20px 16px; }
  .main-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav li:last-child a { border-bottom: 0; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { margin-left: auto; }
  .main-nav ul { display: flex; gap: 26px; }
  .main-nav a { font-size: .98rem; }
  .header-actions { margin-left: 8px; }
  .call-short { display: none; }
  .call-long { display: inline; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .8rem; }
  .logo-mark { width: 40px; height: 40px; }
}

/* Hero */
.hero { padding: 36px 0 48px; background:
  radial-gradient(900px 400px at 100% 0%, rgba(38,84,124,.10), transparent 60%),
  radial-gradient(700px 360px at 0% 100%, rgba(184,67,33,.08), transparent 60%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 84px; } .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 700; color: var(--steel-dark);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(184,67,33,.15); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
@media (min-width: 960px) { .lead { font-size: 1.2rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-ctas.center { justify-content: center; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-area { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; color: var(--muted); margin: 0; }
.hero-area svg { color: var(--steel); margin-top: 3px; flex: none; }
.hero-photo {
  margin: 0; width: 100%; max-width: 580px; justify-self: end;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px;
  box-shadow: 0 1px 2px rgba(24,26,31,.06), 0 22px 50px rgba(24,26,31,.14);
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--sand); }
.hero-photo figcaption { padding: 12px 8px 4px; font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* Strip */
.strip { background: var(--charcoal); color: #E9E5DF; }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.strip-grid p { margin: 0; padding: 16px 12px 16px 0; font-size: .95rem; line-height: 1.4; }
.strip-grid strong { display: block; color: #fff; font-size: 1rem; }
@media (min-width: 960px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } .strip-grid p { padding: 22px 20px 22px 0; border-right: 1px solid rgba(255,255,255,.12); } .strip-grid p:last-child { border-right: 0; } .strip-grid p + p { padding-left: 20px; } }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.kicker-light { color: #F0A58A; }

.svc-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.svc-card p { color: var(--muted); margin: 0; }
.svc-icon { width: 52px; height: 52px; padding: 10px; border-radius: 12px; background: rgba(38,84,124,.09); color: var(--steel); margin-bottom: 18px; }
.svc-card:nth-child(1) .svc-icon, .svc-card:nth-child(2) .svc-icon { background: rgba(184,67,33,.09); color: var(--ember); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { background: var(--alabaster); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--steel); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }

.area-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .area-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.area-grid > div > p { color: var(--muted); }
.area-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.area-card { background: var(--steel-dark); color: #E8EEF4; border-radius: 20px; padding: 30px; }
.area-card h3 { color: #fff; font-size: 1.35rem; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-size: 1.08rem; }
.faq-chev { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); position: relative; }
.faq-chev::before, .faq-chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--charcoal); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { margin: 0; padding: 0 22px 22px; color: var(--muted); }

/* Quote */
.section-dark { background: var(--charcoal); color: #D9D5CE; }
.section-dark h2 { color: #fff; }
.quote-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.cl-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #A9A49C; padding-top: 3px; }
.contact-list a { color: #fff; font-weight: 650; word-break: break-word; }
.contact-list a:hover { color: #F0A58A; }
.quote-form { background: var(--alabaster); color: var(--text); border-radius: 20px; padding: 24px; }
@media (min-width: 760px) { .quote-form { padding: 34px; } }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 16px; min-width: 0; }
.field label, .radio-row legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  min-height: 48px; padding: 10px 14px; border: 1.5px solid #CFC7BA; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(38,84,124,.2); }
.radio-row { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radio-row legend { width: 100%; padding: 0; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--steel); margin: 0; }
.form-note { margin: 14px 0 0; font-size: .95rem; color: var(--muted); text-align: center; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #111317; color: #B9B4AC; padding: 48px 0 0; font-size: .97rem; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.footer-label { color: #fff; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #F0A58A; }
.footer-bottom { margin-top: 24px; padding-bottom: 82px; }
.footer-bottom p { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
@media (min-width: 760px) { .footer-bottom { padding-bottom: 20px; } }

/* Mobile call bar */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  box-shadow: 0 -6px 20px rgba(24,26,31,.18);
}
.mobile-callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 0 16px env(safe-area-inset-bottom, 0px);
  background: var(--ember); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none;
}
.mobile-callbar a:hover { color: #fff; background: var(--ember-dark); }
@media (min-width: 760px) { .mobile-callbar { display: none; } }

/* Thank you page */
.thanks { padding: 72px 0 96px; }
.thanks-card { max-width: 640px; text-align: center; }
.thanks-icon { margin: 0 auto 20px; }
.thanks-card p { color: var(--muted); }
.page-thanks .footer-bottom { padding-bottom: 20px; }
