@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
/* Shared brand tokens — themed by [data-brand] on <html>.
 * Canonical source for the four web properties. MUST stay in lock-step with
 * edge/src/brands.ts and docs/web-platform/design-system.md — change one, change all.
 * Set <html data-brand="forge|laser|welding|nextday"> and the brand custom
 * properties below switch; styles/base.css consumes them via var(--brand) etc. */

:root {
  /* layout */
  --maxw: 1400px;
  --pad: clamp(16px, 4vw, 28px);
  --gap: 24px;
  --radius: 16px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  /* type scale */
  --fs-eyebrow: .8rem;
  --fs-h1: clamp(2.3rem, 5.5vw, 3.6rem);
  --fs-h2: clamp(1.55rem, 3.2vw, 2.2rem);
  --fs-h3: 1.15rem;
  --lh-tight: 1.08;
  --lh-body: 1.6;
  /* neutral surface palette (brand-agnostic) */
  --bg: #ffffff;
  --fg: #16181c;
  --muted: #5b6168;
  --line: #e7e9ee;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16,18,28,.05), 0 12px 32px -12px rgba(16,18,28,.14);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  /* WCAG AA: --brand-strong doubles as a button-hover *background* in places,
   * so it can't always be dark enough to read as *text* on white/tint. --brand-text
   * is the AA-safe colour for brand-coloured TEXT on light surfaces (links, eyebrows,
   * chips, price-on-request, etc.). Defaults to --brand-strong (already AA for the
   * dark brand palettes); the light amber welding brand overrides it below. */
  --brand-text: var(--brand-strong);
  /* AA-safe error/validation red on white. Brands may override (welding does). */
  --error: #C42A1A;
}

[data-brand="forge"] {
  --brand: #1E5A3C; --brand-strong: #16432D; --brand-bright: #3E8E63;
  --ink: #0E1210; --tint: #E4EAE2; --on: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
}
[data-brand="laser"] {
  --brand: #F71D25; --brand-strong: #C50D14; --brand-bright: #FF5A54;
  --ink: #1A1210; --tint: #F6EBEA; --on: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
[data-brand="welding"] {
  /* --brand-strong is the button-hover *background* (with the dark --on text on it),
   * so it's kept light enough for dark text to stay AA (#C07414 ⇒ 4.66:1). Brand-coloured
   * TEXT on white/tint instead uses the darker --brand-text (#8A530F ⇒ 6.3:1 on white,
   * 5.2:1 on tint). --deal/--error darkened from #E5341F (4.34 — failed) to #C42A1A (5.7). */
  --brand: #EAAE1E; --brand-strong: #C07414; --brand-bright: #F5BF44; --brand-text: #8A530F;
  --ink: #1C1C1E; --tint: #F8E8C9; --on: #1C1C1E; --deal: #C42A1A; --error: #C42A1A;
  --font-display: "Archivo", system-ui, sans-serif;
}
[data-brand="nextday"] {
  --brand: #1F6FEB; --brand-strong: #10408F; --brand-bright: #38BDF8;
  --ink: #0C1220; --tint: #E7F0FE; --on: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  /* landing pages stay light for now; reserved for future dark surfaces */
}
/* Shared landing-page component library. Themed only via the custom properties
 * in tokens.css (var(--brand) …). Brand-neutral: works for any [data-brand]. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--fg); background: var(--bg);
  font-family: var(--font-body); font-size: 17px; line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); font-weight: 700; margin: 0 0 12px; }
section { padding: clamp(48px, 8vw, 88px) 0; }
section.alt { background: var(--tint); }
.section-head { max-width: 60ch; margin: 0 auto clamp(28px,5vw,44px); text-align: center; }

/* header */
header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--on); display: grid; place-items: center; flex: 0 0 auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--brand-text); }
.navtoggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px; color: var(--ink); cursor: pointer; }
.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .98rem; text-decoration: none; border-radius: var(--radius-pill); padding: 12px 22px; border: 1.5px solid transparent; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--brand-text); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.btn-ghost:hover { background: var(--tint); }

/* hero */
.hero { background: linear-gradient(180deg, var(--tint), var(--bg)); padding: clamp(56px,9vw,104px) 0 clamp(40px,6vw,72px); }
.hero h1 { max-width: 17ch; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 56ch; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.chip { font-size: .82rem; font-weight: 600; color: var(--brand-text); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: var(--radius-pill); padding: 6px 13px; }

/* layout helpers */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,56px); align-items: center; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.card img { border-radius: var(--radius-sm); margin: -4px -4px 14px; width: calc(100% + 8px); aspect-ratio: 4/3; object-fit: cover; }
.tag { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* cta / forms */
.cta { max-width: 640px; margin: 0 auto; text-align: center; }
.qform { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.qform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qform input, .qform textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); }
.qform input:focus, .qform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.qform button { background: var(--brand); color: var(--on); border: none; border-radius: var(--radius-pill); padding: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.qform button:hover { background: var(--brand-strong); }
.filewrap label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }

/* sub-page head (interior pages — a compact tinted banner) */
.pagehead { background: var(--tint); border-bottom: 1px solid var(--line); padding: clamp(36px,6vw,60px) 0; }
.pagehead h1 { max-width: 22ch; margin-bottom: 10px; }
.pagehead .lede { margin-top: 0; }

/* numbered process steps (how-it-works) */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .n { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--on); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }

/* material card (image + spec) */
.matcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.matcard img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.matcard .body { padding: 16px 18px 18px; }
.matcard h3 { margin: 0 0 2px; }
.matcard .thk { font-weight: 700; color: var(--brand-text); font-size: .92rem; }
.matcard .grade { font-size: .88rem; color: var(--muted); margin-top: 5px; }

/* spec / pricing tables */
.spec { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 10px; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec thead th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.spec tbody th { font-weight: 600; }
.spec td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* drag-drop upload zone (quote pages) */
.dropzone { border: 2px dashed color-mix(in srgb, var(--brand) 42%, var(--line)); border-radius: var(--radius); background: var(--tint); padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); }
.dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--bg)); }
.dropzone .dz-icon { width: 30px; height: 30px; color: var(--brand-text); margin: 0 auto 8px; }
.dropzone .dz-hint { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.dropzone strong { color: var(--brand-text); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dz-file { margin-top: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); display: none; }
.dz-file.show { display: block; }

/* live estimate panel (quote pages) */
.estimate { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 22px 24px; position: sticky; top: 80px; }
.estimate .lab { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.estimate .amount { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; color: var(--ink); line-height: 1.05; margin: 6px 0 2px; }
.estimate .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.estimate .erow { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 7px 0; border-top: 1px solid var(--line); }
.estimate .erow:first-of-type { border-top: 0; }
.estimate .note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.qgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,5vw,44px); align-items: start; }
.qfield { display: grid; gap: 6px; margin-bottom: 14px; }
.qfield label { font-weight: 700; font-size: .9rem; }
.qfield input, .qfield select, .qfield textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); }
.qfield input:focus, .qfield select:focus, .qfield textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* secondary-op add-ons (quote pages) */
.addons { border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); padding: 16px 18px; margin: 4px 0 16px; }
.addons > legend, .addons .addons-head { font-weight: 700; font-size: .95rem; padding: 0; }
.addons .addons-hint { color: var(--muted); font-size: .84rem; margin: 4px 0 12px; }
.addon { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.addon:first-of-type { border-top: 0; }
.addon .addon-check { flex: 1 1 auto; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.addon .addon-check input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.addon .addon-label { font-weight: 600; font-size: .92rem; }
.addon .addon-desc { color: var(--muted); font-size: .8rem; margin-top: 1px; }
.addon .addon-ctrl { flex: none; display: flex; align-items: center; gap: 6px; }
.addon .addon-ctrl input[type=number], .addon .addon-ctrl select { width: 96px; font: inherit; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); }
.addon .addon-ctrl input[type=number] { width: 76px; }
.addon .addon-ctrl input:focus, .addon .addon-ctrl select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.addon .addon-unit { color: var(--muted); font-size: .8rem; }
.estimate .erow.erow-op { font-size: .86rem; color: var(--muted); padding: 5px 0; }
.estimate .erow.erow-op span:first-child::before { content: "+ "; }
.estimate .erow.erow-opsubtotal { font-weight: 700; }

/* footer */
footer { background: var(--ink); color: color-mix(in srgb, #fff 78%, var(--ink)); padding: 44px 0; font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer a { color: color-mix(in srgb, #fff 70%, var(--ink)); }
footer .fname { color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 6px; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 9px; }
  .nav-links a.btn { margin: 6px 4px; justify-content: center; }
  .navtoggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .qform .row { grid-template-columns: 1fr; }
  .qgrid { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr; }
  .estimate { position: static; }
}

/* ── prose + callout (additive — used by trust/about pages) ────────── */
.prose { max-width: 64ch; margin: 0 auto; }
.prose h2 { margin-top: 0; }
.prose h3 { margin: 28px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.callout { border-left: 4px solid var(--brand); background: var(--tint); border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0; }
.callout strong { color: var(--ink); }
.callout p { margin: 0; color: var(--ink); }

/* ── testimonials / reviews (token-driven, themes per brand) ───────── */
.testimonials { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tcard .stars { display: inline-flex; gap: 2px; color: var(--brand); margin-bottom: 12px; }
.tcard .stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.tcard blockquote { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.tcard blockquote::before { content: "\201C"; }
.tcard blockquote::after { content: "\201D"; }
.tcard .who { margin-top: auto; font-size: .9rem; }
.tcard .who strong { display: block; color: var(--ink); font-weight: 700; }
.tcard .who span { color: var(--muted); }
.rep-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 22px auto 0; max-width: 60ch; }
/* Google rating strip — real 5.0 rating + link out (replaces the old testimonials). */
.google-rating { text-align: center; margin: 8px auto 0; max-width: 60ch; }
.google-rating .gr-stars { display: inline-flex; gap: 3px; color: var(--brand); vertical-align: -3px; }
.google-rating .gr-stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.google-rating .gr-score { font-weight: 800; color: var(--ink); }
.google-rating a { font-weight: 700; color: var(--brand-text); }
.google-rating p { margin: 6px 0 0; }

/* ── why-choose-us USP rows + at-a-glance stats ────────────────────── */
.usp { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.usp .ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand-text); display: grid; place-items: center; }
.usp .ic svg { width: 22px; height: 22px; }
.usp h3 { margin: 2px 0 6px; }
.usp p { margin: 0; color: var(--muted); }
.statrow { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.statrow .stat .big { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--brand-text); line-height: 1; font-family: var(--font-display); }
.statrow .stat .lab { color: var(--muted); margin-top: 8px; font-size: .95rem; }


/* ── accessibility: skip link, focus-visible, reduced motion ───────── */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--brand); color: var(--on); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── trust bar: reusable conversion strip under hero / shop head (additive) ──
 * Brand-neutral; uses only tokens present in every bundle (--line, --tint,
 * --brand, --brand-strong, --maxw via .wrap). Pure presentational, no JS. */
.trustbar { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--tint) 45%, #fff); }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; padding-block: 14px; margin: 0; list-style: none; }
.trustbar li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--brand-strong); }
.trustbar svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trustbar--inshop { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 22px; }
.trustbar--inshop .wrap { padding-inline: 0; }
@media (max-width: 560px) { .trustbar li { font-size: .82rem; } .trustbar .wrap { gap: 8px 16px; } }

.logo{gap:0}
.brandlogo{height:38px;width:auto;display:block}
@media(max-width:520px){.brandlogo{height:32px}}
