/* Sprakel Services additions on top of the shared styles.css */
:root { --flag: #ff7a66; }
.hero.fence-hero { background:
  radial-gradient(900px 420px at 80% 10%, rgba(255,255,255,0.22), transparent 60%),
  linear-gradient(180deg, #3a1411 0%, #5a201b 55%, #97473e 140%); }
.hero.fence-hero::before { background: none; }
.hero-art { position: absolute; inset: auto 0 0 0; height: 42%; z-index: -1; opacity: .55; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.draft-tag { display: inline-block; font: 700 .72rem var(--font-sans); letter-spacing: .08em; text-transform: uppercase; background: #fff1c2; color: #6b4a00; border: 1px solid #f0cf6c; padding: .15rem .5rem; border-radius: 6px; vertical-align: middle; }
.price-start { font: 800 1.6rem var(--font-display); }
.svc-split { display: grid; gap: 1rem; }
@media (min-width: 800px) { .svc-split { grid-template-columns: 1.15fr .85fr; } }
.svc-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc-card:hover { border-color: var(--brand); color: inherit; }
.svc-card .art { height: 190px; background: #5a201b center/cover no-repeat; }
.svc-card .body { padding: 1.3rem; }
.svc-card h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.svc-card p { margin: 0; color: var(--muted); }
.svc-card .more-link { display: inline-flex; margin-top: .9rem; font-weight: 700; color: var(--brand-600); }
.incl { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .4rem; }
.incl li { padding-left: 1.6rem; position: relative; }
.incl li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--brand); }
.town-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.town-list a { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; }
.town-list a:hover { border-color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.timeline .t { font-weight: 700; color: var(--brand-600); }
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(42,13,11,.96); }
.call-bar .btn { flex: 1; min-height: 46px; }
@media (min-width: 900px) { .call-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 70px; } }
.dealer-line { font-size: .8rem; color: rgba(255,255,255,.6); margin: .4rem 0 0; }

/* ---------- Quote tool ---------- */
.q-wrap { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .q-wrap { grid-template-columns: 1fr 380px; align-items: start; } }
.q-map { height: 62vh; min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.q-map.is-placing { cursor: crosshair; outline: 3px solid var(--flag); }
.q-panel { display: grid; gap: .8rem; }
.q-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; opacity: .75; }
.q-step.is-active { opacity: 1; border-color: var(--brand); box-shadow: var(--shadow-sm); }
.q-step h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.q-step p { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }
.q-addr { display: flex; gap: .5rem; }
.q-addr input { flex: 1; min-width: 0; }
.q-panel input[type=text], .q-panel input[type=number], .q-form input, .q-form select, .q-form textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.q-num { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.q-num label { font-weight: 600; font-size: .92rem; }
.q-msg { min-height: 1.4em; font-size: .95rem; margin: 0; }
.q-msg[data-kind=warn] { color: #8a4b00; }
.q-msg[data-kind=ok] { color: var(--brand-600); }
.q-result { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.q-result .q-range { font: 800 2rem var(--font-display); margin: .2rem 0; }
.q-result dl { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; margin: .6rem 0; font-size: .95rem; }
.q-result dd { margin: 0; font-weight: 700; text-align: right; }
.q-result table { width: 100%; border-collapse: collapse; font-size: .85rem; color: rgba(255,255,255,.85); }
.q-result td { padding: .3rem 0; border-top: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.q-result td:last-child { text-align: right; white-space: nowrap; padding-left: .6rem; }
.q-result .q-total td { font-weight: 800; color: #fff; }
.q-result .draft-tag { margin-bottom: .3rem; }
.q-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); margin: .5rem 0 0; padding: 0; list-style: none; }
.q-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: .35rem; }
.q-corner { background: #fff; border: 3px solid var(--flag); border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.q-mid { background: rgba(255,255,255,.55); border: 2px solid rgba(255,122,102,.9); border-radius: 50%; }
.q-power { display: grid; place-items: center; background: #97473e; border: 3px solid #fff; border-radius: 50%; color: #ffd84d; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.q-form { margin-top: 1.5rem; }

/* ---------- 3D hologram fence view (js/fence-3d.js) ---------- */
.q-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 .5rem; background: var(--sand); border-radius: 999px; }
.q-tab { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.q-tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.q-tab:disabled { opacity: .5; cursor: default; }
.q-3d { display: none; position: relative; height: 62vh; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: #140708; border: 1px solid #4a1a16; box-shadow: var(--shadow-sm); }
body.q-show-3d .q-3d { display: block; }
body.q-show-3d .q-map { position: absolute !important; left: -9999px; top: 0; width: 600px; }
.q3d-stage { position: absolute; inset: 0; }
.q3d-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.q-3d.is-placing { outline: 3px solid var(--flag); cursor: crosshair; }
.q3d-hud { position: absolute; top: 10px; left: 10px; padding: .45rem .7rem; border-radius: 10px; background: rgba(20,7,8,.8); color: #fff; font-size: .85rem; line-height: 1.35; border: 1px solid rgba(255,122,102,.5); pointer-events: none; }
.q3d-hud strong { font-size: 1.05rem; }
.q3d-draft { font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #ffd84d; }
.q3d-tools, .q3d-cam { position: absolute; display: flex; flex-wrap: wrap; gap: 6px; }
.q3d-tools { left: 10px; bottom: 44px; }
.q3d-cam { right: 10px; top: 10px; }
.q3d-btn { min-height: 38px; min-width: 38px; padding: .3rem .7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(20,7,8,.78); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.q3d-btn[aria-pressed="true"] { background: var(--brand); border-color: #ff7a66; }
.q3d-hint { position: absolute; left: 10px; right: 10px; bottom: 6px; margin: 0; font-size: .78rem; color: rgba(255,255,255,.78); pointer-events: none; text-shadow: 0 1px 2px #000; }
.q3d-msg { position: absolute; inset: 40% 10% auto; color: #fff; text-align: center; }
@media (max-width: 640px) {
  .q-3d { height: 70vh; min-height: 440px; }
  .q3d-tools { bottom: 74px; }
  .q3d-cam { top: auto; bottom: 122px; right: 10px; }
  .q3d-cam #q3d-rotate { display: none; }
  .q3d-hud { right: 10px; }
}
.q-wrap > * { min-width: 0; }
.q3d-stage canvas { position: absolute; inset: 0; }
.q3d-credit { position: absolute; right: 8px; bottom: 4px; margin: 0; font-size: .62rem; color: rgba(255,255,255,.5); pointer-events: none; }
.q3d-hint { right: 190px; }
@media (max-width: 640px) { .q3d-hint { right: 10px; bottom: 16px; } }
/* Satellite first, then "Build my fence" */
.q-mapwrap { position: relative; }
.q-build-float { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1001; box-shadow: 0 6px 20px rgba(0,0,0,.35); white-space: nowrap; }
body.q-show-3d .q-build-float { display: none; }
.q-build { width: 100%; justify-content: center; }
.q-tabs[hidden] { display: none; }
#q-viewswitch { box-shadow: 0 0 0 1px var(--line); }
#q-viewswitch .q-tab { min-width: 110px; font-size: 1rem; }
/* signal "ping" dots on the satellite map wire (offset matches PING_PERIOD in quote.js) */
.q-ping { animation: q-ping-run .657s linear infinite; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #ff7a66); }
@keyframes q-ping-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -46; } }
@media (prefers-reduced-motion: reduce) { .q-ping { animation: none; } }
@media (max-width: 640px) { .q-build-float { bottom: 72px; } }
/* service-area map (quote page opens on it) */
.q-town-label { background: #fff; color: #3A1411; border: 1px solid #97473E; border-radius: 6px; font-weight: 700; font-size: .72rem; padding: 0 5px; line-height: 1.5; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.q-town-label::before { display: none; }
.q-area-tip { position: absolute; top: 10px; left: 56px; right: 10px; z-index: 1001; background: rgba(42,13,11,.88); color: #fff; padding: .5rem .75rem; border-radius: 10px; font-size: .9rem; line-height: 1.35; pointer-events: none; max-width: 420px; }
.q-area-tip[hidden] { display: none; }
body.q-show-3d .q-area-tip { display: none; }
