@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --green: #0E4A30;
  --green-light: #17603F;
  --green-deep: #0A3623;
  --cream: #F5F2EA;
  --cream-soft: #FBF9F4;
  --cream-alt: #EAE4D7;
  --white: #F5F2EA;
  --lime: #B8DC8C;
  --lime-hover: #A6CF74;
  --text: #0E4A30;
  --muted: #5A6B62;
  --line: #E3DCCD;
  --on-green: #F5F2EA;
  --on-green-soft: rgba(245, 242, 234, 0.85);
  --on-green-muted: rgba(245, 242, 234, 0.65);
  --radius: 14px;
  --header-h: 68px;
  --mobile-cta-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.section :focus-visible {
  outline-color: var(--green);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--green);
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--small {
  min-height: 44px;
  padding: 10px 20px;
}

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

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

.btn--outline {
  border-color: rgba(245, 242, 234, 0.5);
  color: var(--on-green);
}

.btn--outline:hover {
  border-color: var(--on-green);
  background: rgba(245, 242, 234, 0.08);
}

.btn--light {
  background: var(--cream);
  color: var(--green);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--on-green);
  border-bottom: 1px solid rgba(245, 242, 234, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-h);
  gap: 16px;
  padding: 0 48px 0 64px;
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 0;
  margin: 0;
  line-height: 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.logo__img {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  background: none;
  border: 0;
  border-radius: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
}

.nav__link:hover {
  opacity: 1;
  color: var(--lime);
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--white);
}

.header__phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  background: var(--green);
  color: var(--on-green);
  padding: 0;
  overflow-x: hidden;
}

.hero__layout {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  min-height: 560px;
  max-height: none;
  align-items: stretch;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 56px 48px 56px 64px;
  background: var(--green);
}

.hero__name {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--on-green-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero__title {
  margin: 0;
  max-width: 100%;
  color: var(--on-green);
  font-size: clamp(3rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
}

.hero__text {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-green-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__area {
  margin-top: 36px;
  font-size: 0.95rem;
  color: var(--on-green-muted);
}

.hero__media {
  margin: 0;
  min-height: 560px;
  height: 100%;
  overflow: hidden;
  background: var(--green-deep);
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--cream-alt);
}

.section__title {
  margin-bottom: 40px;
  color: var(--green);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* Services */

#palvelut {
  background: var(--cream);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card__title {
  margin: 0;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.services__extra {
  margin-top: 24px;
  padding: 20px 28px;
  border-radius: 14px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 28px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
  font-weight: 700;
}

.step__title {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Closing: benefits + invite */

.closing {
  background: var(--cream);
  padding: 72px 0 0;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  margin-bottom: 8px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--green);
}

.benefit__icon svg {
  width: 100%;
  height: 100%;
}

.benefit__text {
  margin: 0;
  color: var(--green);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 0;
}

.invite__title {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.invite__text {
  margin-top: 10px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.invite__actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
}

.btn--invite {
  background: var(--lime);
  color: var(--green);
  border-color: var(--lime);
  gap: 8px;
}

.btn--invite:hover {
  background: var(--lime-hover);
  border-color: var(--lime-hover);
}

.btn--invite-outline {
  background: transparent;
  color: var(--green);
  border-color: rgba(14, 74, 48, 0.45);
}

.btn--invite-outline:hover {
  border-color: var(--green);
  background: rgba(14, 74, 48, 0.06);
}

/* Footer */

.footer {
  padding: 48px 0 28px;
  background: var(--green);
  color: var(--on-green);
  scroll-margin-top: var(--header-h);
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer__logo {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer__logo-img {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.footer__name {
  margin: 14px 0 0;
  font-size: 1.05rem;
  color: var(--on-green-soft);
}

.footer__tagline {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--on-green-muted);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer__link {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-green);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245, 242, 234, 0.45);
  overflow-wrap: anywhere;
}

.footer__link:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 242, 234, 0.2);
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--on-green-muted);
}

/* Mobile CTA */

.mobile-cta {
  display: none;
}

/* Responsive */

@media (max-width: 1023px) {
  .hero__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .header__inner {
    padding: 0 24px;
  }

  .hero__content {
    order: 1;
    padding: 32px 24px;
  }

  .hero__title {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    line-height: 1.12;
  }

  .hero__text {
    font-size: 1.05rem;
  }

  .hero__media {
    order: 2;
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hero__image {
    object-position: center 40%;
  }
}

@media (max-width: 900px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .card__image {
    height: 170px;
  }

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

  .invite {
    flex-wrap: wrap;
    padding: 48px 0;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .header__inner {
    padding: 0 20px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 20px 20px;
    background: var(--green);
    border-bottom: 1px solid rgba(245, 242, 234, 0.1);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: flex;
    min-height: 52px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(245, 242, 234, 0.1);
  }

  .header__phone {
    justify-content: flex-start;
    min-height: 52px;
    font-size: 1.05rem;
    border-top: 1px solid rgba(245, 242, 234, 0.1);
  }

  .logo__img {
    width: 140px;
    height: auto;
  }

  .hero__content {
    padding: 28px 20px 32px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    margin-bottom: 28px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card__image {
    height: 190px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    padding: 24px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .closing {
    padding-top: 56px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .invite {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 48px 0;
  }

  .invite__actions {
    width: 100%;
  }

  .invite__actions .btn {
    flex: 1 1 100%;
  }

  .footer__main {
    flex-direction: column;
    gap: 28px;
  }

  .footer__logo-img {
    width: 140px;
  }

  .footer__contacts {
    align-items: flex-start;
  }

  .footer__link {
    font-size: 1.125rem;
  }

  body {
    padding-bottom: var(--mobile-cta-h);
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(14, 74, 48, 0.97);
    border-top: 1px solid rgba(245, 242, 234, 0.12);
  }
}
