/* ============================================================
   Kades Geography - style.css
   An atlas-inspired design: deep petrol ocean tones, warm
   parchment paper, terracotta land accents and sand highlights.
   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: #f7f2e6;
  color: #22303a;
  line-height: 1.6;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; color: #17384a; }
a { color: #b0511f; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, #0b3547 0%, #14586e 58%, #1d7a72 100%);
  color: #fff;
  border-bottom: 4px solid #dfa63c;
  position: sticky; top: 0; z-index: 20;
}
.header-in { max-width: 1340px; 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: 42px; height: 42px; flex: 0 0 auto; }
.brand .name { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: .2px; }
.brand .name em { color: #f2c063; font-style: normal; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #e3f0ee; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: .95rem;
}
.main-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.main-nav a.calc-link { background: #c65b26; color: #fff; font-weight: 600; }
.main-nav a.calc-link:hover { background: #d96f36; }

/* ---------- Layout ---------- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 18px; }
.hero {
  background: linear-gradient(155deg, #0b3547 0%, #14586e 55%, #1d7a72 100%);
  color: #fff; padding: 52px 0 58px; margin-bottom: 34px;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 12px; max-width: 660px; color: #fff; }
.hero h1 .accent { color: #f2c063; }
.hero p { max-width: 580px; color: #d7e9e6; 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; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: linear-gradient(120deg, #c65b26, #dfa63c);
  color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px;
  border-radius: 10px; border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(198,91,38,.35);
}
.btn:hover { filter: brightness(1.07); }

/* ---------- Calculator cards ---------- */
.calc-card {
  background: #fff; border: 1px solid #e6dcc4; border-radius: 16px;
  padding: 24px; box-shadow: 0 14px 34px rgba(23,56,74,.14);
}
.calc-card h2, .calc-card h3 { margin-top: 0; }
.field { margin-bottom: 14px; flex: 1 1 200px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; color: #17384a; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #cfc4a6; border-radius: 9px;
  font-size: 1rem; background: #fffdf6; color: #22303a;
}
.field input:focus, .field select:focus { outline: 2px solid #1d7a72; border-color: #1d7a72; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.result-box {
  margin-top: 16px; background: #fdf6e0; border: 1.5px solid #dfa63c; border-radius: 12px;
  padding: 16px 18px; min-height: 54px; font-size: 1.02rem;
}
.result-box:empty { display: none; }
.result-box .big { font-size: 1.5rem; font-weight: 700; color: #0b3547; font-family: Georgia, serif; }
.result-box table { border-collapse: collapse; width: 100%; margin-top: 8px; }
.result-box td, .result-box th { padding: 4px 8px 4px 0; text-align: left; vertical-align: top; }
.fineprint { font-size: .86rem; color: #68737c; margin-top: 14px; }

/* ---------- Sections and grids ---------- */
.section { padding: 10px 0 34px; }
.section h2 { font-size: 1.9rem; margin: 8px 0 6px; }
.lede { max-width: 760px; color: #45545f; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid #e6dcc4; border-radius: 14px; padding: 20px;
  box-shadow: 0 8px 22px rgba(23,56,74,.09); display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { margin: 0 0 14px; color: #45545f; flex: 1; }
.card img { width: 100%; border-radius: 9px; margin-bottom: 12px; }
.openbtn {
  align-self: flex-start; background: linear-gradient(120deg, #14586e, #1d7a72); color: #fff;
  text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 9px; font-size: .95rem;
}
.openbtn:hover { filter: brightness(1.1); }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 4px; }
.cat-head h3 { font-size: 1.35rem; margin: 0; }
.cat-head span { color: #8a6d2f; font-size: .9rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }

/* ---------- Prose pages ---------- */
.prose { max-width: 820px; }
.prose h3 { margin: 22px 0 6px; font-size: 1.3rem; }
.prose p { margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b3547; color: #cfe0dc; margin-top: 30px; padding: 34px 0 26px; }
.site-footer h4 { color: #f2c063; font-family: Georgia, serif; margin: 0 0 10px; }
.site-footer a { color: #cfe0dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.copyright { border-top: 1px solid rgba(255,255,255,.18); margin-top: 24px; padding-top: 16px; font-size: .9rem; color: #9db8b2; }
