/* Musiikkiterapia Piamusiikki – yksisivuinen sivusto
   Ei ulkoisia fontteja tai skriptejä: nopea lataus ja ei kolmansien osapuolten seurantaa. */

:root {
  --ink: #17333c;
  --ink-soft: #435960;
  --teal-deep: #0a3a49;
  --teal: #0d5a6e;
  --sun: #f4c430;          /* leskenlehden keltainen */
  --sun-deep: #dba300;
  --sun-wash: #fff7dd;
  --mist: #e8f2f3;
  --coral: #e4684f;        /* Pian paidan kukkien väri, vain koristeena */
  --coral-deep: #b4412c;
  --coral-wash: #fdebe6;
  --white: #ffffff;
  --line: #d3e0e3;
  --leaf: 30px 10px 30px 10px;
  --gutter: clamp(16px, 4vw, 32px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 8px; }

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Painikkeet ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; line-height: 1.2;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--ink);
  text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--white);
}
.btn:hover { color: var(--ink); background: var(--sun-wash); }
.btn--sun { background: var(--sun); }
.btn--sun:hover { background: #ffd54a; }
.btn--small { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 1rem; }

/* ---------- Otsikkopalkki ja valikko ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 0.7rem; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; margin-right: auto;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  color: var(--teal-deep); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--teal); }
.brand svg { width: 38px; height: 38px; color: var(--sun); }

.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

.menu-wrap { position: relative; }
.menu-button {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: inherit; font-weight: 700; color: var(--teal-deep);
  background: var(--white); border: 2px solid var(--teal-deep); border-radius: 999px;
  padding: 0.5rem 1.1rem; min-height: 48px; cursor: pointer;
}
.menu-button:hover { background: var(--mist); }
.menu-button svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-button[aria-expanded="true"] { background: var(--teal-deep); color: var(--white); }

.menu-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
}
.menu-groups { display: grid; gap: 1.2rem 1.6rem; }
@media (min-width: 640px) { .menu-groups { grid-template-columns: 1fr 1fr; } }
.menu-title {
  margin: 0 0 0.3rem 0.8rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--coral-deep);
}
p.menu-title::after { content: ""; display: block; width: 48px; height: 5px; border-radius: 5px; background: var(--sun); margin-top: 0.4rem; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 12px;
  color: var(--ink); text-decoration: none; line-height: 1.3;
}
.menu-panel a strong { display: block; font-size: 1.05rem; color: var(--teal-deep); }
.menu-panel a span { font-size: 0.93rem; color: var(--ink-soft); }
.menu-panel a:hover { background: var(--sun-wash); }
.menu-panel a[aria-current="true"] { background: var(--sun-wash); box-shadow: inset 4px 0 0 var(--sun-deep); }

/* Ilman JavaScriptiä valikko on aina auki sivun alussa */
html:not(.js) .menu-panel { margin: 0 var(--gutter) 1rem; }
html:not(.js) .menu-button { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .menu-wrap { width: 100%; }

.js .menu-panel {
  display: none; position: absolute; z-index: 70;
  right: 0; top: calc(100% + 14px);
  width: min(700px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 110px); overflow-y: auto;
  box-shadow: 0 18px 50px rgba(10, 58, 73, 0.22);
}
.js .menu-panel.is-open { display: block; }
@media (max-width: 719px) {
  .js .menu-wrap { position: static; }
  .js .menu-panel { left: var(--gutter); right: var(--gutter); width: auto; top: calc(100% + 8px); }
}

/* ---------- Yleiset osiot ---------- */

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--wash { background: var(--sun-wash); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--teal-deep); color: #e6f0f2; }

h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--teal-deep); }
h2 { margin: 0 0 1.8rem; font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 700; }
h2::after {
  content: ""; display: block; width: 64px; height: 6px; border-radius: 6px;
  background: var(--sun); margin-top: 0.75rem;
}
h3 { margin: 0 0 0.6rem; font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 700; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1rem; }

.lead {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  line-height: 1.4; margin: 0 0 1.6rem; color: var(--teal-deep);
}

.pointer-link {
  display: inline-flex; align-items: flex-start; gap: 0.55rem; font-weight: 700;
}
.pointer-link svg { flex: none; width: 1.8rem; height: 1.8rem; color: var(--coral-deep); }
.pointer-link:hover svg { color: var(--teal-deep); }

.two-col { display: grid; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .two-col--text-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .two-col--text-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .two-col--top { align-items: start; }
}

/* ---------- Avaus ---------- */

.hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--sun-wash) 0%, var(--white) 100%);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 0;
}
.hero-flower { --flower-centre: currentColor; position: absolute; color: var(--sun); opacity: 0.28; pointer-events: none; }
.hero-flower--a { width: clamp(160px, 26vw, 340px); height: auto; left: -60px; top: -50px; }
.hero-flower--b { width: clamp(130px, 20vw, 260px); height: auto; right: -50px; top: 150px; color: var(--coral); opacity: 0.16; }
.hero .container { position: relative; }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 700; color: var(--teal-deep);
  font-size: clamp(2.5rem, 7.5vw, 4.8rem); line-height: 1.05; letter-spacing: -0.01em;
}
.hero blockquote { margin: clamp(1.4rem, 3vw, 2rem) auto 0; max-width: 32ch; }
.hero blockquote p {
  margin: 0 0 0.5rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.3; color: var(--ink);
}
.hero blockquote footer { font-weight: 700; color: var(--coral-deep); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.8rem; }
.hero-image { margin-top: clamp(2rem, 5vw, 3.2rem); }
.hero-image img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%;
  border-radius: 34px 34px 0 0;
}
@media (max-width: 640px) { .hero-image img { aspect-ratio: 4 / 3; border-radius: 24px 24px 0 0; } }

.facts { background: var(--teal-deep); color: #e6f0f2; }
.facts-list {
  list-style: none; margin: 0 auto; padding: 1.8rem 0;
  width: min(1100px, 100% - 2 * var(--gutter));
  display: grid; gap: 1.2rem 2rem;
}
@media (min-width: 760px) { .facts-list { grid-template-columns: repeat(3, 1fr); } }
.facts-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.facts-list svg { flex: none; width: 30px; height: 30px; color: var(--sun); margin-top: 0.15rem; }
.facts-list strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--white); line-height: 1.25; }
.facts-list span { font-size: 0.98rem; }

/* ---------- Esittely ---------- */

.portrait { position: relative; max-width: 420px; margin-inline: auto; }
.portrait::before {
  content: ""; position: absolute; z-index: 0;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); left: -9%; bottom: -7%;
}
.portrait img {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 22%;
  border-radius: 999px 999px 30px 30px;
}

.signature { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-deep); margin-top: 1.6rem; }
.signature em { display: block; font-size: 1.7rem; margin-bottom: 0.15rem; }

.about-grid { display: grid; gap: 2.4rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.about-grid h3 { display: flex; align-items: center; gap: 0.6rem; }
.about-grid h3 svg { width: 28px; height: 28px; color: var(--sun-deep); flex: none; }
.about-grid p { margin: 0 0 1.1rem; }

.signoff {
  margin-top: clamp(2rem, 5vw, 3rem); padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--sun-wash); border-radius: var(--leaf);
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.signoff svg { width: 54px; height: 54px; color: var(--sun-deep); flex: none; }
.signoff p { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--teal-deep); line-height: 1.35; }
.signoff strong { display: block; font-size: clamp(1.5rem, 3.4vw, 2rem); }

/* ---------- Mitä musiikkiterapia on ---------- */

.statement { display: grid; gap: 1rem; }
@media (min-width: 860px) { .statement { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 4rem; align-items: start; } }
.statement p {
  margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.6; color: var(--ink);
}

/* ---------- Kohderyhmät ---------- */

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  padding: 1.6rem 1.5rem 1.7rem; border-radius: var(--leaf);
  background: var(--sun-wash);
}
.tile:nth-child(3n+2) { background: var(--mist); }
.tile:nth-child(3n+3) { background: var(--coral-wash); }
.tile svg { width: 34px; height: 34px; margin-bottom: 0.7rem; color: var(--sun-deep); }
.tile:nth-child(3n+2) svg { color: var(--teal); }
.tile:nth-child(3n+3) svg { color: var(--coral); }
.tile h3 { font-size: 1.25rem; }
.tile p { margin: 0; font-size: 1.05rem; line-height: 1.55; }

.intro-note { max-width: 62ch; margin: 0 0 2rem; font-size: 1.15rem; }

/* ---------- Tavoitteet (tumma osio) ---------- */

.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .goals { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.goals li { padding: 1.6rem 0; border-top: 2px solid rgba(255, 255, 255, 0.22); }
.goals h3 { color: var(--sun); font-size: 1.3rem; }
.goals p { margin: 0; color: #e6f0f2; }
.section--dark .intro-note { color: #e6f0f2; }

/* ---------- Menetelmät ---------- */

.checks { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.checks li { position: relative; padding: 0 0 0.9rem 2.1rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 4px var(--sun-wash);
}
.arviointi { margin: 1.6rem 0 0.8rem; font-weight: 700; color: var(--teal-deep); }

.photo { margin: 0; }
.photo img { width: 100%; object-fit: cover; }
.photo--round img { aspect-ratio: 3 / 2; border-radius: var(--leaf); }
.photo--tall img { aspect-ratio: 3 / 4; border-radius: 200px 200px 30px 30px; }
@media (max-width: 859px) { .photo--tall { max-width: 360px; margin-inline: auto; } }

/* ---------- Hinnasto ---------- */

.price-grid { display: grid; gap: 1.4rem; margin-top: 2rem; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-tile {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--leaf);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
}
.price-tile--wide { grid-column: 1 / -1; }
.price-tile--accent { background: var(--mist); border-color: transparent; }
.price-tile h3 { font-size: 1.4rem; }
.price-tile p { margin: 0 0 1rem; }
.price-tile .pointer-link { margin-top: 0.2rem; }
.price-items { display: grid; gap: 1.2rem; margin-top: 0.6rem; }
@media (min-width: 760px) { .price-items { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
.price-item { background: var(--sun-wash); border-radius: 20px; padding: 1.3rem 1.4rem 0.4rem; }
.price-name { font-weight: 700; color: var(--teal-deep); margin: 0 0 0.2rem !important; }
.price-amount { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 700; line-height: 1.1; color: var(--teal-deep); margin: 0 0 0.6rem !important; }
.price-amount small { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.price-tile strong { color: var(--teal-deep); }

/* ---------- Toimitilat ---------- */

.access-box {
  margin-top: 1.6rem; padding: 1.3rem 1.5rem;
  background: var(--sun-wash); border-left: 6px solid var(--sun); border-radius: 0 18px 18px 0;
}
.access-box h3 { margin-bottom: 0.4rem; }
.access-box p { margin: 0 0 0.9rem; }
.access-box p:last-child { margin-bottom: 0; }
.map-link { margin: 1.2rem 0 0 !important; }

/* ---------- Muut palvelut ---------- */

.piano-tiles { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 640px) { .piano-tiles { grid-template-columns: 1fr 1fr; } }
.piano-tile { background: var(--white); border-radius: 20px; padding: 1.2rem 1.3rem; }
.piano-tile strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--teal-deep); margin-bottom: 0.3rem; line-height: 1.3; }
.piano-tile span { font-size: 1.02rem; line-height: 1.5; display: block; }
.chips { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li { background: var(--white); border: 2px solid var(--sun); border-radius: 999px; padding: 0.35rem 1rem; font-weight: 600; font-size: 1.02rem; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.cta-line p { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--teal-deep); max-width: 30ch; line-height: 1.3; }

/* ---------- Yhteystiedot ja lomake ---------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.company-line { margin: 0 0 1.6rem; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  border-radius: 20px; background: var(--mist); text-decoration: none; color: var(--ink);
}
.contact-link:hover { background: var(--sun-wash); color: var(--ink); }
.contact-link .ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; color: var(--ink); }
.contact-link .ico svg { width: 26px; height: 26px; }
.contact-link small { display: block; font-size: 0.95rem; color: var(--ink-soft); }
.contact-link b { font-family: var(--serif); font-size: clamp(1.15rem, 3.2vw, 1.5rem); color: var(--teal-deep); overflow-wrap: anywhere; }

.form { background: var(--sun-wash); border-radius: var(--leaf); padding: clamp(1.5rem, 4vw, 2.4rem); }
.form h3 { margin-bottom: 1.2rem; }
.field { margin-bottom: 1.2rem; }
label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #5c7881; border-radius: 14px; padding: 0.7rem 0.9rem; min-height: 50px;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 2px; border-color: var(--teal-deep); }
.form-note { margin: 1rem 0 0; font-size: 0.97rem; color: var(--ink-soft); max-width: 52ch; }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status:empty { display: none; }

/* ---------- Alatunniste ---------- */

.site-footer { background: var(--teal-deep); color: #e3eef1; padding: clamp(2.5rem, 6vw, 3.8rem) 0; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--white); }
.footer-brand svg { width: 40px; height: 40px; color: var(--sun); }
.site-footer p { margin: 0 0 0.35rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.7rem; }

/* ---------- Tietosuojaseloste ---------- */

.legal .container { padding-bottom: 1rem; }
.legal h1 { font-family: var(--serif); color: var(--teal-deep); font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 2rem; }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2.4rem 0 0.8rem; }
.legal h2::after { display: none; }
.legal ol li, .legal ul li { margin-bottom: 0.8rem; }
.legal strong { color: var(--teal-deep); }

@media print {
  .site-header, .skip, .form, .hero-flower { display: none !important; }
  body { font-size: 12pt; }
}
