/* JD Fire Protection — design system
   Graphite / steel / signal red. No frills. */

@import url('fonts.css');

:root {
  --bg: #141618;
  --panel: #1d2023;
  --panel-2: #26292d;
  --line: #34383d;
  --steel: #8b95a0;
  --steel-dim: #5b646c;
  --text: #e8eaec;
  --mut: #9aa4ae;
  --red: #e8402a;
  --red-2: #ff5340;
  --amber: #f0a531;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red-2); }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 6vw, 72px); text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
h3 { font-size: 22px; letter-spacing: 0.04em; }
h1 em, h2 em, .logo-t em, .f-logo em {
  font-style: normal;
  color: var(--red-2);
}
p { color: var(--mut); margin-bottom: 14px; }
.lead { font-size: 19px; color: #c4cad0; max-width: 640px; }
.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--red-2);
  margin-bottom: 10px;
}
.kicker a { color: inherit; }
.kicker a:hover { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-t {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 6px 0;
}
.main-nav a:not(.btn):hover { color: var(--text); }
.main-nav a.active { color: var(--text); box-shadow: 0 2px 0 var(--red); }
.nav-cta { margin-left: 8px; padding: 9px 18px; font-size: 15px; }
.has-sub { position: relative; }
.main-nav .sub {
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  min-width: 230px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.main-nav .sub li { padding: 0; }
.main-nav .sub a {
  display: block;
  padding: 9px 16px;
  letter-spacing: 0.06em;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 16px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--steel); color: var(--red-2); }
.btn-wide { width: 100%; }

/* ---------- hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(232, 64, 42, 0.08), transparent 60%),
    linear-gradient(180deg, #16181b 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 48px;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 40px; flex-wrap: wrap; }
.hero-stats {
  list-style: none;
  display: flex;
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stats span { font-size: 12.5px; color: var(--steel); letter-spacing: 0.04em; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; max-height: 420px; }
.hero-visual-caption {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 4px;
}
.hero-marquee {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 0 0 18px;
  flex-wrap: wrap;
}
.hero-marquee span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--steel-dim);
  border: 1px solid var(--line);
  padding: 5px 12px;
  margin: 18px 8px 0 0;
  background: var(--panel);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(232, 64, 42, 0.07), transparent 60%),
    var(--panel);
  padding: 58px 0 48px;
}
.page-hero h1 { margin-bottom: 14px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-dark { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 34px; }

/* ---------- category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px 22px 22px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 3px;
  background: var(--red);
  transition: width 0.25s;
}
.cat-card:hover { border-color: var(--steel-dim); transform: translateY(-3px); }
.cat-card:hover::before { width: 100%; }
.cat-card h3 { margin: 16px 0 6px; }
.cat-card > p { font-size: 14.5px; }
.cat-ico svg { width: 46px; height: 46px; }
.cat-meta {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: auto;
  padding-top: 16px;
}
.cat-go {
  color: var(--red-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.cat-card.big p { font-size: 15px; }

/* ---------- why / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list.wide { display: grid; grid-template-columns: 1fr 1fr; }
.feat {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}
.feat-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--red-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
  height: fit-content;
}
.feat h4 { margin-bottom: 4px; }
.feat p { font-size: 14.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); }
.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-in h2 { margin: 0; }

/* ---------- category intro ---------- */
.cat-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px;
  margin-bottom: 30px;
}
.cat-intro-art svg { width: 100%; max-height: 300px; }
.cat-intro-txt h2 { margin-bottom: 12px; }
.fab-note {
  border: 1px dashed var(--line);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  margin-bottom: 28px;
  background: var(--panel);
}
.fab-note p { margin: 0; color: #c4cad0; }

/* ---------- product cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.prod-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.prod-card:hover { border-color: var(--steel-dim); transform: translateY(-3px); }
.prod-art {
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(232, 64, 42, 0.05), transparent 70%),
    var(--panel-2);
  border-bottom: 1px solid var(--line);
  padding: 14px;
}
.prod-art svg { width: 100%; height: 170px; }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-code {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--red-2);
}
.prod-body h3 { margin: 6px 0 10px; font-size: 20px; }
.prod-specs { list-style: none; margin: 0 0 14px; }
.prod-specs li {
  font-size: 14px;
  color: var(--steel);
  padding: 3px 0;
  border-bottom: 1px dashed #2b2f33;
}
.prod-specs li:last-child { border-bottom: 0; }
.prod-cta {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s;
}
.prod-card:hover .prod-cta { color: var(--red-2); }
.prod-card.mini { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.prod-card.mini h3 { margin: 0; font-size: 17px; }
.prod-card.mini .prod-cta { margin: 0 0 0 auto; white-space: nowrap; }
.mini-grid { grid-template-columns: 1fr; margin-top: 10px; gap: 12px; }

/* ---------- product page ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.prod-detail-art { position: relative; }
.prod-detail-art svg { width: 100%; max-height: 380px; }
.fig-caption {
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dim);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.prod-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14.5px;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--red);
  background: var(--panel-2);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid #2b2f33;
  vertical-align: top;
}
.spec-table th {
  font-weight: 500;
  color: var(--steel);
  white-space: nowrap;
  width: 38%;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-note { font-size: 13.5px; margin-top: 12px; }

/* ---------- forms ---------- */
.quote-form-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 18px; }
.form-row { display: flex; flex-direction: column; }
.form-row label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}
.req { color: var(--red-2); }
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 13px;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 0;
  border-color: var(--red);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--mut);
  margin: 18px 0;
}
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent a { color: var(--red-2); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 15px; min-height: 24px; }
.form-status.ok { color: #7fbf7f; }
.form-status.err { color: var(--red-2); }

.quote-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.aside-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}
.aside-card p { margin-bottom: 6px; color: #c4cad0; }
.aside-card .muted { color: var(--steel); font-size: 13.5px; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 18px 52px;
  color: var(--mut);
  font-size: 15px;
}
.steps li span {
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red-2);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.steps li:last-child { padding-bottom: 0; }

/* ---------- about ---------- */
.about-grid { align-items: start; }
.about-txt h2 { margin-top: 30px; }
.about-txt h2:first-child { margin-top: 0; }
.about-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: sticky;
  top: 90px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  text-align: left;
}
.stat-card strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  color: var(--red-2);
  display: block;
  line-height: 1;
}
.stat-card span { font-size: 13px; color: var(--steel); letter-spacing: 0.05em; }

/* ---------- legal / misc ---------- */
.legal-txt { max-width: 760px; }
.legal-txt h2 { font-size: 22px; margin-top: 26px; }
.center404 { text-align: center; padding: 90px 0; }
.e404 {
  font-size: clamp(80px, 18vw, 190px);
  color: var(--red);
  line-height: 0.9;
  margin: 10px 0 18px;
}
.contact-card p { color: #c4cad0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 3px solid var(--red);
  background: #101214;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 24px 34px;
}
.f-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
}
.f-tag { font-size: 14.5px; max-width: 300px; }
.site-footer h4 {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--steel);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: var(--mut); font-size: 14.5px; }
.site-footer ul a:hover { color: var(--red-2); }
.f-contact li { color: var(--mut); font-size: 14.5px; }
.f-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 26px;
  font-size: 13px;
  color: var(--steel-dim);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .product-grid, .cat-intro { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list.wide { grid-template-columns: 1fr; }
  .about-aside { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav a:not(.btn) { display: block; padding: 10px 0; font-size: 19px; }
  .main-nav .sub { position: static; display: flex; border: 0; padding-left: 16px; min-width: 0; }
  .nav-cta { margin: 14px 0 0; }
  .cat-grid, .cat-grid.cols2, .prod-grid, .form-grid, .footer-grid, .about-aside { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .quote-form-block { padding: 22px 18px; }
  .cat-intro { padding: 20px; }
}
