/* =========================================================================
   Yritys-sivu — additional styles on top of styles.css
   ========================================================================= */

/* ---------- Hero (Yritys-variant) ---------- */
.y-hero { padding: 140px 56px 90px; }
.y-hero .sft-hero__h { max-width: 18ch; font-size: 60px; }
.y-hero__sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 56ch; margin: 0 0 30px; }

.y-hero__stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 32px;
}
.y-stat__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(117,250,199,0.95);
  margin-bottom: 10px;
}
.y-stat__val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.05;
}
.y-stat__note { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 8px; line-height: 1.45; }

/* ---------- Two-col text + side ---------- */
.y-twocol { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.y-prose p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.y-prose p:last-child { margin-bottom: 0; }

/* ---------- Industries inline list ---------- */
.y-ind { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.y-ind__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--softera-sky); margin-bottom: 18px; }
.y-ind__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.y-ind__list li {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--line);
}
.y-ind__list li:first-child { border-top: 0; }
.y-ind__list .y-ind__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--softera-blue);
}
.y-ind__list .y-ind__icon i { width: 18px; height: 18px; }
.y-ind__name { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.y-ind__list .y-ind__count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ---------- Values (4 principles) ---------- */
.y-values { background: var(--softera-deep); color: #fff; }
.y-values .sft-section__title { color: #fff; }
.y-values .sft-eyebrow { color: var(--softera-mint); }
.y-values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.y-value {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
}
.y-value__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; color: var(--softera-mint);
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.y-value__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.015em; color: #fff; margin-bottom: 14px; }
.y-value__body { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.78); }

/* ---------- Työpaikkana ---------- */
.y-work__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; }
.y-pullquote {
  border-left: 3px solid var(--softera-cyan);
  padding: 6px 0 6px 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 28px 0;
}
.y-perks {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--line);
}
.y-perks__h { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 18px; }
.y-perks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.y-perks li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); align-items: flex-start; }
.y-perks li i { color: var(--softera-blue); width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

/* ---------- Tarinat / videos ---------- */
.y-stories { background: var(--bg-soft); }
.y-stories__head { margin-bottom: 40px; }
.y-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.y-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--softera-deep);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transition: box-shadow 220ms var(--ease-out);
}
.y-video:hover { box-shadow: var(--shadow-3); }
.y-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; display: block;
}
.y-video__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,59,102,0.10) 0%, rgba(0,59,102,0.05) 45%, rgba(0,59,102,0.85) 100%);
  transition: opacity 220ms var(--ease-out);
}
.y-video.is-playing .y-video__scrim { opacity: 0; }
.y-video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--softera-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-3);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}
.y-video:hover .y-video__play { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.y-video.is-playing .y-video__play { opacity: 0; transform: translate(-50%, -50%) scale(0.85); pointer-events: none; }
.y-video__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.y-video__meta {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  color: #fff;
}
.y-video__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--softera-mint);
  margin-bottom: 10px;
}
.y-video__quote { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; color: #fff; margin: 0 0 6px; }
.y-video__name { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ---------- Kirjoitetut tarinat ---------- */
.y-written__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.y-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow 220ms var(--ease-out);
}
.y-card:hover { box-shadow: var(--shadow-3); }
.y-card--compact { gap: 14px; }
.y-card__person { display: flex; align-items: center; gap: 14px; }
.y-card__name { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink); }
.y-card__role { font-size: 13px; color: var(--ink-3); }
.y-card__h { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; margin: 6px 0 0; }
.y-card__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.y-card__body p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.y-card__body p:last-child { margin-bottom: 0; }
.y-card__quote {
  font-family: var(--font-display); font-weight: 400; font-size: 16px;
  line-height: 1.45; color: var(--softera-deep);
  border-left: 2px solid var(--softera-cyan); padding-left: 14px;
  margin: 4px 0;
}
.y-card__chapter {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--softera-sky);
}
.y-card__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500;
  color: var(--softera-blue); text-decoration: none; border: 0;
  padding-top: 8px;
}
.y-card__more i { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
.y-card__more:hover i { transform: translateX(4px); }

/* ---------- Toimipisteet ---------- */
.y-offices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.y-office {
  position: relative;
  border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.y-office__map {
  position: relative; height: 160px; overflow: hidden;
  background: linear-gradient(155deg, var(--softera-deep) 0%, var(--softera-blue) 60%, var(--softera-sky) 100%);
}
.y-office__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.y-office__pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--softera-mint);
  box-shadow: 0 0 0 6px rgba(117,250,199,0.30), 0 0 24px rgba(117,250,199,0.60);
}
.y-office__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.y-office__city { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.015em; color: var(--ink); }
.y-office__note { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.y-office__addr {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--ink); line-height: 1.5;
  padding-top: 12px; border-top: 1px solid var(--line);
  margin-top: 4px;
}
.y-office__addr i { width: 16px; height: 16px; color: var(--softera-blue); flex-shrink: 0; margin-top: 3px; }
.y-office__addr-line { display: flex; flex-direction: column; }
.y-office__addr-street { font-weight: 500; }
.y-office__addr-city { color: var(--ink-3); font-size: 13.5px; }

/* ---------- Contacts (yhteyshenkilöt) ---------- */
.y-contacts {
  margin-top: 56px;
}
.y-contacts__h {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--softera-sky);
  margin-bottom: 18px;
}
.y-contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.y-contact {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow 220ms var(--ease-out);
}
.y-contact:hover { box-shadow: var(--shadow-2); }
.y-contact__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.y-contact__name { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.y-contact__role { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.y-contact__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2);
  padding: 6px 0;
}
.y-contact__row i { width: 15px; height: 15px; color: var(--softera-blue); flex-shrink: 0; }
.y-contact__row a { color: var(--ink-2); text-decoration: none; border: 0; }
.y-contact__row a:hover { color: var(--softera-blue); }
.y-contact__row--phone { font-family: var(--font-mono); font-size: 13.5px; }

/* ---------- Billing ---------- */
.y-billing {
  margin-top: 56px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 40px;
}
.y-billing__h {
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.y-billing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.y-billing__col {
  display: flex; flex-direction: column; gap: 6px;
}
.y-billing__sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--softera-sky);
  margin-bottom: 10px;
}
.y-billing__row {
  display: grid; grid-template-columns: 170px 1fr; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.y-billing__row:first-of-type { border-top: 0; padding-top: 0; }
.y-billing__lbl { color: var(--ink-3); }
.y-billing__val { color: var(--ink); font-family: var(--font-mono); font-size: 13.5px; }
.y-billing__val--text { font-family: var(--font-body); font-size: 14px; }

/* ---------- Final CTA ---------- */
.y-cta { background: var(--softera-deep); color: #fff; position: relative; overflow: hidden; }
.y-cta::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(0,202,208,0.25), transparent 70%);
  pointer-events: none;
}
.y-cta::after {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(117,250,199,0.16), transparent 70%);
  pointer-events: none;
}
.y-cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.y-cta__title { font-family: var(--font-display); font-weight: 500; font-size: 56px; letter-spacing: -0.02em; line-height: 1.05; color: #fff; margin: 0 0 24px; max-width: 14ch; }
.y-cta__lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 50ch; margin: 0 0 32px; }
.y-cta__panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.y-cta__panel + .y-cta__panel { margin-top: 16px; }
.y-cta__panel-h { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: #fff; margin: 0 0 10px; }
.y-cta__panel-body { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.75); margin: 0 0 18px; }
.y-cta__btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.y-cta__mint {
  background: var(--softera-mint); color: var(--softera-deep);
  font-weight: 500; padding: 11px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border: 0;
  font-family: var(--font-body); font-size: 15px;
  transition: filter 220ms var(--ease-out);
}
.y-cta__mint:hover { filter: brightness(0.92); }
.y-cta__ghost {
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 11px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: background 220ms var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.y-cta__ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- Tweaks ---------- */
.y-hero__crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.62);
  margin-bottom: 18px;
}
.y-hero__crumbs a { color: rgba(255,255,255,0.62); text-decoration: none; border: 0; }
.y-hero__crumbs a:hover { color: #fff; }
.y-hero__crumbs i { width: 14px; height: 14px; }

/* Override header active link for Yritys page */
.sft-header__link.is-active { color: #fff; }
.sft-header__link.is-active::after {
  content: ""; display: block; height: 2px;
  background: var(--softera-mint);
  margin-top: 6px;
  border-radius: 2px;
}

/* Section variants */
.y-section-light { background: #fff; }
.y-section-soft { background: var(--bg-soft); }
