/* ============================================================
   Kades Construction - style.css
   Charcoal steel with safety orange: a site that looks like it
   belongs on a building site, but finished like a showroom.
   Plain, commented CSS so the owner can edit it by hand.
   ============================================================ */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f3f1ec;
  color: #26292e;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height: 1.22; letter-spacing: -.01em; }
a { color: #c24e0a; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, #17191d 0%, #2b3037 62%, #3d434d 100%);
  color: #fff;
  border-bottom: 4px solid #f26522;
  position: sticky; top: 0; z-index: 20;
}
.header-in { max-width: 1340px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand .name { font-size: 1.45rem; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; }
.brand .name em { color: #ff8a3c; font-style: normal; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #e8e9eb; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: .95rem; }
.main-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.main-nav a.calc-link { background: linear-gradient(135deg, #ff7d2a, #e64c0a); color: #fff; font-weight: 700; }
.main-nav a.calc-link:hover { filter: brightness(1.1); }

/* ---------- Layout ---------- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.hero {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px),
    linear-gradient(150deg, #1b1e23 0%, #2e333b 55%, #46352a 130%);
  color: #fff; padding: 54px 0 60px; margin-bottom: 34px;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 12px; max-width: 660px; font-weight: 800; }
.hero h1 .accent { color: #ff8a3c; }
.hero p { max-width: 580px; color: #d7d9dd; font-size: 1.08rem; margin: 0 0 22px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } }

/* ---------- Calculator cards ---------- */
.calc-card {
  background: #fff; border-radius: 16px; padding: 24px; color: #26292e;
  box-shadow: 0 18px 40px rgba(20, 20, 25, .30); border-top: 5px solid #f26522;
}
.calc-card h2, .calc-card h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: #4a4f57; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1.6px solid #d4d0c8; border-radius: 9px; font-size: 1rem; background: #fdfcf9;
}
.field input:focus, .field select:focus { outline: 2px solid #ffb020; border-color: #f26522; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row, .field-row3 { grid-template-columns: 1fr; } }
.unit-row { display: grid; grid-template-columns: 1fr 108px; gap: 8px; }
.btn {
  display: inline-block; background: linear-gradient(135deg, #ff7d2a, #e64c0a); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.result-box { background: #fdf3ea; border: 1.5px dashed #e8a06c; border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.result-box:empty { display: none; }
.result-box .big { font-size: 1.65rem; font-weight: 800; color: #1d2025; }
.result-lines { margin: 10px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.result-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 1px solid #f3ddc9; }
.result-lines li:last-child { border-bottom: 0; }
.fineprint { font-size: .83rem; color: #71767e; margin-top: 12px; }

/* ---------- Sections and cards ---------- */
.section { padding: 12px 0 30px; }
.section h2 { font-size: 1.65rem; margin: 8px 0 6px; }
.section .lede { color: #5a5e66; max-width: 760px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid #e5e1d8; border-radius: 14px; padding: 20px;
  box-shadow: 0 4px 14px rgba(30, 30, 35, .06);
}
.card h3 { margin: 0 0 7px; font-size: 1.12rem; }
.card p { margin: 0 0 12px; color: #5a5e66; font-size: .94rem; }
.card .openbtn {
  display: inline-block; background: linear-gradient(135deg, #33383f, #1d2025); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.card .openbtn:hover { background: linear-gradient(135deg, #ff7d2a, #e64c0a); }
.cat-block { margin-bottom: 8px; }
.cat-block h3 { font-size: 1.25rem; margin: 22px 0 4px; color: #1d2025; }
.cat-block .cat-lede { color: #5a5e66; margin: 0 0 14px; max-width: 760px; }
.chip {
  display: inline-block; background: #ffe9d9; color: #b34a08; border-radius: 999px;
  padding: 2px 10px; font-size: .78rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em;
}
.prose { max-width: 780px; }
.prose p { color: #3c4046; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 6px 0 4px; }
.stat { background: #22262c; color: #fff; border-radius: 14px; padding: 18px; }
.stat .n { font-size: 1.9rem; font-weight: 800; color: #ff8a3c; }
.stat .t { color: #cfd2d6; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #17191d; color: #c9ccd1; margin-top: 44px; padding: 34px 0 26px; }
.site-footer a { color: #ff8a3c; text-decoration: none; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid #33373e; margin-top: 24px; padding-top: 16px; font-size: .88rem; color: #9ba0a7; }
