/* =====================================================================
   Kades Health - stylesheet
   Palette: deep teal and sea green, fresh lime accent, warm paper.
   Wide 1340px wrap, lifted cards, gradient header and buttons.
   ===================================================================== */
:root {
  --teal-deep: #07332f;
  --teal: #0b5563;
  --sea: #12836f;
  --lime: #a8c93a;
  --lime-bright: #c3dd5e;
  --paper: #fbfcf7;
  --card: #ffffff;
  --ink: #17302c;
  --muted: #5d726c;
  --line: #dcebe2;
  --soft: #edf6f0;
  --shadow: 0 10px 30px rgba(7, 51, 47, 0.10);
  --shadow-lift: 0 18px 42px rgba(7, 51, 47, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6; font-size: 17px;
}
a { color: var(--sea); }
h1, h2, h3, h4 { line-height: 1.22; color: var(--teal-deep); margin: 0 0 12px; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.22rem; }
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 55%, var(--sea) 100%);
  border-bottom: 4px solid var(--lime);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 6px 22px rgba(7, 51, 47, 0.25);
}
.header-in {
  max-width: 1340px; margin: 0 auto; padding: 12px 22px;
  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: 0.2px; }
.brand .name em { font-style: normal; color: var(--lime-bright); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: #e7f4ec; text-decoration: none; font-size: 0.98rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.main-nav a.calc-link {
  background: linear-gradient(120deg, var(--lime), var(--lime-bright));
  color: #20300a; margin-left: 8px;
}
.main-nav a.calc-link:hover { filter: brightness(1.05); color: #20300a; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(900px 340px at 85% -60px, rgba(168, 201, 58, 0.28), transparent 60%),
    linear-gradient(125deg, #e9f6ee 0%, #f7fbf3 55%, #eef7e6 100%);
  border-bottom: 1px solid var(--line);
}
.hero-in { max-width: 1340px; margin: 0 auto; padding: 52px 22px 46px; }
.hero h1 { font-size: 2.65rem; max-width: 760px; }
.hero h1 .hl { color: var(--sea); }
.hero .lede { font-size: 1.16rem; color: var(--muted); max-width: 720px; margin: 0 0 22px; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 20px; box-shadow: var(--shadow); min-width: 150px;
}
.stat b { display: block; font-size: 1.5rem; color: var(--teal); }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------------- layout */
.section { padding: 42px 0 10px; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 780px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin: 22px 0 34px; }
.cat-title { margin-top: 36px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.card img { width: 100%; border-radius: 10px; margin-bottom: 12px; }
.openbtn, .btn {
  display: inline-block; text-decoration: none; font-weight: 700; color: #20300a;
  background: linear-gradient(120deg, var(--lime), var(--lime-bright));
  padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(168, 201, 58, 0.35); align-self: flex-start;
}
.openbtn:hover, .btn:hover { filter: brightness(1.05); }

/* ---------------------------------------------------------------- calculators */
.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 26px; margin: 22px 0 30px; max-width: 720px;
}
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field { flex: 1 1 200px; margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--teal-deep); }
.field input, .field select {
  width: 100%; padding: 11px 13px; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--lime); border-color: var(--sea); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.result-box { margin-top: 8px; }
.rtable { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rtable th, .rtable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable th { color: var(--teal); font-weight: 600; width: 46%; }
.rtable tr:last-child th, .rtable tr:last-child td { border-bottom: none; }
.rnote {
  background: var(--soft); border-left: 4px solid var(--lime); border-radius: 8px;
  padding: 12px 16px; color: var(--ink); font-size: 0.95rem;
}
.fineprint { color: var(--muted); font-size: 0.92rem; }
.alert-note {
  background: #fdf3e3; border: 1px solid #f0d9a8; border-left: 4px solid #e0a83c;
  border-radius: 10px; padding: 14px 18px; margin: 20px 0; max-width: 820px;
}

/* ---------------------------------------------------------------- prose */
.prose { max-width: 860px; }
.prose p { margin: 0 0 16px; }
.prose h3 { margin-top: 28px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--teal-deep); color: #cfe4d8; margin-top: 60px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #cfe4d8; text-decoration: none; }
.site-footer a:hover { color: var(--lime-bright); }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 28px; padding-top: 16px; font-size: 0.9rem; color: #9dbcae; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .header-in { gap: 12px; }
  .main-nav { margin-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 20px 16px; }
  .rtable th { width: 52%; }
}
