/* =============================================================================
   Ridgeline Heating & Air — flagship template
   Plain, 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:        #1c74b1;  /* darker than --brand-600 so white button text is 4.5:1 or better (WCAG AA) */
  --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(--cta-hover); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 4px; }  /* focus ring 11-01 */
.site-footer :focus-visible { outline-color: #fff; box-shadow: none; }

/* ---------- 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, .hero-art img { display: block; 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 h2, .site-footer h3 { 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: 1180px) {
  /* 10-25: five pages = the menu must stay reachable on phones. No script, no menu button: below 1180px the same links drop to a
     second row under the logo. */
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 2px; row-gap: 0; }
  .nav { order: 3; flex: 0 0 100%; margin: 0; gap: 2px; justify-content: space-between; border-top: 1px solid var(--line); }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; }
}
@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; }

/* FAQ (added 2026-09-27) */
.faq-list{max-width:760px;margin:0 auto;display:grid;gap:.6rem}
.faq-list details{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:.9rem 1.1rem}
.faq-list summary{cursor:pointer;font-weight:700;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";float:right;font-weight:400}
.faq-list details[open] summary::after{content:"\2212"}
.faq-list details p{margin:.6rem 0 0}

/* moved from inline style attributes so the CSP can drop 'unsafe-inline' (2026-10-05) */
.quote-call--spaced{margin-top:1.2rem;font-weight:600}
.foot-bottom--plain{border:0;margin:0;padding-top:0}
.notfound{max-width:640px;margin:0 auto;padding:clamp(56px,11vh,120px) 20px;text-align:center}
.notfound p{color:var(--muted)}

/* ---------- packages / prices: EXAMPLE text, the owner edits it (added 2026-10-22) ---------- */
.pkg-section { border-top: 1px solid var(--line); }
.example-note { display: inline-block; margin: 1rem 0 0; padding: .5rem .95rem; border: 2px dashed var(--muted);
  border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); font-size: .92rem; font-weight: 600; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow-sm); }
.pkg-featured { border: 2px solid var(--cta-hover); box-shadow: var(--shadow); }
.pkg-badge { position: absolute; top: -14px; left: 24px; background: var(--cta-hover); color: #fff; font-size: .78rem;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .28rem .75rem; border-radius: 999px; }
.pkg h3 { margin-bottom: .5rem; }
.pkg-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.1; margin: 0 0 .5rem; color: var(--ink); }
.pkg-per { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--muted); }
.pkg-blurb { color: var(--muted); font-size: .98rem; margin: 0 0 1rem; }
.pkg-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; flex: 1; }
.pkg-list li { position: relative; padding-left: 1.6rem; font-size: .98rem; }
.pkg-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--cta-hover); }
.pkg .btn { justify-content: center; }
.pkg-foot { text-align: center; margin: 1.8rem 0 0; color: var(--muted); }

/* the header now has a 5th link: tighter gaps, and the logo mark never shrinks */
.brand-mark { flex: none; }
.nav { gap: 18px; }

/* ---------- booking-request page (book.html) ---------- */
.book .quote-grid { align-items: center; }
.book-steps { margin: 1.2rem 0 1.4rem; padding-left: 1.3rem; font-size: 1.05rem; }
.book-steps li { margin-bottom: .35rem; }
.book h1 { color: #fff; margin-bottom: 1rem; }
.book-eyebrow { color: #fff; opacity: .85; }
.form-hint { color: var(--muted); font-size: .86rem; margin: -6px 0 14px; }

/* ---------- 24/7 emergency call bar: phones only (added 2026-10-22) ---------- */
.emergency-bar { display: none; --bar-bg: #0b1f33; --bar-ink: #ffffff; --bar-btn: #f7a03f; --bar-btn-ink: #0b1f33; }
.emergency-call:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
@media (max-width: 720px) {
  .emergency-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed;
    left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px; background: var(--bar-bg); color: var(--bar-ink);
    border-top: 3px solid var(--bar-btn); box-shadow: 0 -4px 16px rgba(0, 0, 0, .25); }
  .emergency-text { font-size: .86rem; line-height: 1.25; }
  .emergency-text strong { display: block; font-size: .95rem; }
  .emergency-call { flex: none; display: inline-flex; flex-direction: column; align-items: center; min-height: 44px;
    justify-content: center; padding: .4rem 1.1rem; border-radius: 999px; background: var(--bar-btn); color: var(--bar-btn-ink);
    font-weight: 800; font-size: .95rem; line-height: 1.15; text-decoration: none; }
  .emergency-num { font-size: .82rem; font-weight: 700; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- extra pages: services / about / contact (added 2026-10-25, Phase 5 A2) ---------- */
.nav a[aria-current="page"] { color: var(--cta-hover); box-shadow: inset 0 -3px 0 currentColor; }
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0; }
.page-hero h1 { margin-bottom: .8rem; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { max-width: 60ch; margin-bottom: 0; }
.page-hero .hero-actions { margin: 1.4rem 0 0; }
.more-link { margin: 1.6rem 0 0; text-align: center; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.detail { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); }
.detail .card-ic { margin-bottom: .9rem; }
.detail h3 { margin-bottom: .4rem; }
.detail p { color: var(--muted); }
.detail ul { margin: .2rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .35rem; flex: 1; }
.detail-ask { margin: 0; font-weight: 700; }
.how { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 0; margin: 0; }
.how li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; }
.how li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--cta-hover); color: #fff; font-weight: 800; margin-bottom: .7rem; }
.how h3 { margin-bottom: .35rem; }
.how p { margin: 0; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.story h2 { margin-bottom: .8rem; }
.story p { max-width: 62ch; }
.facts { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.facts h3 { margin-bottom: .6rem; }
.facts ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 22px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: .4rem; }
.info-card p { margin: 0; }
.info-card .info-note { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.info-card a[href^="tel:"] { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.map-ph { background: var(--sand); border: 2px dashed var(--muted); border-radius: var(--radius); padding: 28px 24px; text-align: center; color: var(--ink); }
.map-ph p { margin: 0 auto .4rem; max-width: 56ch; }
.map-ph p:last-child { margin-bottom: 0; }
.cta-band { background: var(--cream); border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { max-width: 56ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.cta-band .hero-actions { justify-content: center; margin: 1.2rem 0 1rem; }
.cta-band a[href^="tel:"] { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.foot-links { margin: .2rem 0 .9rem; font-size: .95rem; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .nav a { padding: 0 .3rem; font-size: .9rem; }   /* all five links fit on a 360px phone */
  .brand { font-size: 1.1rem; }                     /* logo + phone icon + button stay on one row, even "Get a free estimate" */
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: .5rem .8rem; font-size: .85rem; }
}

.demo-photo-note { font-size: .82rem; color: #5c6b62; margin: .6rem 0 0; text-align: center; }
