/* =====================================================================
   Kades Fitness - design
   Palette: charcoal ink (#17181c to #23252d) header with a crimson
   (#c8102e) to ember (#f0542f) gradient accent, warm off-white paper
   background, white lifted cards. Nothing here is shared with the
   sister sites; each Kades site has its own look.
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #f6f4f1; color: #23252d;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.55;
}
a { color: #b30d28; }
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  background: linear-gradient(120deg, #141519 0%, #23252d 55%, #3d0d16 100%);
  border-bottom: 3px solid #c8102e; position: sticky; top: 0; z-index: 20;
}
.header-in {
  max-width: 1340px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .name { color: #fff; font-size: 1.45rem; font-weight: 700; letter-spacing: .2px; }
.brand .name em { font-style: normal; color: #ff6a4d; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: #e8e6e3; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  font-size: .95rem; font-weight: 600;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.main-nav a.calc-link {
  background: linear-gradient(90deg, #c8102e, #f0542f); color: #fff;
}
.main-nav a.calc-link:hover { filter: brightness(1.12); }

/* hero */
.hero {
  background:
    radial-gradient(900px 340px at 85% -60px, rgba(240,84,47,.35), transparent 60%),
    linear-gradient(120deg, #141519, #2a1218 70%, #471019);
  color: #f4f1ee; padding: 52px 0 46px;
}
.hero h1 { font-size: 2.6rem; line-height: 1.12; margin: 0 0 14px; max-width: 640px; }
.hero h1 .accent {
  background: linear-gradient(90deg, #ff5a3c, #ffb03a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 560px; font-size: 1.08rem; color: #d9d4cf; margin: 0 0 22px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
.hero .calc-card { background: #fff; color: #23252d; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #c8102e, #f0542f);
  padding: 12px 24px; border-radius: 999px; box-shadow: 0 8px 20px rgba(200,16,46,.35);
}
.btn:hover { filter: brightness(1.1); }
.openbtn {
  display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none;
  color: #b30d28;
}
.openbtn:hover { text-decoration: underline; }

/* sections and cards */
.section { padding: 40px 0 8px; }
.section h2 { font-size: 1.9rem; margin: 0 0 8px; }
.lede { color: #55565e; max-width: 760px; margin: 0 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 3px 10px rgba(23,24,28,.07), 0 14px 30px rgba(23,24,28,.06);
  border-top: 4px solid #c8102e;
}
.card h3 { margin: 0 0 8px; font-size: 1.13rem; }
.card p { margin: 0; color: #55565e; }
.cat-title { margin: 30px 0 14px; font-size: 1.35rem; }
.cat-title:first-of-type { margin-top: 6px; }

/* calculator card and forms */
.calc-card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 4px 12px rgba(23,24,28,.08), 0 18px 38px rgba(23,24,28,.10);
  border-top: 5px solid #c8102e;
}
.calc-card h2, .calc-card h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #d8d3cd; border-radius: 9px;
  font-size: 1rem; background: #fff; color: #23252d;
}
.field input:focus, .field select:focus { outline: 2px solid #f0542f; border-color: #f0542f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.result-box {
  background: #fdf1ec; border: 1.5px solid #f5c6b8; border-radius: 11px;
  padding: 14px 16px; margin-top: 6px; min-height: 54px;
}
.result-box .big { font-size: 1.5rem; font-weight: 800; color: #a50c26; margin: 0 0 6px; }
.result-box p { margin: 0 0 6px; }
.result-box .hint { color: #77787f; margin: 0; }
.fineprint { font-size: .86rem; color: #77787f; margin-top: 14px; }
.rtable { width: 100%; border-collapse: collapse; margin: 8px 0; }
.rtable td { padding: 7px 8px; border-bottom: 1px solid #f0d9d0; }
.rtable tr:last-child td { border-bottom: none; }

/* prose pages */
.prose { max-width: 860px; }
.prose h3 { margin: 22px 0 8px; }
.prose p { color: #3c3e46; }

/* footer */
.site-footer { background: #141519; color: #cfccc8; margin-top: 54px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 38px 0 10px;
}
.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; }
.site-footer a { color: #cfccc8; text-decoration: none; }
.site-footer a:hover { color: #ff6a4d; }
.copyright { border-top: 1px solid #2c2e36; padding: 16px 0 22px; font-size: .88rem; color: #9a978f; }

/* phone */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-in { gap: 12px; }
  .main-nav { margin-left: 0; }
}
@media (max-width: 620px) {
  .field-row, .field-row3 { grid-template-columns: 1fr; }
  .section h2 { font-size: 1.55rem; }
  .grid { grid-template-columns: 1fr; }
}
