/* =========================================================
   Avila – etusivu (konsepti v3)
   Avilan turkoosi paletti, brändin omat fontit (Abril + Lato)
   ========================================================= */

:root {
  --teal-900: #022521;
  --teal-800: #00554B;
  --teal-700: #02665B;
  --mint: #06D1AC;
  --mint-light: #7DE8D2;
  --mint-50: #EEF7F5;
  --white: #FFFFFF;

  --ink: #14302B;
  --ink-soft: #4C625D;
  --on-mint: #0B3D36;
  --on-dark-soft: rgba(255, 255, 255, .8);
  --line: #D6E6E5;
  --line-dark: rgba(255, 255, 255, .18);
  --error: #B42318;

  --display: "Abril Fatface", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1280px;
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(72px, 8vw, 120px);
  --header-h: 80px;
  --radius: 0;
  --container-left: max(var(--gutter), (100vw - var(--max)) / 2);
}

/* ---------- Perusta ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
strong { font-weight: 700; }

::selection { background: var(--mint); color: var(--teal-900); }
:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; }
.site-header :focus-visible,
.menu :focus-visible,
.hero :focus-visible,
.why :focus-visible,
.contact__intro :focus-visible,
.site-footer :focus-visible { outline-color: var(--mint); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--radius);
  background: var(--mint); color: var(--teal-900);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---------- Typografia ---------- */

.h2,
.hero__title,
.service__name,
.reference__quote p,
.figures dd,
.jobseekers__title,
.menu__links a {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
}

.h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.125rem);
  line-height: 1.1;
  color: var(--teal-900);
  overflow-wrap: break-word;
}

/* ---------- Painikkeet ja linkit ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--mint { background: var(--mint); color: var(--teal-900); }
.btn--mint:hover { background: #3EDDBF; }
.btn--primary { background: var(--teal-700); color: var(--white); }
.btn--primary:hover { background: var(--teal-800); }
.btn--dark { background: var(--teal-900); color: var(--white); }
.btn--dark:hover { background: var(--teal-800); }
.btn--outline-dark { border-color: var(--teal-900); color: var(--teal-900); }
.btn--outline-dark:hover { background: var(--teal-900); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 1.125rem; font-size: .9375rem; }
.btn--block { width: 100%; }

.text-link {
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
  text-decoration-color: var(--mint);
  transition: color .18s ease, text-decoration-color .18s ease;
}
.text-link:hover { color: var(--teal-900); text-decoration-color: var(--teal-900); }
.text-link--light { color: var(--white); }
.text-link--light:hover { color: var(--mint-light); text-decoration-color: var(--mint-light); }
.text-link--dark { color: var(--teal-900); text-decoration-color: var(--teal-900); }
.text-link--dark:hover { color: var(--teal-800); }
.text-link--button { padding: 0; border: 0; background: none; cursor: pointer; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--teal-800);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }

.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }

.brand { display: inline-flex; flex: none; color: var(--white); --logo-icon: var(--mint); }
.brand__logo { width: 112px; height: 34.3px; }

.nav ul { display: flex; gap: clamp(1.25rem, 2vw, 2rem); }
.nav a {
  display: inline-block;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover { color: var(--mint-light); }
.nav a.is-active { border-bottom-color: var(--mint); }

.header-actions { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.5rem); margin-left: auto; }
.header-link { padding: .5rem 0; font-size: .9375rem; color: var(--on-dark-soft); text-decoration: none; }
.header-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: .3em; }
.header-link--lang { font-weight: 700; font-size: .875rem; }
.header-cta__short { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .625rem;
  height: 44px;
  padding: 0 .25rem 0 .5rem;
  border: 0;
  background: none;
  color: var(--white);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 14px; }
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: currentColor;
}
.menu-toggle__icon::before { top: 0; box-shadow: 0 6px 0 currentColor; }
.menu-toggle__icon::after { bottom: 0; }

/* Mobiilivalikko */
.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--teal-800);
  color: var(--white);
  overflow-y: auto;
}
.menu::backdrop { background: rgba(2, 37, 33, .5); }
.menu__inner { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 32px; }
.menu__top { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  display: inline-flex; align-items: center; gap: .625rem;
  height: 44px; padding: 0 .25rem 0 .5rem;
  border: 0; background: none; color: var(--white); cursor: pointer;
  font-weight: 700; font-size: .9375rem;
}
.menu-close__icon { position: relative; width: 18px; height: 18px; }
.menu-close__icon::before,
.menu-close__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; background: currentColor;
}
.menu-close__icon::before { transform: rotate(45deg); }
.menu-close__icon::after { transform: rotate(-45deg); }
.menu__links { margin-top: 16px; }
.menu__links a {
  display: block;
  padding: 12px 0;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--white);
  text-decoration: none;
}
.menu__footer { margin-top: auto; padding-top: 32px; display: grid; gap: 20px; }
.menu__contact { font-size: .9375rem; line-height: 1.9; color: var(--on-dark-soft); }
.menu__contact a { margin-left: .4rem; font-weight: 700; color: var(--mint-light); text-decoration: none; }
.menu__secondary { font-size: .9375rem; }
.menu__secondary a { color: var(--on-dark-soft); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--teal-800); color: var(--white); }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  min-height: clamp(540px, calc(100vh - var(--header-h) - 110px), 680px);
}
.hero__content {
  grid-column: 1 / span 5;
  padding: clamp(56px, 7vw, 104px) clamp(0px, 2vw, 32px) clamp(56px, 7vw, 104px) 0;
  container-type: inline-size;
}
.hero__title {
  font-size: min(4.5rem, 11.4cqi);
  line-height: 1.06;
  color: var(--white);
  text-wrap: balance;
}
.hero__lead {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-dark-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }

.hero__media {
  position: absolute;
  z-index: 2;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  background: #9C7653;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }

/* ---------- Heron taustagrafiikka: Avilan puhekuplasta johdettu ympyrä ---------- */

.deco { position: absolute; z-index: 0; pointer-events: none; overflow: visible; }

.deco--hero       { width: 950px; height: 950px; left: calc(var(--container-left) - 225px); top: calc(50% - 415px); color: var(--mint); opacity: .2; }

/* ---------- Grafiikka: Avilan tarkistusmerkki, sävy sävyssä ----------
   Vain Miksi Avila- ja yhteydenotto-osioissa. Merkki on taustaa tummempi, joten se jää taakse,
   ja kuva tai lomake peittää siitä osan. Pitkä varsi jatkuu osion reunan yli.
   Mitat ovat cqi-yksiköitä, joten sijainti seuraa kuvan ja lomakkeen leveyttä. */

.clip { position: relative; overflow: hidden; isolation: isolate; }
.check {
  position: absolute;
  z-index: 0;
  width: 160cqi;
  height: auto;
  aspect-ratio: 5 / 4;
  overflow: visible;
  color: rgba(2, 37, 33, .18);
  pointer-events: none;
}

.why__media,
.contact__form { position: relative; container-type: inline-size; }
.why__media img,
.contact__form .form,
.contact__form .form-success { position: relative; z-index: 1; }

/* Kuva istuu merkin kulmassa. */
.check--why     { left: 7.2cqi; top: -20.1cqi; }
/* Lomakkeen alta näkyy vain kärki, pitkä varsi nousee oikeaan reunaan. */
.check--contact { width: 150cqi; left: -2.5cqi; bottom: -28cqi; }

/* ---------- Asiakaslogot ---------- */

.clients { background: var(--white); }
.clients__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(28px, 3vw, 40px);
}
.clients__label { flex: none; width: 9.5rem; font-size: .875rem; font-weight: 400; line-height: 1.4; color: var(--ink-soft); }
.clients__list { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.clients__list li { display: flex; justify-content: center; min-width: 0; }
.clients__list img { display: block; max-width: 100%; height: auto; opacity: .62; }

/* ---------- Osiot ---------- */

.section { padding-block: var(--section); }

.section--tint { background: var(--mint-50); }

.section-intro { max-width: 46rem; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-intro p { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-soft); }
.section-intro--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  max-width: none;
}
.section-intro--row > p { max-width: 34rem; margin-top: 0; padding-bottom: .35rem; }
.section-intro--row > div { max-width: 40rem; }
.section-intro--row > .text-link { margin-bottom: .5rem; white-space: nowrap; }

/* Palvelut */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 56px) var(--col-gap);
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service__name { font-size: clamp(1.5rem, 1.3rem + .5vw, 1.75rem); line-height: 1.15; color: var(--teal-900); }
.service p { margin: .875rem 0 1.25rem; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }
.service .text-link { margin-top: auto; }

/* Prosessi */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3vw, 40px) var(--col-gap); }
.step { padding: 0; }
.step__num { display: block; font-family: var(--display); font-size: clamp(2.5rem, 2rem + 1vw, 3rem); line-height: 1; color: var(--teal-700); }
.step__title { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--teal-900); }
.step p { margin-top: .5rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }

/* Miksi Avila */
.why { background: var(--teal-800); color: var(--white); }
.why .h2 { color: var(--white); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.why__intro { grid-column: 1 / span 5; grid-row: 1; }
.why__intro p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--on-dark-soft); }
.why__media { grid-column: 7 / -1; grid-row: 1 / span 2; }
.why__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.reasons { grid-column: 1 / span 5; grid-row: 2; margin-top: 2.5rem; display: grid; gap: 1.75rem; }

.reasons h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--white); }
.reasons p { margin-top: .35rem; font-size: 1rem; line-height: 1.6; color: var(--on-dark-soft); }

.figures { margin-top: clamp(64px, 7vw, 104px); }
.figures__title { font-size: 1rem; font-weight: 700; color: var(--white); }
.figures__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--col-gap);
  margin-top: 1.5rem;
}
.figures__list div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; }
.figures dd { font-size: clamp(2.5rem, 2rem + 1.4vw, 3.5rem); line-height: 1; color: var(--mint); }
.figures dt { font-size: .9375rem; color: var(--on-dark-soft); }

/* Asiakastarina */
.reference { background: var(--mint); color: var(--teal-900); }
.reference__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
}
.reference__media { grid-column: 1 / span 5; }
.reference__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.reference__body { grid-column: 7 / -1; }
.reference__label { font-size: 1rem; font-weight: 700; color: var(--on-mint); }
.reference__quote { margin-top: 1.25rem; }
.reference__quote p {
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--teal-900);
  text-indent: -.36em;
}
.reference__cite { margin-top: 1.75rem; font-size: 1rem; line-height: 1.5; color: var(--on-mint); }
.reference__cite strong { color: var(--teal-900); }
.reference__context { max-width: 34rem; margin: 1.25rem 0 1.75rem; font-size: 1rem; color: var(--on-mint); }

/* Asiantuntijat */
.expert-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.expert img { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; object-fit: cover; }
.expert__name { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; color: var(--teal-900); }
.expert__role { font-size: .9375rem; color: var(--ink-soft); }

/* Julkaisut */
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.article__link { display: block; color: inherit; text-decoration: none; }
.article__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.article__meta { margin-top: 1rem; font-size: .875rem; color: var(--ink-soft); }
.article__title {
  margin-top: .35rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--teal-900);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  transition: text-decoration-color .18s ease, color .18s ease;
}
.article__excerpt { margin-top: .5rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.article__link:hover .article__title { color: var(--teal-700); text-decoration-color: var(--mint); }

/* Yhteydenotto */
.contact { background: var(--teal-800); color: var(--white); }
.contact .h2 { color: var(--white); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.contact__intro { grid-column: 1 / span 5; }
.contact__intro > p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--on-dark-soft); }
.contact__form { grid-column: 7 / -1; }

.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 2.25rem; }
.person__img { width: 96px; height: 120px; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); }
.person--text { display: block; margin-top: 1.75rem; }
.person__name { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.person__role { font-size: .9375rem; color: var(--on-dark-soft); }
.person__contact { margin-top: .5rem; font-size: 1rem; line-height: 1.6; }
.person__contact a { color: var(--mint-light); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.person__contact a:hover { text-decoration: underline; text-underline-offset: .25em; }
.contact__general { margin-top: 1.75rem; font-size: .9375rem; color: var(--on-dark-soft); }
.contact__general a { color: var(--white); }

.form,
.form-success {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--col-gap); }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .875rem;
  border: 1px solid #A9C7C1;
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314302B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(6, 209, 172, .35); }
.field.has-error input { border-color: var(--error); }
.field__error { font-size: .875rem; color: var(--error); }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .25rem; }
.form__privacy { font-size: .875rem; color: var(--ink-soft); }
.form__privacy a { color: inherit; }

.form-success:focus { outline: none; }
.form-success__title { margin-bottom: .5rem; font-size: 1.5rem; font-weight: 700; color: var(--teal-900); }
.form-success p { color: var(--ink-soft); }
.form-success__note { margin: 1rem 0 1.25rem; font-size: .875rem; }

/* Työnhakijalle */
.jobseekers { padding-block: clamp(48px, 5vw, 72px); background: var(--mint); color: var(--teal-900); }
.jobseekers__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 1.25rem;
  align-items: center;
}
.jobseekers__title { grid-column: 1 / span 3; font-size: clamp(1.875rem, 1.5rem + 1vw, 2.5rem); line-height: 1.1; }
.jobseekers__text { grid-column: 4 / span 5; font-size: 1rem; color: var(--on-mint); }
.jobseekers__links { grid-column: 9 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }

/* Footer */
.site-footer { background: var(--teal-900); color: var(--white); padding-top: clamp(56px, 6vw, 88px); }
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
}
.footer__brand { grid-column: 1 / span 4; }
.footer__text { margin-top: 1.25rem; font-size: .9375rem; line-height: 1.7; color: var(--on-dark-soft); }
.footer__text a { color: var(--white); }
.footer__nav { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--col-gap); }
.footer__heading { margin-bottom: .875rem; font-size: .9375rem; font-weight: 700; color: var(--mint-light); }
.footer__nav ul { display: grid; gap: .45rem; font-size: .9375rem; }
.footer__nav a { color: var(--on-dark-soft); text-decoration: none; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: clamp(48px, 5vw, 72px);
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: .875rem;
  color: rgba(255, 255, 255, .65);
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }

/* =========================================================
   Responsiivisuus
   ========================================================= */

@media (max-width: 1179px) {
  .nav, .header-link { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 1099px) {
  .deco--hero { width: 260px; height: 260px; left: auto; right: -170px; top: -120px; bottom: auto; }
  .hero__inner { min-height: 0; }
  .hero__content { grid-column: 1 / -1; padding: 48px 0 40px; }
  .hero__title { font-size: min(4.25rem, 11cqi); }
  .hero__media { position: static; width: 100%; aspect-ratio: 16 / 10; }

  .clients__inner { flex-direction: column; align-items: stretch; }
  .clients__label { width: auto; }
  .clients__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; row-gap: 28px; }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expert-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .jobseekers__title { grid-column: 1 / -1; }
  .jobseekers__text { grid-column: 1 / span 7; }
  .jobseekers__links { grid-column: 8 / -1; }
}

@media (max-width: 959px) {
  :root { --header-h: 68px; }

  /* Pinotussa asettelussa kuvan alla on heti tekstiä, joten merkki jätetään pois. */
  .check--why { display: none; }

  .why__intro, .reasons, .why__media { grid-column: 1 / -1; }
  .why__media { grid-row: auto; margin-top: 40px; }
  .reasons { grid-row: auto; }
  .figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .reference__media { grid-column: 1 / span 5; }
  .reference__body { grid-column: 6 / -1; }
  .reference__quote p { font-size: clamp(1.375rem, 1rem + 1.2vw, 1.75rem); }

  .article-list { grid-template-columns: 1fr; max-width: 36rem; }

  .contact__intro, .contact__form { grid-column: 1 / -1; }
  .contact__form { margin-top: 40px; }

  .jobseekers__text, .jobseekers__links { grid-column: 1 / -1; }
  .jobseekers__links { justify-content: flex-start; }

  .footer__brand, .footer__nav { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }

  .brand__logo { width: 96px; height: 29.4px; }
  .header-actions { gap: .5rem; }

  .hero__title { font-size: min(3.25rem, 11.6cqi); }
  .hero__actions .btn { width: 100%; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 55% 40%; }

  .clients__list { column-gap: 12px; row-gap: 24px; }
  .clients__list img { max-height: 28px; width: auto; }

  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .expert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .expert img { max-width: none; }
  .section-intro--row { flex-direction: column; align-items: flex-start; }

  .figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .reference__media, .reference__body { grid-column: 1 / -1; }
  .reference__media img { aspect-ratio: 1 / 1; object-position: 50% 22%; }
  .reference__body { margin-top: 32px; }
  .reference__quote p { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.75rem); }

  .form__row { grid-template-columns: 1fr; }
  .form__submit .btn { width: 100%; }

  .jobseekers__links .btn { width: 100%; }

  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 559px) {
  .header-cta__long { display: none; }
  .header-cta__short { display: inline; }
  .header-cta { min-height: 40px; padding: 0 .875rem; font-size: .875rem; }
}

@media (max-width: 419px) {
  .menu-toggle__label {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .menu-toggle { position: relative; width: 44px; justify-content: center; padding: 0; margin-right: -10px; }
}

@media (max-width: 359px) {
  .header-cta { display: none; }
  .btn { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
