/* Conversion layer shared by the homepage and every generated page:
   estimate modal, trust bar, photo hero, real-work strip.
   Falls back to the site palette if a page does not define the tokens. */

.bk-lock { overflow: hidden; }

/* ── estimate modal ─────────────────────────────── */
.bk-overlay {
  position: fixed; inset: 0; z-index: 2147483000; /* above the GHL chat bubble */
  display: grid; place-items: center; padding: 16px;
  background: rgba(4, 4, 4, .82);
  backdrop-filter: blur(6px);
}
.bk-overlay[hidden] { display: none; }
.bk-box {
  position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  background: linear-gradient(160deg, #161616, #0c0c0c);
  border: 1px solid var(--border-lit, rgba(240, 126, 38, .28));
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  color: var(--text, #f0f0f0);
  animation: bk-in var(--dur-normal, 320ms) var(--ease, cubic-bezier(.16, 1, .3, 1));
}
@keyframes bk-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .bk-box { animation: none; } }
.bk-close {
  position: absolute; top: 10px; right: 12px; width: 44px; height: 44px;
  border: 0; background: none; color: var(--muted-bright, #b4b4b4);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.bk-close:hover, .bk-close:focus-visible { color: var(--orange, #f07e26); }
.bk-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange, #f07e26); margin: 0 0 6px;
}
.bk-box h2 {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.02;
  text-transform: uppercase; margin: 0 0 22px;
}
.bk-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .bk-grid { grid-template-columns: repeat(3, 1fr); } }
.bk-card {
  display: flex; flex-direction: column; gap: 6px; min-height: 104px;
  padding: 18px 16px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .03); color: inherit;
  border: 1px solid var(--border, rgba(255, 255, 255, .07)); border-radius: 14px;
  transition: transform var(--dur-fast, 150ms), border-color var(--dur-fast, 150ms), background var(--dur-fast, 150ms);
}
.bk-card:hover, .bk-card:focus-visible {
  transform: translateY(-2px); outline: none;
  border-color: var(--orange, #f07e26); background: var(--orange-soft, rgba(240, 126, 38, .12));
}
.bk-card:active { transform: translateY(0); }
.bk-card-label {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.bk-card-sub { font-size: .84rem; color: var(--muted-bright, #b4b4b4); line-height: 1.35; }
.bk-alt { margin: 20px 0 0; font-size: .92rem; color: var(--muted-bright, #b4b4b4); }
.bk-alt a { color: var(--orange, #f07e26); font-weight: 700; }
.bk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 40px 14px 0; }
.bk-head strong { font-size: 1.05rem; }
.bk-back {
  border: 0; background: none; color: var(--muted-bright, #b4b4b4);
  cursor: pointer; font: inherit; padding: 8px 0;
}
.bk-back:hover, .bk-back:focus-visible { color: var(--orange, #f07e26); }
.bk-switch { display: inline-flex; margin-left: auto; border: 1px solid var(--border, rgba(255, 255, 255, .1)); border-radius: 999px; overflow: hidden; }
.bk-switch button {
  border: 0; background: none; color: inherit; font: inherit; font-size: .86rem; font-weight: 600;
  padding: 9px 14px; cursor: pointer;
}
.bk-switch button[aria-pressed="true"] { background: var(--orange, #f07e26); color: #0a0a0a; }
#bkFrame { width: 100%; height: min(70dvh, 760px); border: 0; border-radius: 10px; background: #fff; }
.bk-legal { margin: 10px 0 0; font-size: .78rem; color: var(--muted, #8b8b8b); }
.bk-legal a { color: inherit; text-decoration: underline; }

/* ── trust bar ──────────────────────────────────── */
.trust-bar {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.trust-bar li {
  padding: 9px 14px; border-radius: 999px; font-size: .86rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border, rgba(255, 255, 255, .08));
  color: var(--muted-bright, #b4b4b4);
}
.trust-bar strong { color: var(--text, #f0f0f0); }
.trust-bar li:first-child strong { color: var(--orange, #f07e26); }

/* ── homepage photo hero ────────────────────────── */
.hero.hero-photo-wrap { position: relative; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; z-index: 0;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; z-index: 0;
  opacity: 0; transition: opacity .9s var(--ease, ease);
}
.hero-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* The poster is a bright white SUV, so the scrim has to do real work to keep
   the headline and trust bar at AA contrast over both still and video. */
.hero-photo-wrap .hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, .94) 0%, rgba(6, 6, 6, .78) 45%, rgba(6, 6, 6, .35) 100%),
    linear-gradient(0deg, rgba(6, 6, 6, .95) 0%, rgba(6, 6, 6, .2) 55%, rgba(6, 6, 6, .45) 100%);
}
@media (max-width: 767px) {
  .hero-photo-wrap .hero-overlay {
    background: linear-gradient(0deg, rgba(6, 6, 6, .97) 0%, rgba(6, 6, 6, .82) 55%, rgba(6, 6, 6, .5) 100%);
  }
}
.hero-photo-wrap .hero-content { position: relative; z-index: 2; }

/* ── AI illustrations (always captioned, never presented as C&M jobs) ── */
.ai-figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: #111; }
.ai-figure img { display: block; width: 100%; height: auto; }
.ai-figure figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(8, 8, 8, .8); color: var(--muted-bright, #b4b4b4);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
}
.ai-pair { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ai-pair { grid-template-columns: 1fr 1fr; } }
.ai-banner img { aspect-ratio: 5 / 1; object-fit: cover; }
@media (max-width: 767px) { .ai-banner img { aspect-ratio: 3 / 1; } }
.gloss-band { padding: 0 20px; }

/* ── sticky mobile bars (homepage .mobile-cta-bar, pages .mobile-cta) ──
   Body padding includes the iPhone home-indicator inset so the bar never
   sits on top of the last form field or the footer. */
@media (max-width: 939px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
.mobile-cta-bar { background: rgba(8, 8, 8, .96); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta-bar a { min-height: 52px; flex-direction: row; font-size: .9rem; }
/* The GHL chat bubble is fixed bottom-right and sat on top of the Free Estimate button
   (found in a real 390px browser test). Keep the last 84px of the bar clear for the bubble. */
@media (max-width: 939px) {
  .mobile-cta-bar, .mobile-cta { padding-right: 84px; box-sizing: border-box; }
}

/* ── estimate modal on phones: full screen, close button always reachable,
      the GHL iframe takes the remaining height and scrolls inside itself ── */
@media (max-width: 600px) {
  .bk-overlay { padding: 0; place-items: stretch; }
  .bk-box { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding: 0 16px 16px; }
  .bk-close {
    position: sticky; top: 0; align-self: flex-end; z-index: 2; flex: none;
    margin: 0 -8px 0 0; background: rgba(12, 12, 12, .92); border-radius: 999px;
  }
  .bk-head { margin-right: 0; }
  .bk-step[data-bk-step="embed"]:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  #bkFrame { flex: 1 1 auto; height: auto; min-height: 420px; }
}

/* ── real work: before / during / delivered ───── */
.work-strip { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }
@media (min-width: 760px) { .work-strip { grid-template-columns: 1.3fr 1fr 1fr; } }
.work-strip figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; }
.work-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.work-strip figure:hover img { transform: scale(1.04); }
.work-strip figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px;
  background: rgba(8, 8, 8, .78); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.work-strip figcaption span { color: var(--orange, #f07e26); margin-right: 6px; }

/* Comfortable, centered touch controls on every estimate step and the home nav. */
.hamburger, .bk-back, .bk-switch button {
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.bk-back, .bk-switch button { display: inline-flex; }

.hero-ai-label {
  position: absolute; left: 20px; top: 84px; bottom: auto; z-index: 3;
  padding: 6px 10px; border-radius: 6px;
  background: #111; color: #fff; font-size: .75rem; line-height: 1.5;
}
@media (max-width: 939px) {
  .hero.hero-photo-wrap { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
  /* Disclosure must be on the FIRST screen on a phone, not below the fold. */
  .hero-ai-label { top: 72px; bottom: auto; right: 20px; width: fit-content; }
}
