/* =========================================================================
   Somersites master template — style.css
   Single stylesheet. EVERY colour/space/type value is a custom property in the
   :root block below, so a per-site palette swap only touches :root.
   System font stack only. Zero external requests.
   ========================================================================= */

:root {
  /* ---- PALETTE (swap this block per site — see docs/DESIGN.md) ---- */
  --c-bg:            #ffffff;
  --c-surface:       #f4f6f7;   /* alt section background */
  --c-surface-2:     #e9edef;   /* chips, table stripes */
  --c-line:          #d3d9de;   /* hairlines */
  --c-line-strong:   #b7c0c7;
  --c-heading:       #1b2228;   /* steel near-black */
  --c-body:          #39424b;   /* body text */
  --c-muted:         #57626c;   /* secondary text (AA on white) */
  --c-accent:        #9c3f0e;   /* single accent — burnt steel orange (site-specific shade) */
  --c-accent-ink:    #7e330b;   /* accent hover / accent-as-text */
  --c-accent-contrast:#ffffff;  /* text on accent */
  --c-dark:          #1b2228;   /* dark bands (header shadow, footer) */
  --c-dark-body:     #cdd4da;   /* text on dark */
  --c-dark-muted:    #8b959d;
  --c-focus:         #9c3f0e;   /* focus ring — reuses accent */
  --ribbon-bg:       #14181c;
  --ribbon-fg:       #e7eaed;

  /* ---- TYPE ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fw-normal: 400;
  --fw-med: 500;
  --fw-bold: 700;

  /* ---- SPACE / LAYOUT ---- */
  --maxw: 1120px;
  --gutter: 20px;
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(20,24,28,.06), 0 8px 24px rgba(20,24,28,.06);
}

/* ========================= Reset / base ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* belt-and-braces against horizontal scroll */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-ink); }
h1, h2, h3 { color: var(--c-heading); line-height: 1.15; margin: 0 0 var(--sp-4); font-weight: var(--fw-bold); letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-4); }
ul { margin: 0; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-heading); color: #fff; padding: var(--sp-3) var(--sp-4);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-accent-ink); font-weight: var(--fw-med); margin: 0 0 var(--sp-3);
}

/* ========================= Buttons ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: var(--fw-med); text-decoration: none; cursor: pointer;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius);
  border: 1px solid transparent; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { padding: 14px var(--sp-6); font-size: 17px; }
.btn--accent { background: var(--c-accent); color: var(--c-accent-contrast); }
.btn--accent:hover { background: var(--c-accent-ink); }
.btn--accent:focus-visible { outline-color: var(--c-heading); }
.btn--ghost { background: transparent; color: var(--c-heading); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-heading); background: var(--c-surface); }

/* ========================= Preview ribbon ========================= */
.ribbon { background: var(--ribbon-bg); color: var(--ribbon-fg); font-size: 13.5px; }
.ribbon__inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--sp-2) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4);
}
.ribbon__text { color: var(--ribbon-fg); }
.ribbon__text strong { color: #fff; font-weight: var(--fw-med); }
.ribbon__links { display: inline-flex; align-items: center; gap: var(--sp-4); }
.ribbon__claim { color: #fff; font-weight: var(--fw-med); text-decoration: underline; text-underline-offset: 3px; }
.ribbon__brand { color: var(--c-dark-muted); text-decoration: none; }
.ribbon__brand:hover { color: var(--ribbon-fg); }

/* ========================= Header ========================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--sp-3) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4);
}
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.brand__name { font-weight: var(--fw-bold); font-size: 20px; color: var(--c-heading); letter-spacing: -0.02em; }
.brand__co { font-family: var(--font-mono); font-size: 13px; color: var(--c-accent-ink); text-transform: uppercase; letter-spacing: 0.08em; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.site-nav > a { color: var(--c-body); text-decoration: none; font-weight: var(--fw-med); font-size: 15.5px; }
.site-nav > a:not(.btn):hover { color: var(--c-accent-ink); }
.nav-phone { flex-direction: column; align-items: flex-start; line-height: 1.1; padding: 8px 16px; }
.nav-phone__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: .85; }
.nav-phone__num { font-weight: var(--fw-bold); font-size: 15px; }

.nav-toggle {
  display: none; align-items: center; gap: var(--sp-2); background: transparent;
  border: 1px solid var(--c-line-strong); border-radius: var(--radius); padding: 8px 12px;
  font: inherit; font-weight: var(--fw-med); color: var(--c-heading); cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--c-heading); position: relative;
}
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after  { position: absolute; top: 6px; }

/* ========================= Layout helpers ========================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-9) var(--gutter); }
.section--alt { max-width: none; background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section__title { font-size: clamp(26px, 4vw, 34px); }
.section__lead { font-size: 18px; color: var(--c-muted); margin: 0; }

/* ========================= Hero ========================= */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--c-line);
  background: var(--c-bg) url(assets/grid.svg) top left/48px 48px; }
.hero__grid { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; max-width: 420px;
  color: var(--c-line-strong); opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
  mask-image: linear-gradient(to left, #000 55%, transparent); }
.hero__art { width: 100%; height: 100%; }
@media (max-width: 560px) { .hero__grid { opacity: .3; } }
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: var(--sp-9) var(--gutter); }
.hero__title { font-size: clamp(32px, 6.5vw, 56px); max-width: 15ch; margin-bottom: var(--sp-5); }
.hero__sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--c-muted); max-width: 54ch; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ========================= Trust strip ========================= */
.trust { background: var(--c-dark) url(assets/diagonal.svg) top left/28px 28px; }
.trust__list {
  list-style: none; max-width: var(--maxw); margin: 0 auto; padding: var(--sp-6) var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4);
}
.trust__item { display: flex; flex-direction: column; gap: 2px; }
.trust__k { font-family: var(--font-mono); font-size: 22px; font-weight: var(--fw-bold); color: #fff; letter-spacing: -0.01em; }
.trust__v { font-size: 13.5px; color: var(--c-dark-muted); }

/* ========================= Cards ========================= */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.card { background: var(--c-bg); border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); border-radius: var(--radius-lg); padding: var(--sp-5); }
.section--alt .card { background: #fff; }
.card__title { font-size: 19px; margin-bottom: var(--sp-2); }
.card__body { margin: 0; color: var(--c-muted); font-size: 15.5px; }

/* ========================= Spec table ========================= */
.specs__title { font-size: 20px; margin-bottom: var(--sp-4); }
.specs__scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.spec-table th, .spec-table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-table thead th {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-heading); background: var(--c-surface-2); border-bottom: 2px solid var(--c-line-strong);
}
.spec-table tbody th { font-weight: var(--fw-bold); color: var(--c-heading); white-space: nowrap; }
.spec-table td { color: var(--c-muted); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: none; }

/* ========================= About ========================= */
.about { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.about__head .section__title { margin-bottom: 0; }
.about__body p:last-child { margin-bottom: 0; }
.about__body p { font-size: 18px; }

/* ========================= Chips ========================= */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; }
.chips li {
  font-family: var(--font-mono); font-size: 14px; color: var(--c-heading);
  background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 14px;
}

/* ========================= Contact + form ========================= */
.contact { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.contact__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-6) 0 0; }
.contact__facts dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: 2px; }
.contact__facts dd { margin: 0; color: var(--c-heading); font-weight: var(--fw-med); }
.contact__facts a { color: var(--c-heading); text-decoration: none; }
.contact__facts a:hover { color: var(--c-accent-ink); }

.rfq { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow); }
.section--alt .rfq { background: #fff; }
.rfq__row { margin-bottom: var(--sp-4); }
.rfq__two { display: grid; grid-template-columns: 1fr; gap: 0 var(--sp-4); }
.rfq label { display: block; font-weight: var(--fw-med); font-size: 15px; color: var(--c-heading); margin-bottom: 6px; }
.req { color: var(--c-accent-ink); margin-left: 2px; }
.rfq input, .rfq textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--c-heading); background: var(--c-bg);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius); padding: 11px 12px;
}
.rfq textarea { resize: vertical; }
.rfq input:focus-visible, .rfq textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-accent); }
.rfq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rfq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.rfq__note { margin: 0; font-size: 13.5px; color: var(--c-muted); }
.rfq__status { margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); font-weight: var(--fw-med); }
.rfq__status--ok { background: #eef4ee; border: 1px solid #bcd6bd; color: #1f5225; }
.rfq__status--err { background: #fbeeec; border: 1px solid #e2b7ae; color: #7a2b1c; }

/* ========================= Footer ========================= */
.site-footer { background: var(--c-dark); color: var(--c-dark-body); }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--sp-8) var(--gutter);
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 0 0 var(--sp-1); font-size: 15px; }
.site-footer__name { font-weight: var(--fw-bold); color: #fff; font-size: 17px; }
.site-footer__credit { color: var(--c-dark-muted); }
.site-footer__year { color: var(--c-dark-muted); }

/* ========================= Responsive: tablet ========================= */
@media (min-width: 640px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rfq__two { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: repeat(3, 1fr); }
}

/* ========================= Responsive: desktop ========================= */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: minmax(0, 34ch) 1fr; gap: var(--sp-8); align-items: start; }
  .contact { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); align-items: start; }
  .hero__inner { padding-block: 120px; }
}

/* ========================= JS-enhanced mobile nav ========================= */
.js .nav-toggle { display: none; }
@media (max-width: 767px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); padding: var(--sp-3) var(--gutter) var(--sp-5);
  }
  .site-header__inner { position: relative; }
  .js .site-nav[data-open="true"] { display: flex; }
  .js .site-nav > a { padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); font-size: 17px; }
  .js .nav-phone { flex-direction: row; justify-content: center; margin-top: var(--sp-3); border-bottom: none; }
}
