/* =============================================================================
   Ridgeline Heating & Air — flagship template
   Hand-crafted, dependency-free CSS. Design tokens up top → edit once, restyle
   everywhere. Original SVG art + placeholder photo frames (all redistributable).
   ============================================================================= */

:root {
  /* palette — cool blues + an ember heat accent + soft neutrals + a clear CTA */
  --brand-900: #0b1f33;
  --brand-800: #0f2f4d;
  --brand-700: #155a8a;
  --brand-600: #1f7fc2;
  --brand-500: #3aa0e6;
  --brand-050: #e8f3fb;
  --cream:     #f4f6f8;
  --sand:      #e9eef3;
  --white:     #ffffff;
  --ink:       #132030;
  --muted:     #5a6b7c;
  --line:      #e1e7ee;
  --ember:     #f28c28;   /* warm "heat" accent: hero art + review stars */

  --cta:        var(--brand-600);
  --cta-ink:    #ffffff;
  --cta-hover:  var(--brand-700);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,31,51,.05), 0 12px 30px rgba(11,31,51,.08);
  --shadow-sm: 0 1px 2px rgba(11,31,51,.05), 0 6px 16px rgba(11,31,51,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .11em; font-size: .78rem;
  font-weight: 700; color: var(--brand-700); margin: 0 0 .7rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-family: var(--font-body);
  border-radius: 999px; padding: .7rem 1.25rem; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease; font-size: .98rem; white-space: nowrap; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand-800); border-color: #c9d6e2; }
.btn-ghost:hover { border-color: var(--brand-600); color: var(--brand-700); transform: translateY(-1px); }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand-sub { color: var(--brand-700); font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: 14px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--brand-700); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.phone { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.phone .ic { width: 18px; height: 18px; color: var(--brand-600); }
.phone:hover { color: var(--brand-700); }

.brand, .nav a, .phone { white-space: nowrap; }   /* the header never wraps mid-name or mid-number */

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-050), var(--white)); padding: clamp(40px, 7vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: 1rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.4rem 0 1.6rem; }
.trust-strip { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.trust-strip strong { color: var(--ink); font-family: var(--font-display); }
.hero-art svg { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: .6rem; }

/* ---------- cards (services + reviews) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-050); color: var(--brand-700); margin-bottom: 14px; }
.card-ic svg { width: 26px; height: 26px; }
.card p { margin: .4rem 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.shot { margin: 0; }
.shot .ph { aspect-ratio: 4 / 3; border: 2px dashed #c0d0de; border-radius: var(--radius); background:
  repeating-linear-gradient(135deg, #eef3f8, #eef3f8 12px, #e6edf4 12px, #e6edf4 24px);
  display: grid; place-items: center; color: #8797a8; font-weight: 600; }
.shot figcaption { margin-top: .6rem; color: var(--muted); font-size: .92rem; text-align: center; }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.why-list .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-600); color: #fff;
  display: grid; place-items: center; font-weight: 800; }
.why-list strong { display: block; }
.why-list p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- reviews ---------- */
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); }
.review .stars { color: var(--ember); letter-spacing: 2px; margin: 0 0 .5rem; font-size: 1.05rem; }
.review footer { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: .6rem; }

/* ---------- service area ---------- */
.area-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.area-list li { background: var(--brand-050); color: var(--brand-800); font-weight: 600; padding: 8px 15px;
  border-radius: 999px; font-size: .95rem; }

/* ---------- quote ---------- */
.quote { background: linear-gradient(180deg, var(--brand-800), var(--brand-900)); color: #e8f0f8; padding: clamp(48px,7vw,84px) 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.quote-copy h2 { color: #fff; }
.quote-copy p { color: #c9dbea; font-size: 1.08rem; }
.quote-call a { color: #fff; font-weight: 700; }
.quote-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid #d3dce5; border-radius: var(--radius-sm); font: inherit; font-size: .98rem; background: #fbfcfe; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--brand-500); outline: none;
  box-shadow: 0 0 0 3px var(--brand-050); }
.quote-form button { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { color: var(--muted); font-size: .84rem; margin: .7rem 0 0; text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cbd6e0; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.site-footer a { color: #cbd6e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #a3b3c3; font-size: .95rem; }
.brand-foot { color: #fff; margin-bottom: .6rem; }
.brand-foot .brand-sub { color: var(--brand-500); }
.foot-note { max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px;
  padding-top: 20px; border-top: 1px solid #26364a; }
.foot-bottom p { margin: 0; font-size: .86rem; }
.tmpl-credit { color: #7c8ea0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }             /* below ~1080px the brand + nav + phone + button no longer fit on one line */
}
@media (max-width: 900px) {
  .hero-grid, .why-grid, .area-inner, .quote-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-cta .phone span { display: none; }
  .brand-sub { display: none; }          /* logo mark + "Ridgeline" carries the brand on small screens */
  .header-inner { gap: 12px; }
  .header-cta { gap: 12px; }
  .header-cta .btn { padding: .55rem 1rem; font-size: .92rem; }
  .quote-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- honeypot (spam trap; real users never see or focus it) ---------- */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
