/* Colorado Comfort Systems Inc. - modeled on the business's own 2020-2023 website (Material-style business site). */
:root { --brand: #1a5fb4; --brand-dark: #144a8c; --ink: #202124; --sub: #5f6368; --line: #dadce0; --bg: #f1f3f4; --card: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }

.appbar { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.appbar-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.bizname { font-size: 20px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a { color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.tabs a:hover { background: #f1f3f4; color: var(--ink); }
.appbar-actions { display: flex; gap: 8px; }

.btn { display: inline-block; white-space: nowrap;font: 500 14px Roboto, Arial, sans-serif; letter-spacing: .03em; padding: 9px 22px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer; }
.btn.filled { background: var(--brand); color: #fff; }
.btn.filled:hover { background: var(--brand-dark); }
.btn.text { color: var(--brand); background: transparent; }
.btn.text:hover { background: #e8f0fe; }
.btn.outlined { border: 1px solid var(--line); color: var(--brand); background: #fff; }

main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 80px; }
.hero { background: #fff; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; box-shadow: 0 1px 2px rgba(60,64,67,.3); }
.hero-text { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 34px; font-weight: 400; margin: 0 0 6px; line-height: 1.2; }
.category { color: var(--sub); margin: 0 0 6px; font-size: 17px; }
.status { margin: 0 0 22px; color: var(--sub); font-size: 15px; }
.status .open { color: #188038; font-weight: 500; }
.status .closed { color: #d93025; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 18px; padding: 7px 16px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--brand); background: #fff; }
.chip.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.card { background: var(--card); border-radius: 8px; padding: 28px 32px; margin-top: 20px; box-shadow: 0 1px 2px rgba(60,64,67,.3); }
.card h2 { font-size: 24px; font-weight: 400; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card h3 { font-size: 16px; font-weight: 500; margin: 16px 0 6px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.facts li { color: var(--sub); }
.ico { color: var(--brand); display: inline-block; width: 20px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.svc { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.svc h3 { margin: 0 0 4px; color: var(--brand); }
.svc p { margin: 0; color: var(--sub); font-size: 14px; }
.area { margin: 18px 0 0; color: var(--sub); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.review { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; }
.stars { color: #fbbc04; letter-spacing: 2px; }
.review blockquote { margin: 8px 0 12px; font-size: 15px; flex: 1; }
.review figcaption { color: var(--sub); font-style: italic; }
.rating { margin: 16px 0 0; color: var(--sub); }
.rating strong { font-size: 20px; color: var(--ink); }
.rating, .rating strong + * { }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

.quote { max-width: 560px; }
.field { position: relative; margin: 0 0 14px; }
.field input, .field textarea, .field select { width: 100%; font: 16px Roboto, Arial, sans-serif; padding: 20px 12px 8px; border: 1px solid #9aa0a6; border-radius: 4px; background: #fff; }
.field select { padding-top: 22px; }
.field label { position: absolute; left: 12px; top: 15px; color: var(--sub); font-size: 16px; pointer-events: none; transition: .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.up { top: 4px; font-size: 12px; color: var(--brand); }
.hp { position: absolute; left: -5000px; height: 1px; overflow: hidden; }
.err { color: #d93025; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid p { margin: 6px 0 12px; }
.hours { border-collapse: collapse; }
.hours td { padding: 3px 18px 3px 0; }
.hours td:first-child { color: var(--sub); }
.small { color: var(--sub); font-size: 14px; }
.map { width: 100%; height: 300px; border: 0; border-radius: 8px; margin-top: 18px; }

.foot { text-align: center; color: var(--sub); font-size: 13px; padding: 20px 16px 90px; }
.foot a { color: var(--sub); }
.fab-bar { display: none; }

.thanks-card { text-align: center; padding: 60px 24px; }

@media (max-width: 960px) { .tabs { display: none; } .appbar-actions { margin-left: auto; } }

@media (max-width: 760px) {
  .tabs { display: none; }
  .appbar-actions .text { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { min-height: 200px; }
  .hero-text { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .card { padding: 22px 18px; }
  .facts, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .fab-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -1px 4px rgba(0,0,0,.15); z-index: 20; }
  .fab-bar a { flex: 1; text-align: center; padding: 14px 0; text-decoration: none; font-weight: 500; color: var(--brand); }
}
