/* Vauras mieli – staattinen sivusto */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --spruce: #103d3b;
  --spruce-deep: #0b2e2d;
  --spruce-line: #2f5f5b;
  --teal: #1b6b66;
  --ground: #f2f5f3;
  --ground-tint: #e4ece8;
  --card: #ffffff;
  --ink: #142524;
  --ink-soft: #33443f;
  --muted: #40524f;
  --line: #d5deda;
  --line-strong: #8fa39d;
  --on-dark: #f2f5f3;
  --on-dark-soft: #d3e0dc;
  --accent: #f0b63f;
  --accent-hover: #f6c865;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

a {
  color: var(--spruce);
}

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

.on-light :focus-visible,
.form :focus-visible {
  outline-color: var(--spruce);
}

[id] {
  scroll-margin-top: 24px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Painikkeet */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--dark {
  background: var(--spruce);
  color: var(--on-dark);
}

.btn--dark:hover {
  background: var(--spruce-deep);
}

.btn--small {
  min-height: 44px;
  padding: 11px 22px;
  font-size: 17px;
}

/* Hero */

.hero {
  background: var(--spruce);
  color: var(--on-dark);
  overflow: hidden;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-weight: 500;
  font-size: 17px;
}

.nav a:not(.btn) {
  color: var(--on-dark);
  text-decoration: none;
  padding: 10px 0;
}

.nav a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 48px;
}

.hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 72px 0 96px;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  hyphens: manual;
}

.hero__lead {
  max-width: 560px;
  font-size: 20px;
  color: var(--on-dark-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 8px;
}

.hero__call {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  padding: 10px 0;
}

.hero__call:hover {
  text-decoration-color: var(--accent);
}

.hero__portrait {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  align-self: flex-end;
}

.hero__portrait::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 0;
  bottom: -18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.hero__portrait::after {
  content: "";
  position: absolute;
  left: -4%;
  top: 6%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.hero__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Palvelut */

.services {
  padding-block: 112px 96px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
}

.section-head > div {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head > p {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  color: var(--muted);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 24px;
}

.card {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: #5b6e6a;
}

.card h3 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.card p {
  flex-grow: 1;
  font-size: 17px;
  color: var(--muted);
}

.card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  color: var(--spruce);
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.card__link svg {
  transition: transform 0.15s ease;
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* Minusta */

.about {
  background: var(--ground-tint);
}

.about__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 72px;
  padding-block: 104px;
}

.about__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.about__text p {
  color: var(--ink-soft);
}

.about__text .about__lead {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

.about__text .btn {
  margin-top: 8px;
}

.trust {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--spruce);
  color: var(--on-dark);
  border-radius: 28px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.trust h3 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.trust p {
  font-size: 17px;
  color: var(--on-dark-soft);
}

.trust ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.trust li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--spruce-line);
  font-weight: 600;
  line-height: 1.4;
}

.trust li:last-child {
  padding-bottom: 0;
}

.trust li svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Yhteys */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 72px;
  padding-block: 112px;
}

.contact__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.contact__lead {
  font-size: 20px;
  color: var(--muted);
}

.contact__ways {
  width: 100%;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
}

.way {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #c5d1cc;
  color: var(--ink);
  text-decoration: none;
}

.way:last-child {
  border-bottom: 1px solid #c5d1cc;
}

.way__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.way:hover .way__icon {
  transform: scale(1.08);
}

.way__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.way__label {
  font-size: 15px;
  color: var(--muted);
}

.way__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 5.6vw, 26px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.form {
  flex: 1 1 440px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 16px;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--spruce);
  outline-offset: 1px;
  border-color: var(--spruce);
  background: var(--card);
}

.form .btn {
  align-self: flex-start;
}

.form__note {
  font-size: 15px;
  color: var(--muted);
}

.form__status {
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Alatunniste */

.site-footer {
  background: var(--spruce-deep);
  color: var(--on-dark-soft);
  font-size: 16px;
}

.site-footer__inner {
  padding-block: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 64px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer address strong {
  color: var(--on-dark);
}

.site-footer address a {
  color: var(--on-dark-soft);
  padding: 4px 0;
}

.site-footer address a:hover {
  color: var(--on-dark);
}

.site-footer__copy {
  padding-top: 24px;
  border-top: 1px solid #244b48;
  font-size: 15px;
  color: #a9bdb8;
}

/* Pienet näytöt */

@media (max-width: 720px) {
  body {
    font-size: 18px;
  }

  :root {
    --gutter: 20px;
  }

  /* Ylätunniste: yksi rivi, logo + hillitty yhteysnappi. Sivun pääpainike on vasta heron tekstin jälkeen. */
  .site-header {
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 14px;
  }

  .brand {
    gap: 10px;
    font-size: 22px;
    white-space: nowrap;
  }

  .brand svg {
    width: 24px;
    height: 24px;
  }

  .nav {
    flex-wrap: nowrap;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .nav .btn {
    min-height: 44px;
    padding: 8px 18px;
    background: transparent;
    color: var(--on-dark);
    border: 1.5px solid #8fb0aa;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
  }

  .nav .btn:hover {
    background: rgba(242, 245, 243, 0.1);
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__text {
    flex: none;
    padding: 28px 0 0;
    gap: 20px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.700vw, 46px);
    line-height: 1.05;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__call {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font-size: 17px;
  }

  .hero__portrait {
    flex: none;
    align-self: center;
    width: min(300px, 80%);
    margin-top: 16px;
  }

  /* Palvelukortit: ikoni ja otsikko samalle riville, numero pois. */
  .card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 20px;
  }

  .card__icon {
    width: 48px;
    height: 48px;
  }

  .card__icon svg {
    width: 24px;
    height: 24px;
  }

  .card__num {
    display: none;
  }

  .card h3 {
    margin: 0;
    font-size: 25px;
  }

  .card p,
  .card__link {
    grid-column: 1 / -1;
  }

  .card__link {
    justify-self: start;
    padding: 10px 0;
  }

  h2 {
    font-size: clamp(30px, 8.200vw, 40px);
  }

  .services {
    padding-block: 72px 64px;
    gap: 40px;
  }

  .about__inner,
  .contact {
    padding-block: 72px;
  }

  .card {
    padding: 24px 22px 20px;
  }

  .form {
    padding: 28px 24px;
  }

  .trust {
    padding: 32px 24px;
  }

  .about__text .about__lead {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .about__text .btn,
  .form .btn {
    align-self: stretch;
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
