/* KorhoneCom · korhone.com hub — samat design-vakiot kuin muilla sivustoilla */
:root {
  --paper: #F5F6F4;
  --paper-2: #EDEFEA;
  --ink: #14201E;
  --ink-soft: #4A5754;
  --line: #D8DDD6;
  --accent: #1C5A74;
  --accent-deep: #123E50;
  --hi: #C2702A;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 30, .06), 0 8px 24px rgba(16, 32, 30, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.015em;
  margin: 0 0 .4em; text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.site-header { position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.bar nav { margin-left: auto; display: flex; gap: 4px; }
.bar nav a { font-size: .9rem; color: var(--ink-soft); text-decoration: none; padding: 7px 12px; border-radius: 999px; }
.bar nav a:hover { background: var(--paper-2); color: var(--ink); }
.bar nav a.active { background: var(--accent); color: #fff; }

.hero { padding: 60px 0 44px;
  background: radial-gradient(120% 140% at 88% 0%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%),
              radial-gradient(100% 120% at 8% 20%, color-mix(in oklab, var(--hi) 9%, transparent) 0%, transparent 55%); }
.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 22ch; font-weight: 700; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 30px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--ink-soft); }

section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sec-head .count { color: var(--ink-soft); font-size: .9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.card h3 { font-size: 1.1rem; margin: 0; }
.card .lang { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card .desc { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.card .counts { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .8rem; color: var(--ink-soft); }
.card .foot { margin-top: auto; }
.card .btn { font-family: var(--font-head); font-size: .85rem; font-weight: 600; padding: 9px 15px;
  border-radius: 9px; background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent); }
.card .btn:hover { background: var(--accent-deep); color: #fff; }

#contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
#contact p { margin: .4em 0; color: var(--ink-soft); }
#contact a { font-weight: 600; }

footer { margin-top: 40px; padding: 36px 0 48px; border-top: 1px solid var(--line); background: var(--paper-2);
  font-size: .88rem; color: var(--ink-soft); }
footer h2 { font-size: 1rem; color: var(--ink); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .toast { transition: none; } }

/* ---- alafooteri ---- */
.subfoot {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 14px 0;
  font-size: .85rem;
  color: var(--ink-soft);
}
.subfoot p { margin: 0; }
.subfoot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.subfoot a:hover { text-decoration: underline; }
