/* Avalanche Heating, Air Conditioning and Refrigeration */
:root {
  --navy: #0d2235;
  --navy-2: #163650;
  --ice: #eef4f8;
  --ice-2: #dce8f1;
  --sky: #6cb8e6;
  --flame: #e8590c;
  --flame-dark: #c2410c;
  --text: #1b2733;
  --muted: #566676;
  --line: #d6e1ea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 34, 53, .06), 0 8px 24px rgba(13, 34, 53, .08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--flame-dark); }
a:hover { color: var(--flame); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy); color: #c9d8e4; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .badge { display: inline-flex; align-items: center; gap: 6px; }
.topbar .badge .icon { width: 16px; height: 16px; color: var(--flame); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 46px; height: 46px; }
.brand-name { display: block; font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: var(--navy); }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--ice); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--flame-dark); background: #fff1e8; }
.site-nav .nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.site-nav .btn { display: inline-flex; padding: 10px 16px; color: #fff; }
.site-nav .btn:hover { background: var(--flame-dark); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #24557c 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; overflow: hidden; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 120px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #d4e2ee; max-width: 38em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 0; }
.hero-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(4px); }
.hero-card h3 { color: #fff; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.hero-card h3 .icon { color: var(--flame); }
.hero-card p { color: #c9d8e4; margin-bottom: 18px; }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.phone-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.phone-list a:hover { background: rgba(255, 255, 255, .18); }
.phone-list small { font-weight: 500; color: #a9c0d2; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.page-hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 104px; }
.page-hero h1 { max-width: 20em; }
.breadcrumb { font-size: .9rem; color: #a9c0d2; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #6f8aa0; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* ---------- trust strip ---------- */
.trust { background: var(--ice); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: .98rem; }
.trust .icon { color: var(--flame); width: 26px; height: 26px; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--ice); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.pull { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); border-left: 5px solid var(--flame); padding: 6px 0 6px 22px; margin: 0; line-height: 1.25; }
.pull span { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); margin-top: 8px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.3rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: #fff1e8; color: var(--flame-dark); margin-bottom: 16px; }
.card-icon .icon { width: 26px; height: 26px; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--flame) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "\2192"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .card-icon { margin-bottom: 0; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, var(--flame) 0%, var(--flame-dark) 100%); color: #fff; padding: 64px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #ffe6d6; margin: 0; max-width: 40em; }
.cta .btn-primary { background: #fff; color: var(--flame-dark); }
.cta .btn-primary:hover { background: var(--navy); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.emergency { background: var(--navy); color: #fff; border-radius: 16px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.emergency h2 { color: #fff; }
.emergency p { color: #c9d8e4; }

/* ---------- contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .card-icon { margin-bottom: 0; }
.contact-card h3 { margin-bottom: 2px; font-size: 1rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-card a, .contact-card strong { font-size: 1.3rem; font-weight: 800; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--flame-dark); }
.contact-card p { margin: 4px 0 0; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9cbd9; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #93acc0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--flame); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .85rem; color: #8ea6ba; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container, .two-col, .emergency { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .site-nav .nav-cta { margin: 6px 0 0; }
  .site-nav .btn { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .area { display: none; }
  .topbar .container { justify-content: center; }
  .section { padding: 56px 0; }
  .hero .container { padding-top: 44px; padding-bottom: 96px; }
  .grid-4, .grid-3, .grid-2, .trust ul, .footer-grid { grid-template-columns: 1fr; }
  .emergency { padding: 28px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
