/* =========================================
   AAVAKANGAS & CO. – KOKO SIVUSTON TYYLIT
   ========================================= */
:root {
  --forest: #514c46;
  --charcoal: #35322f;
  --sand: #ded6cb;
  --snow: #f7f5f1;
  --background: var(--snow);
  --text: #45413c;
  --muted: #6b655e;
  --line: #ded6cb;
  --white: #ffffff;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
}

/* PERUSASETUKSET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--background); color: var(--text);
  font-family: var(--font-body); font-size: 17px; font-weight: 400;
  line-height: 1.8; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--sand); color: var(--forest); }
:focus-visible { outline: 3px solid #a8864b; outline-offset: 6px; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 20px; background: var(--snow); color: var(--forest);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--content));
  margin-inline: auto;
}

/* TYPOGRAFIA */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.5vw, 104px); line-height: 1.12; letter-spacing: -0.035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(36px, 4.7vw, 66px); line-height: 1.16; letter-spacing: -0.025em; }
h3 { font-size: clamp(27px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -0.015em; }
.eyebrow {
  margin-bottom: 28px; font-family: var(--font-body); font-size: 14px;
  line-height: 1.8; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
}

/* PAINIKKEET */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 18px 30px; border: 1px solid var(--forest);
  border-radius: 0; background: var(--forest); color: var(--snow);
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  font-weight: 400; letter-spacing: 0.12em; text-align: center;
  text-decoration: none; text-transform: uppercase; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button:hover { background: var(--charcoal); border-color: var(--charcoal); }
.button--light { background: var(--snow); border-color: var(--snow); color: var(--forest); }
.button--light:hover { background: var(--sand); border-color: var(--sand); color: var(--forest); }

/* YLÄVALIKKO */
.header {
  position: sticky; top: 0; z-index: 30; background: var(--snow);
  color: var(--forest); border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; min-height: 100px; padding-block: 14px;
}
.brand {
  font-family: var(--font-heading); font-size: clamp(19px, 2.2vw, 29px);
  font-weight: 400; line-height: 1.25; letter-spacing: 0.045em;
  text-decoration: none; text-transform: uppercase;
}
.header .brand { display: block; flex-shrink: 0; }
.brand__logo { display: block; width: 300px; max-width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav > a:not(.button) {
  padding-block: 12px; font-size: 14px; letter-spacing: 0.06em;
  text-decoration: none; text-underline-offset: 7px;
}
.nav > a:not(.button):hover { text-decoration: underline; }
.header .button--light { background: var(--forest); border-color: var(--forest); color: var(--snow); }
.header .button--light:hover { background: var(--charcoal); border-color: var(--charcoal); }
.menu-toggle {
  display: none; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--forest); border-radius: 0;
  background: transparent; color: var(--forest); font-size: 14px; cursor: pointer;
}

/* ALOITUS */
.hero {
  position: relative; display: grid; place-items: center;
  min-height: min(860px, calc(100svh - 100px));
  padding: 110px var(--gutter) 70px; overflow: hidden;
  background: var(--forest); color: var(--snow); text-align: center;
}
.hero__image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero::after { content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none; }
.hero:has(.hero__image)::after {
  background: linear-gradient(180deg, rgb(44 40 35 / 38%), rgb(44 40 35 / 65%));
}
.hero__content { position: relative; z-index: 1; width: 100%; max-width: 980px; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { max-width: 1200px; margin-inline: auto; }
.hero h1::after {
  content: ""; display: block; width: 46px; height: 1px;
  margin: 36px auto 0; background: var(--sand);
}
.hero__description {
  max-width: 620px; margin: 28px auto 40px; color: var(--snow);
  font-family: var(--font-heading); font-size: clamp(21px, 2.4vw, 29px);
  font-style: italic; line-height: 1.6;
}
.hero .button--light { background: transparent; border-color: var(--sand); color: var(--snow); }
.hero .button--light:hover { background: var(--snow); border-color: var(--snow); color: var(--forest); }
.hero__links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 36px; margin-top: 72px;
}
.hero__links a {
  padding-block: 8px; color: var(--sand); border-bottom: 1px solid transparent;
  font-size: 14px; letter-spacing: 0.08em; text-decoration: none;
}
.hero__links a:hover { color: var(--snow); border-bottom-color: var(--sand); }

/* SISÄLTÖOSIOT JA PALVELUKORTIT */
.section { padding-block: clamp(80px, 10vw, 144px); }
.section--light { background: var(--sand); }
.section--dark { background: var(--forest); color: var(--snow); }
.section__heading {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: end; gap: 70px; margin-bottom: 64px;
}
.section__heading p:not(.eyebrow) { max-width: 470px; color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.card { min-width: 0; }
.card__image {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  margin-bottom: 30px; overflow: hidden; background: var(--sand); color: var(--forest);
}
.card:nth-child(2) .card__image { background: #e9e4dc; color: var(--text); }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { padding: 24px; font-size: 14px; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; }
.card h3 { margin-bottom: 16px; }
.card p { max-width: 500px; color: var(--muted); }

/* =========================================
   UUDISTETTU TUOMAKSEN ESITTELY
   Otsikko koko leveydellä, kuva ja teksti vierekkäin,
   osaaminen ja mentorointi tasaisina alapalstoina.
   ========================================= */
.about-section { background: var(--forest); }
.about-heading { max-width: 1000px; margin-bottom: clamp(46px, 6vw, 78px); }
.about-heading .eyebrow { color: var(--sand); }
.about-heading h2 {
  max-width: 1000px; font-size: clamp(38px, 5vw, 68px);
  line-height: 1.18; letter-spacing: -0.025em;
}
.about-intro {
  display: grid; grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: center; gap: clamp(44px, 7vw, 100px);
}
.about-portrait { width: 100%; max-width: 300px; }
.about-portrait img {
  width: 100%; aspect-ratio: 4 / 5; height: auto;
  object-fit: cover; object-position: center 24%;
  background: var(--sand);
}
.about-portrait figcaption {
  margin-top: 18px; color: var(--snow); font-family: var(--font-heading);
  font-size: clamp(24px, 2.3vw, 30px); line-height: 1.3;
}
.about-intro__text { max-width: 650px; }
.about-intro__text p { color: #f2eee8; font-size: 18px; line-height: 1.85; }
.about-intro__text p + p { margin-top: 24px; }
.about-intro__text .about-lead {
  color: var(--snow); font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px); line-height: 1.3;
  margin-bottom: 26px;
}
.about-columns {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 7vw, 110px);
  margin-top: clamp(76px, 9vw, 125px);
}
.about-column { min-width: 0; }
.about-column h3 {
  margin-bottom: 24px; color: var(--snow);
  font-size: clamp(27px, 2.8vw, 36px); line-height: 1.3;
}
.about-column p { color: #f2eee8; font-size: 18px; line-height: 1.85; }
.about-column p + p { margin-top: 22px; }
.about-action { margin-top: 54px; }

/* YHTEYSTIEDOT */
.contact {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: start; gap: 80px;
}
.contact__intro p:last-child { max-width: 500px; margin-top: 28px; color: #59534c; font-size: 18px; }
.contact__details { margin: 46px 0 0; }
.contact__row { padding-block: 24px; border-top: 1px solid #b5aca0; }
.contact__row:last-child { border-bottom: 1px solid #b5aca0; }
.contact__row dt { margin-bottom: 8px; color: #59534c; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact__row dd { margin: 0; font-family: var(--font-heading); font-size: clamp(22px, 2.5vw, 28px); line-height: 1.5; overflow-wrap: anywhere; }
.contact__row a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* YHTEYDENOTTOLOMAKE */
.contact__form-wrap { width: 100%; min-width: 0; }
.contact-form { width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-form label { display: block; min-width: 0; }
.contact-form label > span {
  display: block; margin-bottom: 9px; color: #59534c; font-size: 13px;
  line-height: 1.5; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
}
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin: 0; border: 1px solid #aaa196;
  border-radius: 0; background: rgb(247 245 241 / 58%); color: var(--text);
  font-family: var(--font-body); font-size: 17px; font-weight: 400;
  line-height: 1.6; outline: none; box-shadow: none; appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.contact-form input { min-height: 58px; padding: 13px 16px; }
.contact-form textarea { min-height: 190px; padding: 15px 16px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #81796f; opacity: 1; }
.contact-form input:hover, .contact-form textarea:hover { border-color: #7d756c; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--forest); background: var(--snow); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding-top: 4px; }
.form-actions .button { flex: 0 0 auto; }
.smallprint { max-width: 310px; margin: 0; color: #696159; font-size: 13px; line-height: 1.6; }
.form-status {
  width: 100%; margin-bottom: 30px; padding: 18px 20px;
  border: 1px solid #91887e; background: rgb(247 245 241 / 70%);
  color: var(--text); font-size: 16px; line-height: 1.65;
}
.form-status[hidden] { display: none; }
.form-status.is-success { border-color: #777d6d; background: #ecebe4; }
.form-status.is-error { border-color: #9b756d; background: #f1e6e2; }
.hp-field {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  opacity: 0 !important; pointer-events: none !important;
}

/* ALATUNNISTE */
.footer { padding-block: 44px; background: var(--charcoal); color: var(--snow); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer .brand { font-size: 23px; }
.footer p, .footer__top { color: var(--sand); font-size: 14px; }
.footer__top { text-underline-offset: 6px; }

/* TABLET */
@media (max-width: 1000px) {
  .nav { gap: 20px; }
  .nav .button { padding-inline: 20px; }
  .section__heading { gap: 40px; }
  .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .about-intro { grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr); gap: 42px; }
  .about-columns { gap: 45px; }
}

/* MOBIILI */
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .header__inner { min-height: 80px; flex-wrap: wrap; gap: 16px; padding-block: 18px; }
  .brand { font-size: 20px; }
  .brand__logo { width: 190px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 8px; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .js .nav > a:not(.button) { padding-block: 13px; font-size: 16px; }
  .js .nav .button { margin-top: 12px; }
  .hero { min-height: calc(90svh - 80px); padding-block: 86px 56px; }
  .hero .eyebrow { font-size: 14px; letter-spacing: 0.16em; }
  .hero h1::after { margin-top: 28px; }
  .hero__description { margin-top: 24px; }
  .hero__links { gap: 8px 22px; margin-top: 48px; }
  .section__heading, .cards, .contact { grid-template-columns: 1fr; }
  .section__heading { gap: 26px; margin-bottom: 40px; }
  .cards { gap: 48px; }
  .about-heading { margin-bottom: 42px; }
  .about-heading h2 { font-size: clamp(34px, 8vw, 48px); }
  .about-intro, .about-columns { grid-template-columns: 1fr; }
  .about-intro { gap: 36px; }
  .about-portrait { max-width: 360px; }
  .about-portrait img { aspect-ratio: 4 / 5; }
  .about-portrait figcaption { font-size: 25px; }
  .about-intro__text p, .about-column p { font-size: 17px; }
  .about-columns { margin-top: 66px; gap: 44px; }
  .about-column h3 { margin-bottom: 18px; }
  .about-action { margin-top: 42px; }
  .contact { gap: 52px; }
  .contact__details { margin-top: 36px; }
  .contact__form-wrap { width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .form-grid .full { grid-column: auto; }
  .contact-form input { min-height: 56px; font-size: 16px; }
  .contact-form textarea { min-height: 180px; font-size: 16px; }
  .form-actions { align-items: stretch; gap: 14px; }
  .form-actions .button { width: 100%; }
  .smallprint { max-width: none; }
  .form-status { margin-bottom: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* VÄHENNETTY LIIKE */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
