/* One-page trades site. Accent colour comes from site.json (--accent). System fonts only:
   no external requests, so no cookie banner or GDPR issue with remote fonts. */
:root {
  --ink: #16181d;
  --ink-soft: #4a505c;
  --muted: #6b7280;
  --line: #e4e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --dark: #111318;
  --dark-soft: #1b1e25;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hidden { display: none; }
.muted { color: var(--muted); font-size: .92rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.35em; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-small { padding: .55em 1em; font-size: .95rem; background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

/* Demo banner */
.demo-banner { background: #fff4cc; color: #5c4600; font-size: .88rem; text-align: center; padding: .55em 16px; border-bottom: 1px solid #f0dc8a; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; flex: none; }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-trade { color: var(--muted); font-size: .82rem; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 550; color: var(--ink-soft); font-size: .97rem; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; color: #fff; background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-photo { background: linear-gradient(100deg, rgba(10, 12, 16, .88) 0%, rgba(10, 12, 16, .6) 55%, rgba(10, 12, 16, .25) 100%), var(--hero-img) center / cover no-repeat; }
.hero-photo::after { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: var(--wrap); }
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 56ch; opacity: .9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-usps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-usps li { display: flex; align-items: center; gap: .5em; font-weight: 550; opacity: .95; }
.hero-usps .icon { color: var(--accent); stroke-width: 2.6; filter: brightness(1.4); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 750; color: var(--accent); margin-bottom: .8em; }
.eyebrow-light { color: color-mix(in srgb, var(--accent) 45%, #fff); }

/* Facts */
.facts { border-bottom: 1px solid var(--line); background: var(--bg); }
.facts-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fact { padding: 26px 12px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.fact span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: clamp(60px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.service { transition: transform .2s ease, border-color .2s ease; }
.service:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.service p { color: var(--ink-soft); margin: 0; }
.service-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.service-icon .icon { width: 26px; height: 26px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.step p { color: var(--ink-soft); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

/* Reviews */
.review { margin: 0; display: flex; flex-direction: column; }
.review p { flex: 1; }
.review footer { font-weight: 650; color: var(--ink-soft); }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; fill: #f5a524; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--ink-soft); }
.area h3 { display: flex; align-items: center; gap: .45em; }
.area h3 .icon { color: var(--accent); }
.chips { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .3em .8em; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .92rem; font-weight: 550; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-soft); margin: 12px 0 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.contact-list a { text-decoration: none; font-weight: 600; }
.form { color: var(--ink); display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: .7em .85em; border: 1px solid #cfd3da; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; padding: .8em 1em; border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, #fff); font-weight: 600; }

/* Footer */
.footer { background: #0b0c10; color: #a3a8b3; font-size: .9rem; padding: 32px 0 96px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer strong { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer a { color: #d6d9e0; }

/* Prose (privacy page) */
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose p { color: var(--ink-soft); }

/* Mobile call bar */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar .btn-small span { display: none; }
  .topbar .btn-small { width: 44px; height: 44px; padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-links { text-align: left; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5em; padding: 15px; font-weight: 700; text-decoration: none; }
  .mobile-bar a.accent { background: var(--accent); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service { transition: none; }
}
