/* ============================================================
   Kades Salary - style.css
   A warm ivory and deep indigo design with copper accents.
   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: #faf7f1;
  color: #23233a;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; line-height: 1.25; }
a { color: #8a4b12; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, #1d2044 0%, #2b2f63 70%, #3a2f5e 100%);
  color: #fff;
  border-bottom: 4px solid #c97b2d;
  position: sticky; top: 0; z-index: 20;
}
.header-in { max-width: 1180px; margin: 0 auto; padding: 12px 18px; 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: 40px; height: 40px; flex: 0 0 auto; }
.brand .name { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.45rem; font-weight: 700; letter-spacing: .2px; }
.brand .name em { color: #eda855; font-style: normal; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #e9e7ff; 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: #c97b2d; color: #fff; font-weight: 600; }
.main-nav a.calc-link:hover { background: #dd8f3e; }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.hero {
  background: linear-gradient(160deg, #23265a 0%, #2e2a5e 55%, #54386e 100%);
  color: #fff; padding: 52px 0 58px; margin-bottom: 34px;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 12px; max-width: 640px; }
.hero h1 .accent { color: #eda855; }
.hero p { max-width: 560px; color: #d9d6f5; 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: #23233a;
  box-shadow: 0 18px 40px rgba(16, 14, 48, .35); border-top: 5px solid #c97b2d;
}
.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: #45456b; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1.6px solid #cfcbe4; border-radius: 9px; font-size: 1rem; background: #fcfbff;
}
.field input:focus, .field select:focus { outline: 2px solid #eda855; border-color: #c97b2d; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.btn {
  display: inline-block; background: linear-gradient(135deg, #c97b2d, #e09543); 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.07); }
.result-box { background: #f4f1fd; border: 1.5px dashed #a49ad6; border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.result-box .big { font-size: 1.7rem; font-weight: 800; color: #23265a; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.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 #e3def5; }
.result-lines li:last-child { border-bottom: 0; }
.result-lines .neg { color: #a33c1e; }
.fineprint { font-size: .83rem; color: #6d6d8f; margin-top: 12px; }

/* ---------- Sections and cards ---------- */
.section { padding: 12px 0 30px; }
.section h2 { font-size: 1.65rem; margin: 8px 0 6px; }
.section .lede { color: #55557a; max-width: 720px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid #e7e1d6; border-radius: 14px; padding: 20px;
  box-shadow: 0 4px 14px rgba(35, 32, 90, .06);
}
.card h3 { margin: 0 0 7px; font-size: 1.12rem; }
.card p { margin: 0 0 12px; color: #55557a; font-size: .94rem; }
.card .openbtn {
  display: inline-block; background: linear-gradient(135deg, #2b2f63, #3a2f5e); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.card .openbtn:hover { filter: brightness(1.15); }
table.rates { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(35,32,90,.06); }
table.rates th { background: #23265a; color: #fff; text-align: left; padding: 10px 14px; font-size: .92rem; }
table.rates td { padding: 9px 14px; border-bottom: 1px solid #eee8da; font-size: .95rem; }
.prose { max-width: 760px; }
.prose p { color: #3d3d5c; }

/* ---------- Footer ---------- */
.site-footer { background: #1d2044; color: #c9c6ee; margin-top: 44px; padding: 34px 0 26px; }
.site-footer a { color: #eda855; 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; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid #34376e; margin-top: 24px; padding-top: 16px; font-size: .88rem; color: #9d9ac4; }
