/* Karlan lahjoitusneuvonta — shared styles
   Editorial, box-free layout. Type: Hanken Grotesk (see fonts/fonts.css).
   Legacy classes (.container, .site-header, .site-footer …) are kept because
   the privacy pages (tietosuoja.html / privacy.html) still use them. */

:root {
  --bg: #faf7f0;
  --bg-alt: #f1ecdf;
  --bg-sage: #e8ecdd;
  --ink: #2a2620;
  --muted: #6b6152;
  --sage: #6f7d59;
  --terracotta: #b5663c;
  --terracotta-dark: #96502e;
  --line: #e2dac8;
  --card-bg: #ffffff;
  --radius: 14px;
  --shell: 1060px;
  --max: 760px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--terracotta); }
b, strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
/* Emphasis in headings is done with colour, not italics (grotesque style) */
h1 em, h2 em { font-style: normal; color: var(--terracotta); }

/* Layout containers */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

/* Eyebrow (shared with privacy pages) */
.eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.6em;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.logo-title {
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--terracotta);
}
.logo-sub {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}
.nav-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover { color: var(--ink); }
.lang-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid transparent; }
.lang-link:hover { border-bottom-color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--terracotta-dark); }
.btn.small { padding: 10px 18px; font-size: 0.9rem; }
.btn-on-color { background: #fff; color: var(--terracotta); }
.btn-on-color:hover { background: var(--bg); color: var(--terracotta-dark); }

/* Bands / sections */
section.band { padding: 76px 0; }
section.band[id] { scroll-margin-top: 84px; }
section.alt { background: var(--bg-alt); }
section.sage { background: var(--bg-sage); }
section.sage .eyebrow { color: var(--terracotta); }

/* Rail: sticky label left, content right */
.rail { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.rail .r-label { position: sticky; top: 104px; }
.r-label h2 { margin: 0; }

/* Hero — full-bleed B&W photo, text over the open left */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #cbc6bd center / cover no-repeat;
  background-image: url("images/hero-web.jpg");
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    var(--bg) 0%, rgba(250, 247, 240, 0.90) 30%,
    rgba(250, 247, 240, 0.45) 52%, rgba(250, 247, 240, 0) 72%);
}
.hero .shell { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero .inner { max-width: 33rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 29rem; }
.hero .reassure { color: var(--ink); font-weight: 500; font-size: 0.9rem; margin-top: 12px; max-width: 26rem; }

/* Evidence */
.evidence .ev-head {
  font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.25;
  color: var(--sage); margin: 0 0 32px; max-width: 22ch;
}
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; max-width: 860px; }
.fact .num {
  font-weight: 600; color: var(--terracotta);
  font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 8px;
}
.fact p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Checklist (Kenelle) */
.check { list-style: none; margin: 0; padding: 0; max-width: 620px; }
.check li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.check li:last-child { border-bottom: 1px solid var(--line); }
.check .cm { color: var(--sage); font-weight: 700; flex: 0 0 auto; }
.closing { color: var(--muted); margin-top: 18px; }

/* Näin se toimii — numbered list, no cards */
.lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 0 22px; }
.steps { list-style: none; margin: 0 0 40px; padding: 0; max-width: 640px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline;
  counter-increment: step;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-weight: 600; font-size: 1.9rem; color: var(--terracotta); line-height: 1; }
.steps h4 { margin: 0 0 0.2em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }
blockquote.ex { margin: 0; padding: 0 0 0 24px; border-left: 3px solid var(--sage); max-width: 560px; }
blockquote.ex p { font-size: 1.15rem; line-height: 1.5; color: var(--ink); margin: 0 0 0.5em; font-style: italic; }
blockquote.ex footer { color: var(--muted); font-size: 0.88rem; }

/* Karla */
.karla { display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: stretch; }
.photo {
  position: relative; border-radius: 0; max-width: 280px; width: 100%; overflow: hidden;
  background: var(--sage); color: #fff; min-height: 320px;
}
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%; filter: grayscale(1) contrast(1.35) brightness(0.97);
}
.photo .init { font-size: 3rem; font-weight: 700; }
.photo .hint { font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; }
.merits {
  color: var(--muted); font-size: 0.92rem; margin: 0 0 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); max-width: 560px;
}
.about-text { max-width: 560px; }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--ink); }
.pull { font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin: 20px 0; max-width: 24em; }

/* Pricing */
.pricing .price { font-weight: 600; font-size: clamp(3rem, 6vw, 4rem); color: var(--terracotta); line-height: 1; margin: 0 0 4px; }
.pricing .sugg { color: var(--sage); font-weight: 600; margin: 0 0 18px; }
.pricing .fine { color: var(--muted); font-size: 0.95rem; max-width: 60ch; }
.pricing .cal-note { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }

/* FAQ */
.faq { max-width: 680px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.3rem; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 10px 0 0; font-size: 0.95rem; }

/* Testimonials — editorial, no cards */
.testimonials .placeholder-note {
  color: var(--terracotta-dark); background: #fbeee6;
  border-left: 3px solid var(--terracotta); padding: 10px 14px;
  font-size: 0.85rem; margin: 0 0 26px; max-width: 680px;
}
.tlist { max-width: 760px; }
.tlist blockquote { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.tlist blockquote:last-child { border-bottom: 1px solid var(--line); }
.tlist blockquote p { font-style: italic; font-size: 1.1rem; color: var(--ink); margin: 0 0 0.5em; }
.tlist blockquote footer { color: var(--muted); font-size: 0.9rem; }

/* Closing CTA band */
.cta-band { background: var(--terracotta); text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }

/* Footer — main pages */
footer.ft { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.ft-in {
  max-width: var(--shell); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 32px;
  color: var(--muted); font-size: 0.9rem; align-items: start;
}
.ft-in a { color: var(--muted); }
.ft h5 { margin: 0 0 6px; color: var(--ink); font-size: 0.9rem; }

/* Footer — privacy pages (legacy) */
section.container { padding: 48px 0; }
footer.site-footer { border-top: 1px solid var(--line); padding: 32px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
footer.site-footer a { color: var(--muted); }
footer.site-footer .links { display: flex; gap: 18px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .rail, .karla { grid-template-columns: 1fr; }
  .rail .r-label { position: static; }
  .karla .photo { aspect-ratio: 4 / 5; min-height: 0; max-width: 340px; }
  .ft-in { grid-template-columns: 1fr; }
  section.band { padding: 56px 0; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; background-position: 72% center; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(250, 247, 240, 0.94) 0%, rgba(250, 247, 240, 0.86) 46%, rgba(250, 247, 240, 0.72) 100%);
  }
  .hero .shell { padding-top: 44px; padding-bottom: 140px; }
  .hero .inner { max-width: none; }
  .ev-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-link { display: none; }
}
