/* KuuloMatti – Kuulemisen Erikoisliike */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --teal-900: #0a4650;
  --teal-700: #007a8c;
  --teal-500: #009cb4; /* brändin turkoosi */
  --teal-100: #cdeef3;
  --teal-50: #ebf8fa;
  --pink: #e40f7e; /* brändin pinkki */
  --pink-dark: #b80b65;
  --brand-gray: #5f5554; /* logon harmaa */
  --pink-50: #fdeef5;
  --ink: #18272a;
  --muted: #4a5a5e;
  --line: #dfe5e4;
  --bg: #fbfaf7;
  --sand: #f4f0e9;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 40, 42, .06), 0 8px 24px rgba(10, 40, 42, .07);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1875rem; /* 19px – helppolukuinen */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--teal-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pink); margin-bottom: .8rem; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); color: var(--white); }
.btn-teal { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-900); color: var(--white); }
.btn-ghost { border-color: var(--teal-700); color: var(--teal-700); background: transparent; }
.btn-ghost:hover { background: var(--teal-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.topbar { background: var(--teal-900); color: #d9eeee; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar span + span::before { content: "·"; margin: 0 .6em; opacity: .6; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 66px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 58px; } }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: .5em .8em; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal-900); }
.nav .btn { margin-left: 8px; min-height: 44px; padding: .5em 1.1em; color: #fff; }
.nav .btn:hover { background: var(--pink-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 12px; width: 50px; height: 46px; cursor: pointer; color: var(--teal-900); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); top: 0; background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.15); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; padding: 90px 20px 20px; overflow-y: auto; z-index: 60; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { font-size: 1.15rem; padding: .8em 1em; }
  .nav .btn { margin: 12px 0 0; }
  .menu-toggle { position: relative; z-index: 70; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--teal-50), var(--bg)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-media { position: relative; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4/4.2; object-fit: cover; object-position: 50% 30%; width: 100%; }
.hero-media::before { content: ""; position: absolute; inset: -22px -22px auto auto; width: 140px; height: 140px; border: 14px solid var(--pink); border-radius: 50%; opacity: .9; z-index: -1; }
.hero-badge { position: absolute; left: -18px; bottom: 26px; background: var(--white); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .95rem; line-height: 1.3; max-width: 260px; }
.hero-badge strong { display: block; color: var(--teal-900); font-size: 1.05rem; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 1.6rem 0 0; font-size: 1rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust svg { width: 20px; height: 20px; color: var(--teal-500); flex: none; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4/3; }
  .hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; font-size: .85rem; }
  .hero-badge strong { font-size: .95rem; }
  .hero-media::before { display: none; }
}

/* Page header (sub pages) */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--teal-50), var(--bg)); }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 .4em; }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-alt { background: var(--sand); }
.section-teal { background: var(--teal-900); color: #e3f2f2; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal a { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 1.05rem; }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card-link::after { content: "→"; transition: transform .15s; }
.card:hover .card-link::after { transform: translateX(4px); }
a.card { text-decoration: none; color: inherit; }

.feature { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: step; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 24px; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: 1.02rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Prices */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--teal-500); box-shadow: var(--shadow); position: relative; }
.price-card h3 { margin-bottom: .2em; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--teal-900); line-height: 1.1; margin: .4em 0 .1em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--muted); font-size: 1rem; margin-bottom: 1em; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--teal-50); color: var(--teal-900); font-size: .95rem; letter-spacing: .02em; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .desc { display: block; font-size: .95rem; color: var(--muted); font-weight: 400; }

/* People */
.person { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.person img { aspect-ratio: 1/1; object-fit: cover; object-position: 50% 25%; width: 100%; }
.person div { padding: 20px 22px 24px; }
.person h3 { margin-bottom: .15em; }
.person p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.12rem; list-style: none; position: relative; color: var(--teal-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.brands li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 700; color: var(--teal-900); }

/* Logo wall */
.logo-wall { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.logo-wall li { flex: 1 1 150px; max-width: 220px; }
.logo-wall li { margin: 0; }
.logo-wall a { display: grid; place-items: center; height: 96px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, transform .2s; }
.logo-wall a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-wall img, .split .logo-wall img { max-height: 46px; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 3px; background: var(--teal-100); border-radius: 3px; }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 24px; margin: 0 0 32px; }
.timeline .year { position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal-500); font-weight: 800; font-size: 1.35rem; color: var(--teal-900); }
.timeline li:last-child .year { background: var(--pink); border-color: var(--pink); color: #fff; font-size: 1.05rem; }
.timeline h3 { margin: .9em 0 .3em; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 72px 1fr; gap: 16px; } .timeline .year { width: 72px; height: 72px; font-size: 1.1rem; } .timeline::before { left: 35px; } }

/* Info boxes */
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-box h3 { margin-top: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.note { background: var(--pink-50); border-left: 4px solid var(--pink); padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 1.02rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--teal-500); flex: none; margin-top: 4px; }
.contact-list a { font-weight: 700; }

/* Form */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--teal-500); outline: none; }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .98rem; }
.form .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hidden { display: none !important; }

/* CTA band */
.cta-band { background: var(--pink); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.15rem; opacity: .95; }
.cta-band .btn-row { margin: 0; justify-content: flex-end; }
.cta-band .btn-white { background: #fff; color: var(--pink); }
.cta-band .btn-outline-white { border-color: #fff; color: #fff; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Prose (privacy etc.) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }

/* Footer */
.site-footer { background: var(--teal-900); color: #cfe6e6; padding: 64px 0 110px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1.1rem; color: #fff; letter-spacing: .02em; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .brand img { height: 80px; }
.social { display: flex; gap: 10px; margin-top: 1rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: var(--pink); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: #9fcfcf; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .action-bar .btn { min-height: 50px; font-size: 1rem; padding: .5em .8em; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Asiakasarvostelut */
.stars { color: #f5a623; letter-spacing: 2px; }
.rating-summary { font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.rating-summary .stars { font-size: 1.3rem; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1.2rem; line-height: 1.45; color: var(--teal-900); font-weight: 500; flex: 1; }
.review figcaption { font-size: .95rem; color: var(--muted); }
.review figcaption strong { color: var(--teal-900); }
.trust .stars { width: 20px; text-align: center; letter-spacing: 0; }
