/* Site refresh (Nov 2026): call bar, facts strip, quick quote, service pages, work photos.
   Uses the tokens from styles.css so everything keeps the same look. */

/* ---- Sticky call bar (phones only) ---- */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: flex; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 22, 27, 0.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .callbar a {
    flex: 1; max-width: 480px; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--brass); color: #14181D; font-weight: 600; font-size: 1.05rem;
    border-radius: var(--radius); padding: 13px 16px; text-decoration: none;
  }
  .callbar svg { flex: none; }
  /* Keep the page's last content and the floating helpers clear of the bar */
  body.has-callbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html:has(body.has-callbar) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-callbar .akr-launch { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-callbar .akr-nudge { bottom: calc(160px + env(safe-area-inset-bottom)); }
  body.has-callbar .ak-sp-float { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* ---- Small "learn more" links on cards ---- */
.card .res-learn-badge { display: block; margin-top: 12px; color: var(--teal); font-size: 0.9rem; }
.card .res-learn-badge:hover { text-decoration: underline; }

/* ---- Facts strip: certification, warranty, hours, area ---- */
.facts-strip {
  max-width: var(--max); margin: 28px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.facts-item {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border-radius: var(--radius-sm); padding: 14px 16px;
  border-top: 2px solid var(--brass);
}
.facts-item:nth-child(even) { border-top-color: var(--teal); }
.facts-label { font-family: var(--font-mono); color: var(--paper); font-size: 0.9rem; }
.facts-text { color: var(--fog); font-size: 0.85rem; line-height: 1.45; }
.facts-text a { color: var(--brass); }
@media (max-width: 880px) { .facts-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .facts-strip { grid-template-columns: 1fr; } }

/* ---- Quick quote ---- */
.qq-section { max-width: var(--max); margin: 0 auto; padding: 70px 24px; }
.qq-section .section-head { margin-bottom: 28px; }
.qq-form { max-width: 720px; }
.qq-form .form-row { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .qq-form .form-row { grid-template-columns: 1fr; } }
.qq-success[hidden] { display: none; }

/* ---- Real Work. Real Results. (hidden until photos exist) ---- */
.real-work[hidden] { display: none !important; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rw-item { margin: 0; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.rw-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rw-item figcaption { padding: 12px 14px; color: var(--fog); font-size: 0.9rem; }

/* ---- Service and town pages ---- */
.sp-hero { padding: 56px 24px 8px; max-width: 760px; margin: 0 auto; }
.sp-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--paper); margin: 12px 0 16px; line-height: 1.12; }
.sp-hero .sp-lead { color: var(--fog); font-size: 1.08rem; line-height: 1.7; }
.sp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.sp-ctas .btn { text-align: center; }
.sp-ghost { color: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 22px; font-weight: 600; }
.sp-ghost:hover { border-color: var(--brass); }
.sp-article { max-width: 760px; margin: 0 auto; padding: 24px 24px 8px; }
.sp-article h2 { font-family: var(--font-display); font-size: 1.65rem; color: var(--paper); margin: 44px 0 14px; scroll-margin-top: 90px; }
.sp-article h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--brass); margin: 26px 0 8px; }
.sp-article p, .sp-article li { color: var(--fog); line-height: 1.75; font-size: 1.02rem; }
.sp-article p { margin: 0 0 16px; }
.sp-article strong { color: var(--paper); }
.sp-article a { color: var(--teal); }
.sp-article a:hover { text-decoration: underline; }
.sp-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.sp-list li { padding-left: 20px; position: relative; }
.sp-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.sp-callout { background: var(--panel); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0; }
.sp-callout p:last-child { margin-bottom: 0; }
.sp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.sp-card { display: block; background: var(--panel); border-radius: var(--radius); padding: 18px 18px 16px; border-top: 2px solid var(--teal); color: var(--fog); }
.sp-card:hover { background: #202833; text-decoration: none !important; }
.sp-card strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.sp-card span { font-size: 0.92rem; line-height: 1.5; color: var(--fog); }
.sp-card.brass { border-top-color: var(--brass); }

/* Nav menu on pages that don't load script.js */
.nav-mobile a.nav-mobile-call { color: var(--brass); font-family: var(--font-mono); font-weight: 600; text-align: center; border-bottom: 0; }

/* Keep the top bar on one line (it used to wrap on laptop widths) */
.nav-cta, .nav-phone { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1240px) { .nav-links { gap: 20px; margin-left: 24px; } .nav-links a { font-size: 0.96rem; } }
@media (min-width: 881px) and (max-width: 1100px) { .nav-phone { display: none; } .nav-links { gap: 16px; margin-left: 18px; } }
@media (min-width: 881px) and (max-width: 1000px) { .nav-links + .nav-cta { display: none; } }
