/* Fontit (ladataan fonts/-kansiosta) */
/* latin-ext */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/caprasimo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/caprasimo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Johannes Kiias – sivuston tyylit
   Tekstit muokataan index.html-tiedostossa. Tänne tarvitsee koskea vain,
   jos haluat muuttaa värejä, fontteja tai asettelua.
   ========================================================================== */

/* --- Värit ja fontit ----------------------------------------------------- */
:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);

  --gutter: clamp(20px, 5vw, 72px);
}

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

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent); text-underline-offset: 3px; }
ul { list-style: none; padding: 0; margin: 0; }
svg { display: block; flex: none; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Napit --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 400;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 8.8px 15.84px;
  border-radius: 999px;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }

.btn-green { background: var(--color-accent-2-700); color: #fff; }
.btn-green:hover { background: var(--color-accent-2-800); color: #fff; }

.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.btn-ghost { color: var(--color-accent); padding-inline: 4.4px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Yhteiset tekstityylit ---------------------------------------------- */
.kicker {
  display: block;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 14px;
}
.kicker-green { color: var(--color-accent-2-700); }
.kicker-orange { color: var(--color-accent-700); }
.kicker-grey { color: var(--color-neutral-700); margin-bottom: 0; }

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}
.section-text {
  font-size: 15.5px; line-height: 28px;
  color: var(--color-neutral-800);
  max-width: 50ch;
  margin-top: 24px;
}

/* --- Kuvat --------------------------------------------------------------- */
.photo {
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-hero    { width: 100%; aspect-ratio: 3/4; }
.photo-hero img    { clip-path: inset(0 round 190px 190px 56px 56px); }
.photo-family  { width: min(400px, 100%); aspect-ratio: 4/5; justify-self: end; }
.photo-family img  { clip-path: inset(0 round 200px 200px 48px 48px); }
.photo-session { margin-top: 36px; width: 100%; aspect-ratio: 3/2; }
.photo-session img { clip-path: inset(0 round 40px); }
.photo-kranio  { margin-top: 24px; width: min(300px, 100%); aspect-ratio: 3/4; align-self: flex-end; }
.photo-kranio img  { clip-path: inset(0 round 150px); }
.photo-about   { width: min(360px, 100%); aspect-ratio: 3/4; }
.photo-about img   { clip-path: inset(0 round 56px 180px 56px 180px); }

/* --- Navigaatio ---------------------------------------------------------- */
.nav {
  display: flex; align-items: center; gap: 17.6px;
  padding: 13.2px max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-right: auto;
}
.nav a { color: var(--color-text); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent-700); }
.nav a.btn { color: #fff; }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 6px 14px; padding-block: 12px; }
  .nav-brand { width: 100%; margin-bottom: 4px; }
  .nav a.btn { margin-left: auto; }
}

/* --- Etusivun yläosa (hero) ---------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(24px, 5vw, 80px);
  align-items: center;
}
.hero-blob {
  position: absolute; right: -120px; top: -200px;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--color-accent-2-200);
  z-index: -1; pointer-events: none;
}
.hero .kicker { margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.08;
  margin-left: -0.028em;
  max-width: 14ch;
}
.hero h1 span { display: block; }
.hero-text {
  font-size: 17px; line-height: 28px;
  max-width: 52ch;
  margin-top: 36px;
}
.hero .actions { margin-top: 32px; }
.hero-figure { position: relative; width: min(380px, 100%); justify-self: end; }
.hero-dot {
  position: absolute; left: -36px; bottom: 24px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--color-accent-300);
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-figure { justify-self: start; }
}

/* --- Kaksi palvelukorttia ------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  padding: 0 0 84px;
}
.card {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: var(--color-text);
  border-radius: 56px;
  padding: 40px clamp(24px, 4vw, 48px);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-green { background: var(--color-accent-2-200); }
.card-orange { background: var(--color-accent-100); }
.card .kicker { margin-bottom: 0; }
.card-title { font-family: var(--font-heading); font-size: 32px; line-height: 1.15; }
.card-text { font-size: 15.5px; line-height: 26px; max-width: 44ch; }
.card-green .card-text { color: var(--color-accent-2-900); }
.card-orange .card-text { color: var(--color-neutral-800); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--color-accent-700);
}

/* --- Perheen tuki -------------------------------------------------------- */
.family {
  background: var(--color-accent-2-100);
  border-radius: 56px;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px);
  margin: 0 0 84px;
}
.family-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px clamp(24px, 5vw, 72px);
  align-items: center;
}
.family-intro .section-title { max-width: 22ch; }
.family-intro .section-text { max-width: 54ch; }
.family-intro strong { font-weight: 600; color: var(--color-accent-2-800); }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px 32px;
  margin-top: 48px;
}
.services h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.services p { font-size: 15px; line-height: 25px; color: var(--color-neutral-800); }

.family-footer {
  display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center;
  margin-top: 44px;
}
.family-footer .note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--color-accent-2-800);
}

/* --- Kraniosakraaliterapia ---------------------------------------------- */
.kranio {
  padding: 0 0 84px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px clamp(24px, 5vw, 96px);
  align-items: start;
}
.kranio .section-title { max-width: 20ch; }

.bullets {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15.5px; line-height: 24px;
}
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets li::before {
  content: ""; flex: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-accent);
  margin-top: 6px;
}

.kranio-side { display: flex; flex-direction: column; gap: 16px; }

.prices { display: flex; flex-direction: column; gap: 12px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 16px 26px;
}
.price-row .label { font-weight: 600; }
.price-row .price { font-family: var(--font-heading); font-size: 26px; }
.price-row.highlight { background: var(--color-accent-200); }
.price-row.highlight .label,
.price-row.highlight .price { color: var(--color-accent-800); }
.price-note { font-size: 13.5px; color: var(--color-neutral-700); padding: 0 12px; }

.location {
  display: flex; gap: 12px; align-items: center;
  font-size: 14.5px; color: var(--color-neutral-800);
  padding: 4px 6px;
}
.location svg { stroke: var(--color-accent); }
.kranio-side .actions { margin-top: 8px; }

/* --- Minusta ------------------------------------------------------------- */
.about {
  padding: 20px 0 84px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px clamp(24px, 5vw, 96px);
  align-items: start;
}
.about .section-title { max-width: 18ch; }

.education {
  margin-top: 36px;
  background: var(--color-surface);
  border-radius: 32px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.education ul { display: flex; flex-direction: column; gap: 14px; }
.education li { display: flex; flex-direction: column; gap: 2px; }
.education .degree { font-weight: 600; font-size: 15.5px; }
.education .school { font-size: 14px; color: var(--color-neutral-700); }

/* --- Yhteystiedot -------------------------------------------------------- */
.contact { padding: 0 0 56px; }
.contact-box {
  background: var(--color-accent-2-200);
  border-radius: 56px;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
  align-items: center;
}
.contact-box .section-title { font-size: clamp(26px, 2.8vw, 36px); max-width: 20ch; }
.contact-box .section-text { color: var(--color-accent-2-900); max-width: 46ch; margin-top: 20px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-links .btn-green { white-space: nowrap; }

/* --- Alatunniste --------------------------------------------------------- */
.footer {
  padding: 24px 0 56px;
  font-size: 13px; line-height: 24px;
  color: var(--color-neutral-700);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
