:root {
  --cream: oklch(96% 0.02 75);
  --cream-card: oklch(99% 0.005 75);
  --ink: oklch(23% 0.02 250);
  --ink-soft: oklch(45% 0.02 250);
  --slate-dark: oklch(20% 0.02 250);
  --wood: oklch(56% 0.14 55);
  --wood-dark: oklch(46% 0.13 55);
  --border: oklch(88% 0.01 75);
  --white: oklch(99% 0 0);
  --error: oklch(52% 0.18 30);
  --error-border: oklch(60% 0.18 30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex: none;
}
.header-tagline {
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-estimate {
  color: var(--ink);
}
.call-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wood);
  color: var(--white);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

/* HERO */
.hero {
  background: oklch(40% 0.03 250);
}
.hero-photo {
  display: block;
  width: 100%;
  max-width: 2172px;
  height: auto;
  margin: 0 auto;
}

/* INTRO / SEO CONTENT */
.intro-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 8px;
}
.intro-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
}
.intro-lead {
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* SERVICES / INSTALLATION CARD */
.services-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 14px;
}
.install-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.install-card-inner {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}
.install-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 14px;
}
.install-line {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 28px;
}
.install-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

.map-widget {
  flex: 1 1 340px;
  position: relative;
  height: 610px;
  overflow: hidden;
  border-radius: 12px;
  background: oklch(90% 0.01 90);
}
/* Zoom-11 tile grid (x 424–427, y 782–784) centered on the midpoint of the
   Lake George / Woodland Park / Cascade / Cripple Creek bounding box. */
.map-tiles {
  position: absolute;
  top: calc(50% - 416px);
  left: calc(50% - 439px);
  width: 1024px;
  height: 768px;
  display: grid;
  grid-template-columns: repeat(4, 256px);
  grid-template-rows: repeat(3, 256px);
}
.map-tiles img { display: block; }
.map-attribution {
  position: absolute;
  bottom: 6px; right: 8px;
  background: rgba(255,255,255,0.85);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  color: #333;
  font-family: ui-monospace, Menlo, monospace;
}

.call-banner {
  background: var(--slate-dark);
  border-radius: 12px;
  padding: 26px 32px;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 56px;
  margin-bottom: 22px;
}
.call-banner-lead {
  flex: 0 0 auto;
  text-align: center;
}
.call-card-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 14px;
}
.call-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wood);
  color: var(--white);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15.5px;
}
.call-card-details {
  flex: 1 1 320px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  column-gap: 56px;
  row-gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.call-card-details strong { color: var(--white); }

.owner-card {
  flex: 0 1 380px;
  min-width: 300px;
  background: oklch(95% 0.03 65);
  border-radius: 12px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.owner-photo {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: 10px;
}
.owner-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px;
}
.owner-company { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* REVIEWS */
.reviews-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 24px;
}
.reviews-section[hidden] { display: none; }
.reviews-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px 24px;
}
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.reviews-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.google-g { flex: none; }
.reviews-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.reviews-source {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.reviews-source:hover { text-decoration: underline; }
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reviews-summary[hidden] { display: none; }
.reviews-summary-score {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.reviews-summary-count {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 15px; height: 15px; display: block; }
.star-on { fill: var(--wood); }
.star-off { fill: var(--border); }

/* Slides are stacked and cross-faded, so the viewport reserves a fixed
   height and the reviews swap in place without shifting the page. */
.review-viewport {
  position: relative;
  min-height: 178px;
}
.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}
.review-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.review-person {
  display: flex;
  align-items: center;
  gap: 13px;
}
.review-avatar,
.review-avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}
.review-avatar { object-fit: cover; background: oklch(90% 0.03 65); }
.review-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wood);
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
}
.review-meta { display: flex; flex-direction: column; gap: 4px; }
.review-author { font-weight: 600; font-size: 15px; color: var(--ink); }
.review-sub { display: flex; align-items: center; gap: 10px; }
.review-time { font-size: 12.5px; color: var(--ink-soft); }
.review-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviews-dots {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}
.reviews-dots[hidden] { display: none; }
.reviews-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}
.reviews-dot.is-active { background: var(--wood); }

/* QUOTE FORM */
.quote-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 24px;
}
.quote-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
}
.quote-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 10px;
  color: var(--ink);
}
.quote-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
/* Only stretch/shrink fields that share a horizontal row. Standalone
   fields sit in the column form, where a flex-basis would become height. */
.form-row .form-field { flex: 1 1 200px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-field label .optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { resize: vertical; }
.form-field input.has-error,
.form-field select.has-error {
  border-color: var(--error-border);
}
.form-error {
  color: var(--error);
  font-size: 12.5px;
  margin-top: 5px;
  display: none;
}
.form-error.visible { display: block; }

/* Honeypot spam trap — hidden from real users, still in the DOM for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.quote-submit {
  align-self: flex-start;
  background: var(--wood);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
}

/* The [hidden] attribute must win over the display rules below, otherwise
   the panel (and the form) never actually hide. */
.quote-form[hidden],
.quote-success[hidden] { display: none; }

.quote-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
}
.quote-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: oklch(93% 0.03 55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-success-icon svg { stroke: var(--wood-dark); }
.quote-success-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}
.quote-success-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 420px;
}
.quote-reset {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}

/* FOOTER */
.site-footer {
  background: var(--slate-dark);
  padding: 28px 24px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col { flex: 1 1 160px; }
.footer-col--brand { flex: 2 1 260px; }
.footer-logo {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 14px;
}
.footer-col--brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
  margin: 0;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-col a:last-child,
.footer-col span:last-child { margin-bottom: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* MOBILE STICKY CALL BAR */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--slate-dark);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px 16px;
  gap: 10px;
}
.mobile-bar-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--wood);
  color: var(--white);
  text-decoration: none;
  padding: 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.mobile-bar-estimate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  text-decoration: none;
  padding: 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

/* NARROW / MOBILE LAYOUT (< 900px) */
@media (max-width: 899px) {
  body { padding-bottom: 76px; }
  .header-tagline,
  .nav-estimate,
  .call-btn-text { display: none; }
  .logo-img { height: 26px; }
  .map-widget { height: 500px; }
  .mobile-bar { display: flex; }
  /* Let the owner card shrink to the single column instead of overflowing it. */
  .owner-card { flex-basis: auto; min-width: 0; }
}

/* WIDE LAYOUT (>= 900px) */
@media (min-width: 900px) {
  /* On a wide card reviews only run 1-3 lines, so the tall reserve meant for
     mobile's 4-line wrapping leaves a big gap above the dots. Shrink it (and
     cap the clamp to 3 lines so a long review can't overflow into the dots). */
  .review-viewport { min-height: 132px; }
  .review-text { -webkit-line-clamp: 3; }
}
