/* Swiftwater Wildfire — site styles
   Layout: rugged equipment catalogue. Dark charcoal bands for impact, warm paper
   for reading, one burnt-orange accent for actions. Single deliberate light look. */
:root {
  --ink: #1F1E1B;          /* charcoal — headers, dark bands, body text */
  --ink-2: #2A2825;
  --paper: #F4F2EE;        /* page ground */
  --stone: #E9E5DD;        /* secondary bands */
  --white: #FFFFFF;        /* cards, forms */
  --line: #DDD7CC;
  --line-dark: #4A463F;
  --muted: #5C564C;
  --on-dark: #F4F2EE;
  --on-dark-2: #D6D1C7;
  --on-dark-3: #BEB8AC;
  --accent: #B33E0F;       /* burnt orange — buttons, links, labels */
  --accent-hover: #8A2F0A;
  --accent-soft: #E8A27F;  /* accent on dark grounds */
  --warn-bg: #FBEDE6;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
  --gutter: 24px;
  --section: 96px;
  color-scheme: light;
}

*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; }
h3 { font-size: 30px; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.band-dark { background: var(--ink); color: var(--on-dark); }
.band-stone { background: var(--stone); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.intro { max-width: 46em; margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; }
.grid-2.top { align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.cols-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.grid-2 > *, .cards > *, .cols-4 > * { min-width: 0; }

.eyebrow { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.band-dark .eyebrow { color: var(--accent-soft); }
.lede { font-size: 20px; max-width: 36em; }
.band-dark .lede, .band-dark .on-dark-2 { color: var(--on-dark-2); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Header */
.site-header { background: var(--ink); color: var(--on-dark); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: 0.04em; line-height: 1; }
.brand:hover { color: var(--on-dark); }
.brand img { height: 44px; width: auto; }
.brand span span { color: var(--accent-soft); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 17px; }
.nav a { color: var(--on-dark); text-decoration: none; }
.nav a:hover { color: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-soft); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 4px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.band-dark .btn-outline { border-color: #8C867B; color: var(--on-dark); }
.band-dark .btn-outline:hover { background: var(--on-dark); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 10px 20px; color: var(--white); }

/* Hero */
.hero .wrap { padding-block: 72px 104px; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.crumb { font-size: 15px; color: var(--muted); padding-top: 24px; }
.crumb a { color: inherit; }
.band-dark .crumb { color: var(--on-dark-3); }
.subtitle { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-soft); margin-top: -8px; }

/* At-a-glance and spec strips */
.glance { background: var(--stone); border-bottom: 1px solid #D8D2C6; }
.glance .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 24px; padding-block: 28px; font-weight: 600; font-size: 17px; }
.specbar .wrap { padding-block: 36px; }
.stat-label { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.stat-note { font-size: 16px; color: #4A453D; }

/* Product cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-body p { font-size: 17px; }
.card-kicker { display: flex; gap: 10px; align-items: center; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 600; }
.tag-new { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; background: var(--accent); color: var(--white); padding: 2px 8px; border-radius: 3px; }

/* Ruled lists */
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { border-top: 1px solid var(--line); padding-block: 12px; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.band-dark .rule-list li { border-color: var(--line-dark); }
.spec-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px 24px; font-size: 17px; }
.spec-grid li { border-top: 1px solid var(--line-dark); padding-top: 12px; }
.spec-grid strong { display: block; color: var(--on-dark); }
.spec-grid span { color: var(--on-dark-3); }

/* Missions */
.mission { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--accent); padding-top: 20px; }
.mission p { font-size: 17px; }
.band-dark .mission p { color: var(--on-dark-2); }

/* Feature tiles */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 26px; }
.feature p { font-size: 16px; }

/* Downloads */
.downloads { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.downloads li { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.downloads a { font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 17px; background: var(--white); border: 1px solid var(--line); }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.table thead tr { background: var(--stone); }
.table thead th { font-family: var(--display); font-size: 24px; }
.table tbody tr { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 600; }
.table-dark { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 17px; }
.table-dark th, .table-dark td { padding: 14px 12px; text-align: left; }
.table-dark thead tr { border-bottom: 2px solid var(--line-dark); }
.table-dark tbody tr { border-bottom: 1px solid #3A3731; }
.table-dark .off { color: var(--on-dark-3); }

/* RAID deployment modes */
.mode { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.mode > * { min-width: 0; }
.mode img { width: 100%; height: auto; }
.mode-num { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--accent); }
.mode h3 { font-size: 34px; }
.mode p { font-size: 17px; }
.mode .kit { font-size: 15px; color: var(--muted); }
.warn { font-size: 15px; background: var(--warn-bg); border-radius: 4px; padding: 10px 14px; }

/* Figures and galleries */
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
figcaption { font-size: 17px; }
.band-dark figcaption { color: var(--on-dark-2); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--ink); border-radius: 4px; padding: 8px 14px; font-weight: 600; font-size: 16px; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; font-size: 17px; }
.parts > div { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; }
.parts .btn { justify-content: center; }

/* Quote form */
.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #A8A194; border-radius: 4px; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 4px 18px; font-size: 16px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 15px; color: var(--muted); }
.form-note[data-state="info"] { background: var(--warn-bg); color: var(--ink); padding: 10px 14px; border-radius: 4px; }
.contact-block { display: flex; flex-direction: column; gap: 6px; font-size: 17px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-3); font-size: 15px; }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--on-dark); }

@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 64px; }
  body { font-size: 17px; }
  .hero .wrap { padding-block: 40px 64px; }
  .brand { font-size: 23px; }
  .brand img { height: 36px; }
  .nav { gap: 6px 18px; font-size: 16px; }
  .quote-form, .mode { padding: 20px; }
  .grid-2 { gap: 36px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.specbar .wrap { font-weight: 400; }
.banner-img { width: 100%; height: clamp(240px, 42vw, 560px); object-fit: cover; object-position: 50% 55%; }
.drawing-tile { background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; max-width: 100%; }
.drawing-tile img { width: 72%; height: auto; }
.portrait { aspect-ratio: 4 / 5; }
