/* Värit poimittu Delux Cleanin logosta ja bannerista:
   logon vaaleansininen #a3c8e4, bannerin sininen #2088c8 (tummennettu luettavuuden vuoksi),
   logon tausta #f6faff, harmaa otsikko #606060. Fontti: Catamaran (uutiskirje). */
@font-face {
  font-family: "Catamaran";
  src: url("fonts/catamaran-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1a73ab;
  --brand-dark: #124f78;
  --accent: #a3c8e4;
  --bg: #ffffff;
  --soft: #f6faff;
  --text: #222a30;
  --muted: #5a6670;
  --radius: 10px;
}

* { box-sizing: border-box; }
/* Ylä- ja alareunan yli vierittäessä (iOS/Android) näkyy headerin ja footerin väri eikä valkoinen */
html { scroll-behavior: smooth; background: #124f78 linear-gradient(#f6faff 50%, #124f78 50%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  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-dark); outline-offset: 2px; }
.hero a:focus-visible, footer a:focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--brand-dark); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.site {
  background: #f6faff; /* sama kuin logokuvan tausta */
  color: var(--brand-dark);
  border-bottom: 1px solid #d5e5f3;
}
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: 120px; width: auto; display: block; }
@media (max-width: 560px) { .logo img { height: 88px; } }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: var(--brand-dark); text-decoration: none; font-size: 1rem; font-weight: 600; 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 .logo img { height: 64px; }
  .has-menu .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid #c4d9ec; border-radius: 8px;
    color: var(--brand-dark); font: inherit; font-weight: 600;
    padding: 8px 14px; min-height: 44px; cursor: pointer;
  }
  .menu-btn:focus-visible { outline: 3px solid var(--brand-dark); 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 #d5e5f3; }
  .has-menu nav li { border-bottom: 1px solid #d5e5f3; }
  .has-menu nav li:last-child { border-bottom: 0; }
  .has-menu nav a { display: block; padding: 12px 0; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding: 56px 0; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; }
.hero p { max-width: 640px; margin: 0 0 24px; font-size: 1.1rem; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  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.15); }
.hero .btn { background: var(--accent); color: var(--brand-dark); }

/* 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); }
.card a { display: inline-block; padding: 3px 0; }
.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: 600; 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; }
footer p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .hero { padding: 40px 0; }
  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; }
