/* ===========================================================
   KK-Sähkötyöt Oy
   Taivaansininen #54b4e5 (logo) + syvä petrooli.
   =========================================================== */

:root {
  --navy: #0a3344;
  --navy-2: #0c3b4e;
  --navy-3: #082936;
  --blue: #54b4e5;
  --blue-h: #3aa3d4;
  --blue-soft: rgba(84, 180, 229, 0.14);
  --ice: #eef7fc;
  --ice-2: #ddeef8;
  --white: #ffffff;
  --ink: #0a3344;
  --mute: #547787;
  --line: #dcecf4;
  --nav-h: 76px;
  --r: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --max: 1180px;
  --tr: 0.22s ease;
  --shadow: 0 2px 4px rgba(10, 51, 68, 0.04), 0 14px 34px rgba(10, 51, 68, 0.07);
  --shadow-lg: 0 4px 8px rgba(10, 51, 68, 0.05), 0 22px 50px rgba(10, 51, 68, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--blue);
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 400;
  background: var(--blue);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 800px) {
  .wrap {
    padding: 0 36px;
  }
}

/* ------- Typografia ------- */

.h-display {
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border-radius: var(--pill);
  background: var(--blue-soft);
  color: #2b7fa8;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.lede {
  font-size: 1.125rem;
  color: var(--mute);
  max-width: 38rem;
}

/* ------- Painikkeet ------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr),
    transform var(--tr), box-shadow var(--tr);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-blue {
  background: var(--blue);
  color: var(--navy);
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(84, 180, 229, 0.3);
}

.btn-blue:hover {
  background: var(--blue-h);
  border-color: var(--blue-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(84, 180, 229, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.btn-ghost-dark:hover {
  border-color: var(--blue);
  color: #2b7fa8;
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #2b7fa8;
  transition: gap var(--tr), color var(--tr);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
}

.link-arrow:hover {
  gap: 13px;
  color: var(--navy);
}

.btn:focus-visible,
.nav-link:focus-visible,
.logo-link:focus-visible,
.link-arrow:focus-visible,
.footer a:focus-visible,
.form-field:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--pill);
}

/* ------- Navbar ------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr);
}

.navbar.scrolled,
.navbar--sub,
.navbar.is-open {
  background: rgba(8, 41, 54, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
}

.logo-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  height: 30px;
  width: auto;
}

@media (min-width: 900px) {
  .logo-img {
    height: 38px;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 14px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--tr), background var(--tr);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-link.active {
  color: var(--blue);
}

.nav-cta {
  display: none;
  margin-left: 10px;
}

.hamburger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.is-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  padding: 8px 0 26px;
}

.navbar.is-open .mobile-menu {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .btn {
  margin-top: 18px;
  width: 100%;
  border-bottom: none;
}

@media (min-width: 960px) {
  .hamburger,
  .mobile-menu,
  .navbar.is-open .mobile-menu {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }
}

/* ------- Hero ------- */

.hero {
  position: relative;
  min-height: 90svh;
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--navy) url("assets/hero-maisema.jpg") center / cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 36, 48, 0.88) 0%,
    rgba(8, 43, 57, 0.78) 32%,
    rgba(11, 58, 76, 0.5) 58%,
    rgba(84, 180, 229, 0.2) 100%
  );
}

@media (max-width: 760px) {
  .hero::before {
    background: linear-gradient(
      170deg,
      rgba(6, 36, 48, 0.8) 0%,
      rgba(8, 43, 57, 0.84) 45%,
      rgba(10, 51, 68, 0.78) 100%
    );
  }
}

@media (max-height: 760px) {
  .hero {
    min-height: auto;
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 43rem;
}

.hero h1 {
  font-size: clamp(40px, 6.6vw, 68px);
  color: var(--white);
  margin: 20px 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 .text-blue {
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero-facts svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

/* ------- Ikonirivi ------- */

.feature-band {
  background: var(--white);
  padding: 56px 0;
}

.feature-grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 40px;
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature h3 {
  font-family: "Outfit", sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--navy);
}

.feature p {
  color: var(--mute);
  font-size: 15px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #2b8fbf;
  display: grid;
  place-items: center;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

/* ------- Osastot ------- */

.section {
  padding: 76px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
}

.section--white {
  background: var(--white);
}

.section--ice {
  background: var(--ice);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  margin-bottom: 40px;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(31px, 4.6vw, 46px);
  margin: 16px 0 14px;
}

.section-head p {
  color: var(--mute);
  font-size: 1.05rem;
}

.section--navy .section-head h2,
.section--navy .h-display {
  color: var(--white);
}

.section--navy .section-head p {
  color: rgba(255, 255, 255, 0.76);
}

.section-foot {
  margin-top: 34px;
}

/* ------- Kortit ------- */

.card-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(84, 180, 229, 0.45);
}

.card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--navy);
}

.card p {
  color: var(--mute);
  font-size: 15.5px;
}

.card--dark {
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy-3) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.card--dark h3 {
  color: var(--white);
  font-size: 24px;
}

.card--dark p {
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
}

.card--dark .icon-circle {
  background: rgba(84, 180, 229, 0.18);
  color: var(--blue);
}

.card--dark .link-arrow {
  margin-top: 22px;
  color: var(--blue);
}

.card--dark .link-arrow:hover {
  color: var(--white);
}

.card .link-arrow {
  margin-top: 18px;
}

/* Sähkötyöt on päätyö: iso pääkortti, tukipalvelut pienempinä */

.offer-stack {
  display: grid;
  gap: 18px;
}

.card--wide {
  padding: 32px 28px;
}

@media (min-width: 900px) {
  .card--wide {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, 290px);
    gap: 28px;
    align-items: start;
    padding: 44px 44px;
  }
}

.card--wide .icon-circle {
  width: 62px;
  height: 62px;
}

.card--wide .icon-circle svg {
  width: 30px;
  height: 30px;
}

.card--wide h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: 20px;
}

@media (min-width: 900px) {
  .card--wide h3 {
    margin-top: 0;
  }
}

.card--wide p {
  font-size: 1.05rem;
  max-width: 44rem;
}

.card--wide .btn {
  margin-top: 24px;
}

.card-photo {
  margin: 26px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 900px) {
  .card-photo {
    margin: 0;
    align-self: stretch;
  }

  .card-photo img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 250px;
  }
}

.offer-pair {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .offer-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.card--small {
  padding: 24px 24px;
}

.card--small h3 {
  font-size: 20px;
}

.card--small p {
  font-size: 15px;
}

/* Kuvapaikat: kuva ajetaan samaan siniseen sävyyn kuin hero */

.duotone {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy-3) 100%);
}

.duotone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  mix-blend-mode: screen;
}

.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(10, 51, 68, 0.5) 0%, rgba(84, 180, 229, 0.42) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Kuvia työkohteista */

.work-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.work-photos figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}

/* height: auto kumoaa img-tagin height-attribuutin, muuten aspect-ratio ei päde */
.work-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-photos figcaption {
  padding: 13px 16px 15px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.wide-photo {
  margin: 28px 0 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wide-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

@media (max-width: 860px) {
  .work-photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .work-photos {
    grid-template-columns: 1fr;
  }
}

/* Tiivis luettelo (palvelut) */

.tile-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .tile-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.tile:hover {
  border-color: rgba(84, 180, 229, 0.5);
  box-shadow: var(--shadow);
}

.tile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #2b8fbf;
  display: grid;
  place-items: center;
}

.tile-icon svg {
  width: 20px;
  height: 20px;
}

.tile h3 {
  font-family: "Outfit", sans-serif;
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--navy);
}

.tile p {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
}

/* ------- Vuokraus ------- */

.rental-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .rental-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rental-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
}

.rental-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rental-visual {
  position: relative;
  height: 190px;
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy-3) 100%);
  overflow: hidden;
}

.rental-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rental-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rental-body h3 {
  font-family: "Outfit", sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.rental-body p {
  color: var(--mute);
  font-size: 15.5px;
  flex: 1;
}

.rental-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rental-meta li {
  padding: 5px 13px;
  border-radius: var(--pill);
  background: var(--ice);
  color: #2b7fa8;
  font-size: 13px;
  font-weight: 700;
}

/* ------- Palveluosiot (alasivu) ------- */

.service-group {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.service-group + .service-group {
  margin-top: 60px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.group-head h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--navy);
}

/* ------- Page head ------- */

.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: linear-gradient(140deg, var(--navy-3) 0%, var(--navy) 55%, #10516b 100%);
  color: var(--white);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-tyokalut.jpg") center / cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 180, 229, 0.32) 0%, transparent 70%);
}

.page-head .wrap {
  position: relative;
  z-index: 1;
}

.page-head .h-display {
  font-size: clamp(34px, 5.6vw, 54px);
  color: var(--white);
  margin: 18px 0 16px;
}

.page-head p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-nav a {
  padding: 9px 18px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.page-nav a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* ------- Meistä / jaettu asettelu ------- */

.split {
  display: grid;
  gap: 34px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
  }
}

.prose p + p {
  margin-top: 1rem;
}

.prose p {
  color: var(--mute);
  font-size: 1.06rem;
}

.values {
  display: grid;
  gap: 14px;
}

.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.value strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--navy);
}

.value p {
  color: var(--mute);
  font-size: 15px;
}

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.stat b {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--blue-h);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--mute);
}

.media-frame {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame > img {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* ------- Yhteystiedot ------- */

.contact-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 44px;
}

@media (min-width: 760px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.contact-card span {
  display: block;
  margin: 16px 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b7fa8;
}

.contact-card strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--blue-h);
}

.contact-card p {
  color: var(--mute);
  font-size: 14.5px;
  margin-top: 6px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

@media (min-width: 700px) {
  .form-card {
    padding: 40px;
  }
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-span {
    grid-column: 1 / -1;
  }
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-field,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #f7fbfd;
  color: var(--ink);
  padding: 13px 15px;
  border-radius: var(--r-sm);
  transition: border-color var(--tr), background var(--tr);
}

.form-card textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--blue);
  outline: none;
  background: var(--white);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}

@media (min-width: 700px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.form-footer p {
  font-size: 13.5px;
  color: var(--mute);
  max-width: 28rem;
}

.form-footer a {
  color: #2b7fa8;
  text-decoration: underline;
}

/* Roskapostiansa: piilossa ihmisiltä, näkyvissä boteille */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b02a3d;
}

.field-error.is-visible {
  display: block;
}

.form-field[aria-invalid="true"],
.form-card textarea[aria-invalid="true"] {
  border-color: #d5455c;
  background: #fff7f8;
}

.field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--mute);
}

.field-hint button {
  font-weight: 700;
  color: #2b7fa8;
  text-decoration: underline;
}

.urgent-note {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(84, 180, 229, 0.55);
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 600;
}

.urgent-note.is-visible {
  display: flex;
}

/* ------- Kartta ------- */

.map-split {
  display: grid;
  gap: 30px;
  align-items: center;
}

@media (min-width: 900px) {
  .map-split {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
  }
}

.map-frame {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--ice-2);
  line-height: 0;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

@media (min-width: 900px) {
  .map-frame iframe {
    height: 400px;
  }
}

.address-line {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.address-line svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--blue-h);
}

.address-line strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.address-line span {
  font-size: 15px;
  color: var(--mute);
}

/* ------- WhatsApp ------- */

.btn-wa {
  background: #25d366;
  color: #06301a;
  border-color: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
  background: #1fbe5b;
  border-color: #1fbe5b;
  transform: translateY(-2px);
}

.btn-wa svg {
  width: 19px;
  height: 19px;
}

/* ------- Kelluva WhatsApp ------- */

.wa-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: var(--pill);
  background: #25d366;
  color: #06301a;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(6, 48, 26, 0.32);
  transition: background var(--tr), transform var(--tr);
}

.wa-fab:hover {
  background: #1fbe5b;
  transform: translateY(-2px);
}

.wa-fab svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .wa-fab-label {
    display: none;
  }

  .wa-fab {
    padding: 15px;
  }
}

.wa-panel {
  width: min(330px, calc(100vw - 32px));
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 54px rgba(10, 51, 68, 0.3);
  animation: waPanelIn 0.18s ease-out;
}

@keyframes waPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--navy);
  color: var(--white);
}

.wa-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: #06301a;
}

.wa-avatar svg {
  width: 22px;
  height: 22px;
}

.wa-panel-title strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.wa-panel-title span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.wa-close {
  margin-left: auto;
  padding: 6px;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--tr);
}

.wa-close:hover {
  color: var(--white);
}

.wa-close svg {
  width: 18px;
  height: 18px;
}

.wa-panel-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #eff5f3;
}

.wa-bubble {
  padding: 11px 13px;
  border-radius: 4px 12px 12px 12px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(10, 51, 68, 0.12);
}

.wa-panel-body textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}

.wa-panel-body textarea:focus {
  border-color: #25d366;
  outline: none;
}

.wa-panel-body .btn {
  width: 100%;
  justify-content: center;
}

.wa-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mute);
}

.wa-note a {
  text-decoration: underline;
}

/* ------- Luvat ja referenssit ------- */

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--mute);
  font-size: 1.02rem;
}

.check-list svg {
  width: 21px;
  height: 21px;
  margin-top: 4px;
  color: var(--blue-h);
}

.ref-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .ref-panel {
    padding: 34px 36px;
  }
}

.ref-list {
  display: grid;
  gap: 0;
}

@media (min-width: 820px) {
  .ref-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

.ref-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.ref-list li:last-child {
  border-bottom: none;
}

.ref-list svg {
  width: 17px;
  height: 17px;
  margin-top: 5px;
  flex-shrink: 0;
  color: var(--blue-h);
}

/* ------- CTA ------- */

.cta-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-3) 0%, var(--navy) 52%, #11566f 100%);
  color: var(--white);
  padding: 44px 28px;
}

@media (min-width: 860px) {
  .cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 56px 56px;
  }
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 180, 229, 0.3) 0%, transparent 70%);
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  margin: 16px 0 10px;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 34rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 860px) {
  .cta-actions {
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* ------- Footer ------- */

.footer {
  background: var(--navy-3);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 34px;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand .logo-img {
  height: 40px;
}

@media (min-width: 700px) {
  .footer-brand .logo-img {
    height: 48px;
  }
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--white);
}

/* Merkin oma teksti on mustaa, joten se tarvitsee vaalean pohjan */
.footer-badge img {
  display: block;
  height: 64px;
  width: auto;
}

.footer h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.footer li + li {
  margin-top: 8px;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 20px;
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-credit a {
  color: var(--blue);
}

/* ------- 404 / kiitos / tietosuoja ------- */

.simple-page {
  min-height: calc(100svh - 260px);
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: linear-gradient(140deg, var(--navy-3) 0%, var(--navy) 55%, #10516b 100%);
  color: var(--white);
  display: flex;
  align-items: center;
}

.simple-page h1 {
  font-size: clamp(40px, 8vw, 76px);
  color: var(--white);
  margin: 18px 0 16px;
}

.simple-page p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 34rem;
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal {
  max-width: 44rem;
}

.legal h2 {
  font-family: "Outfit", sans-serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--mute);
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin: 8px 0 16px;
}

.legal-updated {
  display: inline-flex;
  padding: 7px 15px;
  border-radius: var(--pill);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
  color: #2b7fa8;
}

/* ------- Liike ------- */

/* translate (eikä transform) jotta korttien hover-nosto toimii yhtä aikaa */
.reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.anim-up {
  animation: fadeUp 0.6s ease both;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.34s; }
.d5 { animation-delay: 0.44s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .anim-up,
  .reveal,
  .card,
  .btn,
  .rental-card {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    translate: none;
  }
}
