@font-face {
  font-family: "Merriweather";
  src: url("fonts/merriweather-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("fonts/merriweather-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("fonts/merriweather-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* Vaihda värit tästä */
:root {
  /* Värit poimittu EWS:n logosta ja bannerikuvasta */
  --brand: #131323;       /* logon tumma navy */
  --brand-dark: #0b0b16;
  --accent: #c4c7cf;      /* logon hopea */
  --bg: #fafaf9;          /* uutiskirjeen taustaväri */
  --soft: #f0efed;
  --text: #1b1b26;
  --muted: #5a5a68;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
header.site a:focus-visible, .hero a:focus-visible, footer a:focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--brand); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.site {
  background: var(--brand);
  color: #fff;
}
/* Kiinteä ylätunniste vain leveillä näytöillä; mobiilissa se veisi liikaa tilaa */
@media (min-width: 768px) {
  header.site { position: sticky; top: 0; z-index: 10; }
  section[id] { scroll-margin-top: 92px; }
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; display: block; }
@media (max-width: 560px) { .logo img { height: 56px; } }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: #fff; text-decoration: none; font-size: .95rem; padding: 10px 0; display: inline-block; }
nav a:hover { text-decoration: underline; }

/* Hampurilaisvalikko mobiilissa (näkyy vain kun JS on käytössä) */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .has-menu .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
    color: #fff; font: inherit; font-size: .95rem;
    padding: 8px 14px; min-height: 44px; cursor: pointer;
  }
  .menu-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .open .bars { background: transparent; }
  .open .bars::before { transform: translateY(6px) rotate(45deg); }
  .open .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .has-menu nav { display: none; flex-basis: 100%; }
  .has-menu.open nav { display: block; }
  .has-menu nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .has-menu nav li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .has-menu nav li:last-child { border-bottom: 0; }
  .has-menu nav a { display: block; padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .bars, .bars::before, .bars::after { transition: none; } }

/* Hero */
.hero {
  background: var(--brand);
  color: #d4d6dd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero-text { padding: 56px 24px 56px max(16px, calc((100vw - 1040px) / 2)); align-self: center; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.2; font-style: italic; font-weight: 400; color: var(--accent); }
.hero .since { color: #fff; font-size: 1.2rem; margin: 0 0 20px; }
.hero p { max-width: 520px; margin: 0 0 24px; font-size: 1.05rem; }
.hero-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 40px 16px; }
  .hero-img { min-height: 0; height: 240px; }
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.2); }
.hero .btn { background: var(--accent); color: var(--brand); }

/* Sections */
section { padding: 48px 0; }
section.soft { background: var(--soft); }
h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--brand); }
h3 { margin: 0 0 8px; }
.lead { font-size: 1.1rem; max-width: 720px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card p { margin: 0; color: var(--muted); }
.checks { padding-left: 20px; }

/* Tekstisivut (tietosuojaseloste) */
.prose { max-width: 760px; }
.prose h1 { margin: 0 0 4px; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; color: var(--brand); }
.prose h2 { margin-top: 32px; font-size: 1.25rem; }
.prose ul { padding-left: 20px; }

/* Form */
form { display: grid; gap: 14px; max-width: 560px; }
label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
input, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b9c2cf;
  border-radius: 8px;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 5px; }
.small { font-size: .85rem; color: var(--muted); }
.status { margin: 0; font-weight: 700; min-height: 1.6em; }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer { background: var(--brand-dark); color: #dbe2ec; padding: 28px 0; font-size: .9rem; }
footer a { color: #fff; }

@media (max-width: 560px) {
  section { padding: 36px 0; }
}

/* Kuvat ja kuvakkeet */
.icon { width: 36px; height: 36px; display: block; margin-bottom: 10px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
.split + .grid { margin-top: 24px; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; gap: 20px; } }

/* Hinnat, UKK ja kieliversiot */
.prices { list-style: none; padding: 0; margin: 0 0 12px; max-width: 460px; }
.prices li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.prices li span:last-child { font-weight: 700; white-space: nowrap; }
details { background: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); max-width: 760px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }
.langs { gap: 32px; }
.langs h2 { font-size: 1.3rem; }
