/* ============================================================
   CallJQ — theme (light / cream, keyed to the JQ logo)
   Palette pulled from the logo: forest green, orange, gold, cream.
   --brand = orange (actions), --green = brand structure.
   ============================================================ */
:root {
  --brand:      #E8731C;   /* orange — primary action / CTA */
  --brand-2:    #C85E10;   /* deep orange */
  --brand-ink:  #ffffff;   /* text on orange */
  --green:      #256834;   /* forest green — brand color */
  --green-2:    #1B5127;   /* deeper green */
  --gold:       #C9A255;   /* gold accent */

  --bg:      #F6F0DB;   /* warm cream (logo background) */
  --surface: #FFFFFF;   /* cards */
  --surface-2:#EFE7CE;  /* chips / icon wells */
  --line:    #E2D8BC;   /* warm border */
  --text:    #22331F;   /* dark green-charcoal ink */
  --muted:   #6E7365;   /* muted olive-gray */
  --shadow:  0 12px 30px rgba(70,60,25,.12);

  --radius: 16px;
  --maxw: 680px;
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: 84px; /* room for sticky mobile bar */
  overflow-x: hidden;   /* safety net against any wide child */
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.02;
  text-transform: uppercase; letter-spacing: .01em; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600; font-size: 18px; border: none; border-radius: 12px;
  padding: 16px 22px; cursor: pointer; text-decoration: none; width: 100%;
  transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px rgba(232,115,28,.30); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-outline { background: var(--surface); color: var(--green-2); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--green); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 23px; height: 23px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(246,240,219,.88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  /* clear the iOS status bar (notch / Dynamic Island) */
  padding-top: env(safe-area-inset-top); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  font-size: 20px; color: var(--green); }
.brand b span { color: var(--brand); }
.topbar .call { display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: var(--brand); color: #fff; font-family: var(--font-display);
  text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: .04em;
  padding: 9px 14px; border-radius: 10px; }
.topbar .call svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 34px; text-align: center;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(37,104,52,.10), transparent 60%),
    var(--bg); }
.hero img.mark { width: 146px; height: 146px; margin: 0 auto 18px;
  filter: drop-shadow(0 10px 20px rgba(70,60,25,.20)); }
.hero h1 { font-size: clamp(30px, 7.4vw, 50px); overflow-wrap: break-word; }
.hero h1 .red { color: var(--brand); }
.hero p.lede { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 34ch; }
.hero .area { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; }
.hero .area b { color: var(--text); font-weight: 600; }
.hero .cta { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- sections ---------- */
section { padding: 40px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 6.5vw, 34px); margin-top: 6px; }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* ---------- services ---------- */
.services { display: grid; gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(70,60,25,.16); }
.svc h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.svc .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--green); flex: none; }
.svc .ico svg { width: 28px; height: 28px; }
.svc p { color: var(--muted); margin: 10px 0 14px; }
.svc ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.svc li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.svc li::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); flex: none; }

/* ---------- form ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--brand); }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px; font-size: 16px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37,104,52,.16); }
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { flex: 1 1 auto; text-align: center; padding: 13px 12px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; user-select: none;
  font-weight: 600; font-size: 15px; transition: .12s; }
.chip[aria-pressed="true"] { border-color: var(--green); background: rgba(37,104,52,.10);
  color: var(--green-2); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- why ---------- */
.why { display: grid; gap: 14px; }
.why .row { display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease; }
.why .row:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(70,60,25,.16); }
.why .row .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2);
  color: var(--green); display: grid; place-items: center; flex: none; }
.why .row .ico svg { width: 26px; height: 26px; }
.why h3 { font-size: 18px; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.why p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 40px; margin-top: 20px; }
footer .brand { margin-bottom: 16px; }
footer .contact { display: grid; gap: 10px; margin-bottom: 18px; }
footer .contact a { display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--text); font-weight: 600; }
footer .contact svg { width: 21px; height: 21px; color: var(--brand); }
footer small { color: var(--muted); display: block; line-height: 1.7; }

/* ---------- bottom tab bar (mobile nav) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(246,240,219,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 8px; text-decoration: none; color: var(--muted);
  font-size: 11px; font-weight: 700; }
.tab svg { width: 27px; height: 27px; }
.tab.active { color: var(--green); }

/* ---------- desktop top nav + home tiles ---------- */
.topnav { display: none; }
.tiles { display: grid; gap: 14px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(70,60,25,.16); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2);
  color: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.tile .ico svg { width: 28px; height: 28px; }
.tile h3 { font-size: 22px; color: var(--text); }
.tile p { color: var(--muted); margin: 6px 0 12px; }
.tile-go { color: var(--brand); font-weight: 700; font-family: var(--font-display);
  text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }

/* ---------- install banner ---------- */
.install { display: none; align-items: center; gap: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 18px; }
.install.show { display: flex; }
.install span { font-size: 14px; flex: 1; }
.install button { width: auto; padding: 10px 16px; font-size: 14px; }

/* ---------- success overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: none; place-items: center;
  background: rgba(20,30,15,.55); padding: 20px; }
.overlay.show { display: grid; }
.overlay .box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.overlay .check { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(37,104,52,.14); color: var(--green); display: grid; place-items: center; }
.overlay .check svg { width: 38px; height: 38px; }
.overlay h3 { font-size: 26px; }
.overlay p { color: var(--muted); margin: 10px 0 22px; }
.overlay .box .btn { margin-bottom: 10px; }
.overlay .close { background: none; border: none; color: var(--muted); font-size: 15px;
  cursor: pointer; width: auto; }

/* ---------- hero trust badges ---------- */
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 10px; padding: 0; margin: 22px auto 0; max-width: 470px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--green-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px; }
.trust li::before { content: "\2713"; color: var(--green); font-weight: 800; }

/* ---------- instant estimate ---------- */
.estimator { position: relative; overflow: hidden; }
.estimator::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--brand)); }
.est-step { margin-bottom: 18px; }
.est-label { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; font-size: 15px; }
.est-label b { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; }
.est-options { display: grid; gap: 10px; }
.est-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; transition: .12s; width: 100%; font: inherit; }
.est-opt:hover { border-color: var(--green); }
.est-opt[aria-pressed="true"] { border-color: var(--green); background: rgba(37,104,52,.08); }
.est-opt .lab { font-weight: 700; color: var(--text); }
.est-opt .sub { color: var(--muted); font-size: 13px; }
.est-result { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); text-align: center; }
.est-price { font-family: var(--font-display); font-weight: 700; color: var(--green);
  font-size: clamp(46px, 13vw, 68px); line-height: 1; animation: pop .35s ease; }
.est-pick { color: var(--muted); margin-top: 6px; font-weight: 600; }
.est-note { color: var(--muted); font-size: 13px; margin: 10px auto 16px; max-width: 34ch; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- green CTA band ---------- */
.cta-band { padding: 50px 0; text-align: center;
  background: linear-gradient(135deg, #2E7D3A 0%, var(--green-2) 100%); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 7.4vw, 42px); }
.cta-band p { color: rgba(255,255,255,.86); margin: 12px auto 22px; max-width: 38ch; font-size: 17px; }
.cta-band-actions { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.btn-onband { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.20); }
.btn-onband:hover { filter: brightness(1.05); }
.btn-onband-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-onband-outline:hover { border-color: #fff; }

/* ---------- recent work gallery ---------- */
.gallery { column-count: 2; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; position: relative; border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; background: var(--surface-2); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(20,30,15,.78)); }

/* featured full-width photo */
.work-feat { margin: 0 0 22px; position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in; }
.work-feat img { display: block; width: 100%; height: auto; }
.work-feat figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  font-size: 14px; font-weight: 600; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(20,30,15,.8)); }

/* before-to-after progression */
.prog-head { margin: 4px 0 14px; }
.prog-head h3 { font-size: clamp(22px, 6vw, 30px); }
.prog-head p { color: var(--muted); margin: 6px 0 0; }
.progression { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.progression .step { margin: 0; position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in; background: var(--surface-2); }
.progression .step img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.progression .step-n { position: absolute; top: 8px; left: 8px; z-index: 2; width: 27px; height: 27px;
  border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display);
  display: grid; place-items: center; font-size: 15px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.progression .step figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(20,30,15,.82)); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; place-items: center;
  background: rgba(15,20,12,.92); padding: 16px; }
.lightbox.show { display: grid; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 12px; }
.lb-img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.lb-cap { color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none;
  cursor: pointer; display: grid; place-items: center; border-radius: 50%;
  width: 48px; height: 48px; font-size: 30px; line-height: 1; transition: background .12s; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; font-size: 30px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- before / after slider ---------- */
.ba-list { display: grid; gap: 20px; }
.ba { margin: 0; }
.ba-frame { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: ew-resize; touch-action: none; user-select: none; background: var(--surface-2); }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-tag { position: absolute; top: 12px; font-family: var(--font-display); text-transform: uppercase;
  font-size: 12px; letter-spacing: .06em; padding: 5px 11px; border-radius: 7px; color: #fff; pointer-events: none; }
.ba-before-tag { left: 12px; background: rgba(34,50,31,.82); }
.ba-after-tag { right: 12px; background: var(--green); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.18); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.28); display: grid; place-items: center; color: var(--green); }
.ba-knob svg { width: 22px; height: 22px; }
.ba figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; font-size: 18px; }
  .tabbar { display: none; }
  .topnav { display: flex; gap: 24px; }
  .topnav a { text-decoration: none; color: var(--text); font-family: var(--font-display);
    text-transform: uppercase; font-weight: 600; font-size: 15px; letter-spacing: .03em; }
  .topnav a.active, .topnav a:hover { color: var(--green); }
  .hero .cta { grid-template-columns: 1fr 1fr; max-width: 480px; margin-inline: auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .progression { grid-template-columns: repeat(var(--steps, 4), 1fr); }
  .gallery { column-count: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
