:root {
  --navy: #12212f;
  --navy-2: #1b3145;
  --orange: #f2620f;
  --orange-dark: #d14f05;
  --yellow: #ffb703;
  --bg: #f6f7f8;
  --card: #ffffff;
  --text: #24313d;
  --muted: #5d6c79;
  --line: #e2e6ea;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 33, 47, 0.08);
  --shadow-lg: 0 10px 30px rgba(18, 33, 47, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.topbar {
  background: var(--navy);
  color: #cfd8e0;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex; justify-content: center; align-items: center;
  padding-top: 6px; padding-bottom: 6px; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: var(--yellow); text-decoration: none; }

header.site {
  background: #0a0a0b;
  border-bottom: 3px solid var(--orange);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 74px; width: auto; }
@media (max-width: 900px) { .logo img { height: 56px; } }

nav.main { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: #e6e9ec; text-decoration: none; font-weight: 600;
  padding: 8px 13px; border-radius: 6px; font-size: 0.95rem;
}
nav.main a:hover { background: rgba(255,255,255,0.09); color: var(--yellow); }
nav.main a.active { color: var(--orange); }
nav.main a.cta {
  background: var(--orange); color: #fff; margin-left: 6px;
}
nav.main a.cta:hover { background: var(--orange-dark); }
nav.main a.cta.active { color: #fff; }

.qbadge {
  display: none; background: #fff; color: var(--orange-dark);
  border-radius: 999px; padding: 0 7px; font-size: 0.8rem; font-weight: 800;
  margin-left: 4px; min-width: 20px; text-align: center;
}

/* always-visible cart shortcut on mobile (nav collapses behind the hamburger) */
.cart-link { display: none; position: relative; color: #fff; margin-left: auto; align-items: center; }
.cart-link .qbadge {
  position: absolute; top: -7px; right: -11px; margin-left: 0;
  background: var(--orange); color: #fff; border: 2px solid #0a0a0b;
}
@media (max-width: 900px) { .cart-link { display: flex; } }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: #fff; cursor: pointer; }

/* ---------- hazard stripe ---------- */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 18px,
    var(--navy) 18px 36px
  );
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--navy);
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.38;
}
.hero .container {
  position: relative; padding-top: 92px; padding-bottom: 92px; max-width: 900px;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 800; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p.lead { margin: 18px auto 30px; font-size: 1.15rem; color: #dbe3ea; max-width: 640px; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { border: 2px solid #fff; color: #fff; margin-left: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 600px) {
  .hero .btn { display: block; width: 100%; margin: 0 0 12px; }
  .hero .btn-ghost { margin-left: 0; }
}

/* ---------- trust bar ---------- */
.trust {
  background: var(--navy-2); color: #cfd8e0;
}
.trust .container {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 16px; font-size: 0.92rem; font-weight: 600;
}
.trust span::before { content: "✓ "; color: var(--yellow); font-weight: 800; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: #fff; }
.kicker {
  color: var(--orange-dark); font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.8rem;
}
h2.title { font-size: 2rem; color: var(--navy); margin: 6px 0 10px; }
p.sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

/* ---------- category grid ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { height: 160px; background-size: cover; background-position: center; }
.card .body { padding: 16px 18px 18px; flex: 1; }
.card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
.card p { font-size: 0.88rem; color: var(--muted); }
.card .from { color: var(--orange-dark); font-weight: 700; font-size: 0.9rem; margin-top: 8px; display: block; }

/* ---------- product tables ---------- */
.cat { margin-bottom: 56px; }
.cat-head {
  display: flex; gap: 24px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap;
}
.cat-head img {
  width: 210px; height: 130px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-head h2 { color: var(--navy); font-size: 1.5rem; }
.cat-head .rule { flex: 1; height: 4px; background: var(--orange); border-radius: 2px; min-width: 60px; }

table.products {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
table.products th, table.products td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
table.products th {
  background: var(--navy); color: #fff; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px;
}
table.products tr:last-child td { border-bottom: 0; }
table.products td.price { white-space: nowrap; font-weight: 700; color: var(--orange-dark); }
table.products td:first-child { font-weight: 600; color: var(--navy); }
table.products td.desc { color: var(--muted); }

.table-wrap, #quote-items { overflow-x: auto; }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.svc {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border-top: 4px solid var(--orange);
}
.svc h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.1rem; }
.svc p { color: var(--muted); font-size: 0.93rem; }

/* ---------- split ---------- */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 340px; object-fit: cover; }
.split ul { margin: 16px 0 24px 20px; color: var(--muted); }
.split li { margin-bottom: 8px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; text-align: center; padding: 52px 0; }
.cta-band h2 { font-size: 1.9rem; margin-bottom: 8px; }
.cta-band p { opacity: 0.92; margin-bottom: 24px; }
.cta-band .btn { background: var(--navy); color: #fff; }
.cta-band .btn:hover { background: var(--navy-2); }

/* ---------- forms ---------- */
form.quote { display: grid; gap: 16px; max-width: 620px; }
form.quote label { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
form.quote input, form.quote select, form.quote textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; margin-top: 5px;
}
form.quote input:focus, form.quote select:focus, form.quote textarea:focus {
  outline: 2px solid var(--orange); border-color: transparent;
}

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #b9c5cf; font-size: 0.92rem; }
footer.site .cols {
  display: grid; gap: 36px; grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 52px 0 36px;
}
footer.site h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
footer.site a { color: #b9c5cf; text-decoration: none; display: block; margin-bottom: 7px; }
footer.site a:hover { color: var(--yellow); }
footer.site .fine {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #0a0a0b; flex-direction: column; align-items: stretch;
    padding: 10px 20px 18px; box-shadow: var(--shadow-lg);
  }
  nav.main.open { display: flex; }
  nav.main a.cta { margin-left: 0; text-align: center; }
}

/* ---------- product quote controls ---------- */
.pname { font-weight: 700; color: var(--navy); min-width: 200px; }
.controls-wrap .add-btn { margin-left: auto; }
.pdesc { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 3px; max-width: 340px; }
.pdesc-cell { color: var(--muted); font-size: 0.9rem; }
.controls-wrap { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.controls-wrap .opt {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.controls-wrap select, .controls-wrap .qty, .quote-table .qty {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 0.9rem; background: #fff; max-width: 320px;
}
.controls-wrap select:focus, .controls-wrap .qty:focus { outline: 2px solid var(--orange); border-color: transparent; }
.controls-wrap .qty, .quote-table .qty { width: 72px; }
.add-btn {
  background: var(--orange); color: #fff; border: 0; border-radius: 7px;
  padding: 9px 16px; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.add-btn:hover { background: var(--orange-dark); }
.add-btn.added { background: #1d7a3d; }
.q-remove {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); cursor: pointer; padding: 6px 10px; font-size: 0.9rem;
}
.q-remove:hover { border-color: #c33; color: #c33; }

/* stack product rows on phones so nothing hides off-screen */
@media (max-width: 720px) {
  table.products:not(.quote-table),
  table.products:not(.quote-table) tbody,
  table.products:not(.quote-table) tr,
  table.products:not(.quote-table) td { display: block; width: 100%; }
  table.products:not(.quote-table) tr:first-child { display: none; } /* header row */
  table.products:not(.quote-table) tr.prow { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.products:not(.quote-table) tr.prow:last-child { border-bottom: 0; }
  table.products:not(.quote-table) td { border: 0; padding: 0; }
  .pname { min-width: 0; margin-bottom: 10px; }
  .pdesc { max-width: none; }
  .controls-wrap { gap: 10px; }
  .controls-wrap .opt { width: 100%; }
  .controls-wrap select { width: 100%; max-width: none; }
  .controls-wrap .opt-qty { width: auto; flex: 0 0 auto; }
  .controls-wrap .add-btn { flex: 1; margin-left: 0; }
}

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 46px 0; }
.page-hero h1 { font-size: 2.1rem; }
.page-hero p { color: #c6d1db; max-width: 640px; margin-top: 6px; }
