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

:root {
  --sand: #ece2d7;
  --slate: #4e5764;
  --coral: #f15e5a;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--slate);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
}

h1, h2, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: var(--header-height); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 19px 37px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.button:hover { background: #fff; color: var(--coral); }

/* Fixed header and one-page navigation */
.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 5%;
  color: #fff;
  transition: background-color .2s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open { background-color: #000; }

.site-logo { flex: 0 0 auto; margin-right: auto; }
.site-logo img { width: 4.385vw; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  position: relative;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -.45px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] { color: var(--coral); }

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .18s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }

.header-contact {
  min-height: 50px;
  padding: 16px 23px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 1.53px;
}

/* Hero and two-column service sections */
.hero {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 20px 80px;
  background: linear-gradient(#00000012, #00000012), url("../images/juoksulenkki-olohuone.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-inner { width: min(100%, 1140px); margin-inline: auto; }

.hero h1 {
  max-width: 70%;
  margin-bottom: 40px;
  font-size: 55px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 0 23px #0000004d;
}

.hero .button, .service .button { box-shadow: 0 10px 30px -9px #00000029; }

.service {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.service-copy {
  align-self: center;
  padding: 67px 24%;
}

.service h2 {
  margin-bottom: 29px;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 4.25px;
}

.service p {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 1.53px;
}

.service .button { margin-top: 59px; }

.service-image { position: relative; display: block; }

.service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.introduction { background: var(--sand); color: var(--slate); }
.introduction p { color: #4e5763; }
.introduction .button { background: var(--slate); color: var(--sand); }
.introduction .button:hover { background: #fff; color: var(--slate); }

.design { background: var(--coral); color: #fff; }
.design .service-image { grid-column: 1; grid-row: 1; }
.design .service-copy { grid-column: 2; grid-row: 1; }
.design .button { background: #fff; color: var(--coral); }
.design .button:hover { background: #000; color: #fff; }

.supervision { background: var(--slate); color: #fff; }
.supervision .button { background: #fff; color: var(--slate); }
.supervision .button:hover { background: var(--coral); color: #fff; }

.consulting { background: #000; color: #fff; }
.consulting .signature-name { margin-top: 29px; font-weight: 600; }
.consulting .signature { width: 46%; margin-top: 20px; }
.consulting .button { margin-top: 39px; }

@media (max-width: 1199px) {
  .service-copy { padding-inline: 16%; }
}

@media (max-width: 1024px) {
  .site-header { gap: 20px; }
  .site-logo img { width: 9.18vw; }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    background: #fff;
    color: #373b3f;
  }

  .site-header.has-menu:not(.is-menu-open) .site-nav { visibility: hidden; }
  .site-header:not(.has-menu) { position: relative; flex-wrap: wrap; background-color: #000; }
  .site-header:not(.has-menu) .site-nav { position: static; width: 100%; max-height: none; }
  .site-nav ul { display: block; text-align: center; }

  .site-nav a { padding: 22px 18px; font-size: 23px; font-weight: 500; line-height: 1.2; letter-spacing: 1.53px; }

  .site-nav a:hover,
  .site-nav a[aria-current="location"] { background: var(--coral); color: #fff; }

  .site-nav a::after { display: none; }
  .site-nav a:focus-visible { outline-offset: -5px; }

  .menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    width: 26px;
    height: 3.5px;
    border-radius: 3px;
    background: currentColor;
  }

  .menu-toggle span::before,
  .menu-toggle span::after { content: ""; position: absolute; left: 9px; }
  .menu-toggle span::before { top: 13px; }
  .menu-toggle span::after { bottom: 13px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 20px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 20px; transform: rotate(-45deg); }

  .hero { min-height: 800px; padding-inline: 65px; }
  .hero h1 { max-width: none; }

  .service { display: flex; flex-direction: column; min-height: 0; }
  .service-copy { width: 100%; padding: 100px 18%; }
  .service h2 { font-size: 45px; }
  .service .button { margin-top: 44px; }
  .service-image { min-height: 50vh; }
  .consulting .service-copy { padding-top: 40px; }
}

@media (max-width: 767px) {
  .site-header { gap: 0; }
  .site-logo img { width: min(22.95vw, 158px); }
  .header-contact { display: none; }
  .site-nav a { font-size: 21px; }

  .hero { min-height: 612px; padding: 103px 20px 78px; }
  .hero h1 { font-size: clamp(34px, 8.5vw, 39px); }
  .button { min-height: 55px; font-size: 17px; }

  .service-copy { padding: 25% 15%; }
  .service h2 { font-size: 37px; letter-spacing: 3.25px; }
  .service .button { margin-top: 35px; }
  .service-image { min-height: 58vh; }
  .consulting .service-image { min-height: calc(58vh + 86px); }
  .consulting .service-copy { padding-top: 0; }
  .consulting .signature { width: 73%; }
  .consulting .button { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .button, .site-nav a::after { transition: none; }
}
