/* Kare Digital — sivustokohtaiset täydennykset (marketing.css = Maint-onepage -pohja) */

/* Etusivu: hero-kortti + täysilevyinen referenssinauha */
#aloitus.home-hero-card {
  margin-bottom: 0;
  padding-bottom: 52px;
}

.hero-refs-band {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  background: #fff;
  border-top: 1px solid rgba(12, 30, 33, 0.07);
  border-bottom: 1px solid var(--kare-border);
  box-shadow: 0 8px 32px rgba(12, 30, 33, 0.05);
  position: relative;
  z-index: 2;
}

.hero-refs-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(0, 163, 155, 0) 0%,
    rgba(0, 163, 155, 0.45) 50%,
    rgba(0, 163, 155, 0) 100%
  );
  pointer-events: none;
}

.hero-refs-band__content {
  text-align: center;
  padding: 28px 15px 34px;
}

.hero-refs-kicker {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tj-color-text-body-3, #67787a);
}

.hero-refs-logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px 52px;
  max-width: 880px;
  margin: 0 auto;
  padding: 4px 8px;
}

.hero-refs-logos img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.62;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.hero-refs-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 575.98px) {
  .hero-refs-band__content {
    padding: 22px 15px 28px;
  }

  .hero-refs-kicker {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero-refs-logos {
    gap: 24px 36px;
  }

  .hero-refs-logos img {
    height: 40px;
    max-width: 130px;
  }
}

#kenelle .feature-grid-modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
  #kenelle .feature-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #kenelle .feature-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* Ylälinkkipalkki Kare Maint -sivulla */
.site-subnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003;
  background: #0d1f1e;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
}

.site-subnav .container-fluid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 100%;
  padding-inline: 15px;
}

.site-subnav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-subnav a:hover,
.site-subnav a.active {
  color: #00a39b;
}

.site-subnav-label {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
}

body.has-site-subnav .header-area.header-absolute {
  top: 36px;
}

body.has-site-subnav .top-space-120 {
  height: 156px;
}

/* Etusivu: tuotteet kuten Maint usecase-grid */
.product-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-duo-card {
  padding: 40px 36px 44px;
  background: #fff;
  border: 1px solid var(--kare-border);
  display: flex;
  flex-direction: column;
}

.product-duo-card + .product-duo-card {
  border-left: none;
}

.product-duo-visual {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--kare-border);
  background: var(--kare-soft);
}

.product-duo-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
}

.product-duo-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.product-duo-card .product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kare-primary);
  margin-bottom: 10px;
}

.product-duo-card p {
  color: #666;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.product-duo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Ratkaisumalli: kolme porrasta */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.approach-card {
  background: #fff;
  border: 1px solid var(--kare-border);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
}

.approach-card.is-primary {
  border-color: rgba(0, 163, 155, 0.45);
  background: linear-gradient(180deg, #fff 0%, var(--kare-soft) 100%);
  box-shadow: 0 12px 40px rgba(0, 163, 155, 0.08);
}

.approach-num {
  font-size: 32px;
  font-weight: 300;
  color: var(--kare-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.approach-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.approach-card p {
  color: #666;
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}

/* Flow: miksi-numerot */
.why-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--kare-border);
  background: #fff;
}

.why-strip-item {
  padding: 28px 32px;
  border-right: 1px solid var(--kare-border);
}

.why-strip-item:last-child {
  border-right: none;
}

.why-strip-num {
  font-size: 28px;
  font-weight: 300;
  color: var(--kare-primary);
  margin-bottom: 8px;
}

.why-strip-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.why-strip-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.55;
}

/* Flow feature compact grid */
.flow-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.flow-feature-box {
  border: 1px solid var(--kare-border);
  border-radius: 12px;
  padding: 22px 24px;
  background: #fff;
}

.flow-feature-box h4 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-feature-box h4::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kare-primary);
  flex-shrink: 0;
}

.flow-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-feature-list li {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  padding-left: 0;
}

.flow-feature-list li::before {
  content: '— ';
  color: #c0cccc;
}

/* CTA ribbon */
.cta-ribbon {
  background: var(--kare-soft);
  border: 1px solid rgba(0, 163, 155, 0.2);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.cta-ribbon h3 {
  margin-bottom: 12px;
}

.cta-ribbon p {
  color: #666;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .product-duo-grid,
  .approach-grid,
  .why-strip {
    grid-template-columns: 1fr;
  }

  .product-duo-card + .product-duo-card {
    border-left: 1px solid var(--kare-border);
    border-top: none;
  }

  .why-strip-item {
    border-right: none;
    border-bottom: 1px solid var(--kare-border);
  }

  .flow-features-grid {
    grid-template-columns: 1fr;
  }
}
