/* =====================================================================
   Etusivu
   ===================================================================== */

/* --- Hero --- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 860px);
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
}

/* Kuva peilattu: purjevene oikealle, teksti vasemmalle vapaalle merelle */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
  transform: scaleX(-1);
  animation: hero-zoom 18s var(--ease) both;
}

@keyframes hero-zoom {
  from { transform: scaleX(-1) scale(1.06); }
  to { transform: scaleX(-1) scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(7, 15, 32, 0.78) 0%, rgba(7, 15, 32, 0.45) 45%, rgba(7, 15, 32, 0.05) 75%),
    linear-gradient(to top, rgba(7, 15, 32, 0.45), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-9);
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero__lead {
  max-width: 40ch;
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.hero .btn-row { margin-top: var(--space-7); }

/* --- Meistä-nosto: teksti ja partnereiden kuvat --- */

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.about__head h2 { max-width: 14ch; }

.about__lead {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.6;
  color: var(--navy-700);
}

.about__team {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--paper);
  text-decoration: none;
  color: var(--navy-800);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.about__team:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--navy-900);
}

.about__avatars {
  display: flex;
}

.about__avatars img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.about__avatars img + img { margin-left: -14px; }

.about__team:hover .about__avatars img { border-color: var(--white); }

.about__team-text {
  display: grid;
  line-height: 1.3;
}

.about__team-text strong {
  font-family: var(--font-display);
  font-weight: 600;
}

.about__team-text span {
  font-size: var(--text-sm);
  color: var(--gold-600);
}

.about__team-text span::after { content: " →"; }

/* --- Mitä me teemme: lippukuvallinen nosto ja kolme perustetta --- */

.services-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
}

.services-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 45%;
}

.services-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(11, 22, 48, 0.05) 15%, rgba(11, 22, 48, 0.55) 50%, rgba(11, 22, 48, 0.85) 100%);
}

.services-banner__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  color: rgba(255, 255, 255, 0.86);
}

.services-banner__content h2 { color: var(--white); }

.services-banner__content p {
  margin: var(--space-5) 0 var(--space-6);
  font-size: var(--text-lg);
}

.services-reasons {
  margin-top: var(--space-8);
  gap: var(--space-7);
}

.services-reason h3 {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 1.3rem;
}

.services-reason p { color: var(--muted); }

/* --- Kohdenosto --- */

.featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.featured-head .section-head { margin-bottom: 0; }

/* --- UKK-haitari --- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.faq-right {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  border-radius: var(--radius);
  background: var(--white);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item.active {
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-heading {
  margin: 0;
  font: inherit;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5);
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: left;
  color: var(--navy-900);
  cursor: pointer;
}

.faq-question .icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.75rem;
  color: var(--gold-600);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-item.active .faq-question .icon {
  background: var(--navy-800);
  color: var(--white);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.35s var(--ease);
}

.faq-answer > * {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--muted);
}

@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; }
  /* Pienellä näytöllä kuva omana alueenaan tekstin yläpuolella */
  .services-banner { display: block; min-height: 0; }
  .services-banner::before { content: none; }
  .services-banner__bg { position: static; height: 240px; object-position: 22% 55%; }
  .about__inner { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 560px) {
  .hero { min-height: auto; }
}
