/* Brand colors sampled from the Mile High Comfort Systems logo */
:root {
  --accent: #D20D18;
  --accent-dark: #A90A13;
  --navy: #032453;
  --navy-2: #0B3470;
  --ink: #14233a;
  --muted: #5b6875;
  --line: #e3e8ee;
  --bg-muted: #f5f7f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(3, 36, 83, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Manrope", system-ui, sans-serif; color: var(--ink); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
p { color: var(--muted); }
.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.accent { color: var(--accent); }
.hidden { display: none; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; padding: .9rem 1.5rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-size: 1.05rem; color: var(--navy); font-weight: 500; }
.brand-logo { height: 52px; width: auto; }
.brand strong { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--navy); margin-inline: auto; }

/* Phone */
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.nav-phone svg, .btn svg, .call-card svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-phone svg { color: var(--accent); }
.nav-phone:hover { color: var(--accent); }
.header-call { display: none; align-items: center; gap: .4rem; margin-left: auto; margin-right: .6rem; padding: .5rem .9rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; }
.header-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg { margin-right: .5rem; }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-methods { display: grid; gap: .9rem; margin-top: 2rem; }
.call-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; transition: box-shadow .2s; }
.call-card:hover { box-shadow: var(--shadow); }
.call-card svg { width: 26px; height: 26px; color: var(--accent); }
.call-card > span { display: grid; min-width: 0; }
.call-card strong.email { font-size: clamp(1rem, 2.2vw, 1.15rem); overflow-wrap: anywhere; }
.call-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.call-card strong { color: var(--navy); font-size: 1.4rem; font-weight: 800; }
.footer-phone a { color: #fff; font-weight: 700; }
.footer-phone a:hover { text-decoration: underline; }
.footer-phone .sep { margin: 0 .6rem; color: #6f86a6; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background: linear-gradient(180deg, #fff 0%, var(--bg-muted) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.lead { font-size: 1.15rem; margin: 1.4rem 0 2rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2rem; font-weight: 600; font-size: .95rem; color: var(--navy); }
.hero-points li::before, .contact-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .5rem; }
.visual-card { background: var(--navy); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(3,36,83,.25); }
.hero-photo { width: 100%; height: auto; aspect-ratio: 1000 / 684; object-fit: cover; display: block; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.08); }
.stat { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }
.stat-num { color: #fff; font-size: 1.5rem; font-weight: 800; }
.stat-label { color: #a8b9d1; font-size: .85rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--navy); }
.section-dark h2 { color: #fff; }
.section-dark p { color: #b3c3da; }
.section-head { max-width: 640px; margin-bottom: 3rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service-callout { margin-top: 1.4rem; display: flex; align-items: center; gap: 1.4rem; background: var(--bg-muted); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.service-callout .icon { margin-bottom: 0; flex-shrink: 0; }
.service-callout-body { flex: 1; }
.service-callout-body p { margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(210,13,24,.1); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.checklist { list-style: none; display: grid; gap: 1rem; }
.checklist li { background: var(--navy-2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 1.1rem 1.3rem; display: flex; flex-direction: column; }
.checklist strong { color: #fff; }
.checklist span { color: #b3c3da; font-size: .95rem; }

.about-badge { aspect-ratio: 1; max-width: 420px; width: 100%; border-radius: 24px; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%); display: grid; place-items: center; position: relative; overflow: hidden; }
.about-badge::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .12; right: -15%; bottom: -15%; }
.badge-inner { text-align: center; }
.badge-inner img { margin: 0 auto 1.2rem; width: 160px; height: 160px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
.badge-inner p { color: #fff; font-weight: 800; font-size: 1.5rem; line-height: 1.25; }
.about p + p { margin-top: 1rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.values div { border-top: 3px solid var(--accent); padding-top: .9rem; }
.values p { font-size: .9rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-points { list-style: none; margin-top: 1.6rem; display: grid; gap: .6rem; font-weight: 600; color: var(--navy); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210,13,24,.15); }
.contact-form textarea { resize: vertical; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0; background: linear-gradient(180deg, #fff 0%, var(--bg-muted) 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; }
.section-tight { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.8rem; transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile p { flex: 1; margin-bottom: 1.2rem; }
.tile-link { font-weight: 700; color: var(--accent); }

/* CTA band */
.cta-band { background: var(--navy); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #b3c3da; }

/* Google reviews */
.reviews-fallback { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.reviews-fallback .stars { font-size: 1.6rem; display: block; margin-bottom: .6rem; }
.reviews-fallback p { max-width: 560px; margin-inline: auto; }
.reviews-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.reviews-top h2 { margin-bottom: 0; }
.reviews-summary { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; }
.reviews-summary:empty { display: none; }
.rating-num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.rating-count { color: var(--muted); font-weight: 600; font-size: .92rem; }
.stars { color: #F5B400; letter-spacing: .08em; font-size: 1.05rem; }
.reviews-list { display: grid; }
.review-carousel { position: relative; max-width: 820px; width: 100%; margin-inline: auto; padding-inline: 3.5rem; }
.review-track { position: relative; transition: height .45s ease; }
.review-slide { position: absolute; top: 0; left: 0; right: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.review-slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease, visibility 0s; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2rem; }
.review .stars { font-size: 1.35rem; }
.review-text { margin: 0; color: var(--ink); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; font-weight: 500; }
.review-text::before { content: "\201C"; } .review-text::after { content: "\201D"; }
.review-head { display: flex; align-items: center; gap: .8rem; text-align: left; }
.review-head > div { display: grid; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-initial { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.review-author { font-weight: 700; color: var(--navy); }
a.review-author:hover { color: var(--accent); }
.review-when { font-size: .85rem; color: var(--muted); }
.review-nav { position: absolute; top: calc(50% - 1.5rem); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: .2rem; transition: background .2s, color .2s, border-color .2s; }
.review-nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.review-prev { left: 0; } .review-next { right: 0; }
.review-dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.4rem; }
.review-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: #c6d0dd; cursor: pointer; transition: width .3s, background .3s; }
.review-dot[aria-current="true"] { width: 28px; background: var(--accent); }
.review-nav:focus-visible, .review-dot:focus-visible { outline: 3px solid rgba(210,13,24,.35); outline-offset: 2px; }
@media (max-width: 560px) {
  .review-carousel { padding-inline: 0; }
  .review-text { font-size: 1rem; }
  .review-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .review-track, .review-slide, .review-slide.is-active { transition: none; transform: none; }
}
.reviews-bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2.2rem; text-align: center; }
.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.reviews-source { font-size: .85rem; }

/* Footer */
.site-footer { background: var(--navy); padding: 3rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; gap: 1rem; }
.brand-light { color: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-weight: 600; font-size: .95rem; }
.footer-nav a { color: #dbe4f0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #a8b9d1; font-size: .92rem; }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; margin-top: .5rem; }

/* Thank-you */
.thanks-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg-muted); padding: 2rem; }
.thanks { text-align: center; max-width: 520px; background: #fff; padding: 3rem 2rem; border-radius: 20px; box-shadow: var(--shadow); }
.thanks img { margin: 0 auto 1.8rem; width: min(320px, 100%); height: auto; }
.thanks h1 { font-size: 2rem; margin-bottom: 1rem; }
.thanks p { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-badge { max-width: 320px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .header-call { display: inline-flex; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links .btn { margin-top: 1rem; }
  .brand-logo { height: 42px; }
}
@media (max-width: 560px) {
  .cards, .steps, .values, .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.4rem; }
  .service-callout { flex-direction: column; align-items: flex-start; }
}
