/* Client-facing sites (city pages, documents): always light and bright, one job — get the request.
   Loaded after style.css; the niche colour comes in as --nc. */
body.site {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --border: #dfe5ee;
  --text: #0f172a;
  --muted: #5b6678;
  --accent: #15803d;
  --accent-text: #ffffff;
  --ok: #15803d; --ok-bg: #e7f6ec;
  --warn: #9a5b00; --warn-bg: #fdf1dc;
  --crit: #c62a2f; --crit-bg: #fde8e8;
  --radius: 16px;
  --glow: rgba(34, 197, 94, .5);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip;
}
body.site h1, body.site h2, body.site h3 { font-weight: 800; letter-spacing: -0.02em; }
body.site h2 { font-size: 28px; line-height: 1.2; margin: 56px 0 16px; }
body.site a { color: #0f7a3a; }

/* header */
body.site header.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
body.site header.top .wrap { height: 72px; gap: 24px; }
body.site .logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); }
body.site .logo:hover { text-decoration: none; }
.site-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--nc), color-mix(in srgb, var(--nc) 55%, #0f172a));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nc) 25%, transparent), 0 6px 16px -4px color-mix(in srgb, var(--nc) 80%, transparent); }
body.site nav.main a { color: var(--muted); font-weight: 650; }
body.site nav.main a:hover { color: var(--text); }

/* buttons: one loud call to action colour on every client site */
body.site .btn { position: relative; overflow: hidden; border-radius: 12px; padding: 10px 18px; font-weight: 750; transition: transform .2s, box-shadow .25s, border-color .2s, color .2s; }
body.site .btn:active { transform: translateY(1px) scale(.98); }
body.site .btn.primary { background: linear-gradient(135deg, #15803d, #16a34a 55%, #22c55e); border: 0; color: #fff; box-shadow: 0 10px 24px -10px var(--glow); }
body.site .btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
body.site .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--glow), 0 0 22px -4px rgba(74, 222, 128, .7); }
body.site .btn.primary:hover::after { transform: translateX(120%); }
body.site .btn.big { padding: 15px 26px; font-size: 17px; }
body.site .btn.primary.big { animation: site-pulse 2.8s ease-in-out infinite; }
@keyframes site-pulse { 0%, 100% { box-shadow: 0 10px 24px -10px var(--glow); } 50% { box-shadow: 0 12px 30px -8px var(--glow), 0 0 26px 2px rgba(74, 222, 128, .45); } }
body.site .btn.ghost { background: transparent; border: 1.5px solid currentColor; }

/* cards and forms */
body.site .card { border-radius: var(--radius); border-color: var(--border); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -18px rgba(15, 23, 42, .25); transition: transform .25s, box-shadow .25s; }
body.site .grid .card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(15, 23, 42, .35); }
body.site input:not([type=checkbox]), body.site select, body.site textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cfd7e3; background: #fff; color: var(--text); font: inherit; }
body.site input:focus, body.site select:focus, body.site textarea:focus { outline: 0; border-color: #16a34a; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
body.site label { color: var(--muted); font-weight: 650; font-size: 14px; }
body.site .consent { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.45; }
body.site .consent input { width: auto; accent-color: #16a34a; }

/* hero: dark band lit in the niche colour, calculator (the lead magnet) on the right */
.site-hero { position: relative; isolation: isolate; overflow: hidden; margin: -28px -16px 0; padding: 36px 16px 56px; color: #dbe4ef;
  background: linear-gradient(160deg, #0b1220 0%, #0f1b2e 55%, color-mix(in srgb, var(--nc) 22%, #0f1b2e) 100%); }
@media (min-width: 1212px) { .site-hero { margin-inline: calc((1148px - 100vw) / 2); padding-inline: calc((100vw - 1148px) / 2); } }
.site-hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.site-hero-glow span { position: absolute; border-radius: 50%; filter: blur(80px); animation: site-drift 16s ease-in-out infinite alternate; }
.site-hero-glow span:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; background: var(--nc); opacity: .35; }
.site-hero-glow span:nth-child(2) { width: 420px; height: 420px; left: -160px; bottom: -220px; background: #22c55e; opacity: .18; animation-duration: 21s; }
@keyframes site-drift { to { transform: translate(-50px, 40px) scale(1.12); } }
.site-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .site-hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-hero .crumbs, .site-hero .crumbs a { color: #93a3b8; }
body.site .site-hero h1 { color: #fff; font-size: 46px; line-height: 1.1; margin: 10px 0 16px; }
@media (max-width: 640px) { body.site .site-hero h1 { font-size: 32px; } }
.site-hero .lead { color: #c3cfdc; font-size: 18px; max-width: 560px; }
.site-checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.site-checks li { display: flex; gap: 10px; align-items: flex-start; color: #e7eef6; }
.site-checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px;
  background: color-mix(in srgb, var(--nc) 25%, transparent); color: var(--nc); box-shadow: 0 0 14px color-mix(in srgb, var(--nc) 45%, transparent); }
.site-checks strong { color: #fff; }
body.site .site-hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
body.site .site-hero .btn.ghost:hover { border-color: #4ade80; color: #4ade80; }
.site-hero-cta { gap: 12px; }
.site-hero .hero-illo .illo { border-radius: 20px; background: rgba(255, 255, 255, .06); }

.site-calc { position: relative; padding: 26px; border: 0; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); color: var(--text); animation: site-float 7s ease-in-out infinite; }
.site-calc::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, var(--nc), #22c55e); }
@keyframes site-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.site-calc:focus-within { animation-play-state: paused; }
.site-calc-head { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #0f7a3a; background: #e7f6ec; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: site-dot 1.8s infinite; }
@keyframes site-dot { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
body.site .site-calc h2 { font-size: 21px; margin: 12px 0 14px; }
.site-calc form.stack { max-width: none; gap: 12px; }
.calc-result { margin-top: 18px; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--nc) 12%, #fff); border: 1.5px solid color-mix(in srgb, var(--nc) 45%, #fff); }
.calc-result.pop { animation: site-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes site-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
body.site .estimate { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.calc-next { margin: 6px 0 12px; font-weight: 650; }
.calc-lead { max-width: none !important; gap: 10px !important; }
.calc-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .calc-lead-row { grid-template-columns: 1fr; } }

/* content blocks */
body.site .block { margin: 48px 0; }
body.site .block h2 { margin-top: 0; }
body.site .table-wrap { border-radius: var(--radius); box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .25); }
body.site td:last-child { font-weight: 750; }
body.site ol.stages { counter-reset: st; list-style: none; padding: 0; display: grid; gap: 10px; }
body.site ol.stages li { counter-increment: st; display: flex; gap: 14px; align-items: center; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
body.site ol.stages li::before { content: counter(st); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #15803d, #22c55e); box-shadow: 0 0 14px -2px var(--glow); }
body.site details.card summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
body.site details.card summary::-webkit-details-marker { display: none; }
body.site details.card summary::after { content: "+"; font-size: 22px; line-height: 1; color: #16a34a; transition: transform .2s; }
body.site details.card[open] summary::after { transform: rotate(45deg); }
body.site .villages li { background: #fff; border: 1px solid var(--border); padding: 6px 14px; }
body.site .villages a:hover { text-decoration: none; color: #16a34a; }

/* the lead form at the bottom: impossible to miss */
.site-lead { position: relative; overflow: hidden; padding: 30px; border: 2px solid #22c55e !important; background: linear-gradient(135deg, #f0fdf4, #fff 60%) !important;
  box-shadow: 0 24px 60px -30px rgba(21, 128, 61, .7), 0 0 0 6px rgba(34, 197, 94, .08) !important; }
.site-lead h2 { font-size: 26px; }
.site-lead form.stack { max-width: 520px; }

/* sticky call to action on phones */
.site-sticky { display: none; }
@media (max-width: 760px) {
  .site-sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px -16px rgba(15, 23, 42, .4); }
  .site-sticky .btn { flex: 1; text-align: center; padding: 13px 10px; font-size: 16px; }
  body.site .site-sticky .btn.ghost { color: #15803d; }
  body.site { padding-bottom: 72px; }
  body.site header.top nav.main { display: none; }
}

/* footer */
footer.site-foot { margin-top: 56px; padding: 32px 0; background: #fff; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-foot-row strong { color: var(--text); font-size: 16px; }
.site-foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* documents: readable, light */
.doc { max-width: 820px; margin: 24px auto 0; }
.card.doc { padding: 36px 40px; }
@media (max-width: 640px) { .card.doc { padding: 22px 18px; } }
.doc h1 { font-size: 32px; line-height: 1.2; margin-bottom: 14px; }
.doc h2 { font-size: 22px; margin: 32px 0 12px; }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 10px; }
.doc p, .doc li { line-height: 1.65; }
.exec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.exec-card h3 { margin: 10px 0 4px; font-size: 18px; }
.exec-card p { margin: 4px 0 0; }
.exec-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #0f7a3a; background: #e7f6ec; }

@media (prefers-reduced-motion: reduce) {
  .site-hero-glow span, .site-calc, .pulse-dot, body.site .btn.primary.big, .calc-result.pop { animation: none !important; }
}

body.site [hidden] { display: none !important; }

/* Links between machine pages of one city */
.machine-links { display: flex; flex-wrap: wrap; gap: 10px; }
.machine-links a { padding: 10px 16px; border-radius: 999px; border: 1.5px solid #cfe9d8; background: #fff; color: #14532d; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(22, 163, 74, .5); transition: transform .15s, border-color .15s, box-shadow .15s; }
.machine-links a:hover { transform: translateY(-2px); border-color: #22c55e; box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .7); }

/* First-visit consent banner */
.consent-bar { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(920px, calc(100% - 24px)); display: flex; gap: 16px; align-items: center;
  padding: 14px 16px 14px 20px; border-radius: 16px; background: #0c1620; color: #d6e0ea; font-size: 14px; line-height: 1.45;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(74, 222, 128, .25); animation: consent-in .4s cubic-bezier(.2, 1, .3, 1); transition: opacity .3s, transform .3s; }
.consent-bar p { margin: 0; flex: 1; }
.consent-bar a { color: #86efac; text-decoration: underline; }
.consent-bar .btn { flex: none; }
.consent-bar.bye { opacity: 0; transform: translate(-50%, 12px); }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 640px) { .consent-bar { flex-direction: column; align-items: stretch; gap: 10px; bottom: 8px; padding: 12px 14px; font-size: 13px; } body.site .consent-bar { bottom: 80px; } }
