/* Home page styles (ported from KJM Verkkosivu/index.html <style>) */

/* Why KJM section */
.why-kjm {
  padding: 6rem 0;
}

.why-kjm__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.why-kjm__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--surface-dim);
  line-height: 1;
  margin-bottom: 1rem;
}

.why-kjm__item {
  margin-bottom: 3rem;
}

.why-kjm__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.why-kjm__item p {
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Pillar showcase */
.pillar-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pillar {
  padding: 6rem 4rem;
  min-height: 640px;
}

.pillar--cleanroom {
  background: var(--bg);
}

.pillar--floors {
  background: var(--surface-low);
}

.pillar__services {
  margin-top: 3rem;
}

.service-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--surface-dim);
  cursor: pointer;
  transition: all 200ms ease;
}

.service-item:hover {
  padding-left: 1rem;
  border-bottom-width: 2px;
  border-bottom-color: var(--primary);
}

.service-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.service-item p {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-top: 3px solid var(--accent-teal);
  transition: all 250ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient);
}

.product-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.product-card p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.cta-card {
  background: var(--primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
  cursor: pointer;
  transition: transform 200ms ease;
}

.cta-card:hover {
  transform: scale(1.02);
}

.cta-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Industries */
.industries {
  padding: 6rem 0;
  overflow: hidden;
}

.industries__scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 4rem 2rem;
  margin: 0 -4rem;
  scrollbar-width: none;
}

.industries__scroll::-webkit-scrollbar {
  display: none;
}

.industry-card {
  flex: 0 0 320px;
  height: 420px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.industry-card__bg {
  position: absolute;
  inset: 0;
  background: var(--surface-dim);
  transition: transform 700ms ease;
}

.industry-card:hover .industry-card__bg {
  transform: translateY(-4px);
}

.industry-card__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 60%);
  color: white;
}

.industry-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.industry-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* References bento */
.references-bento {
  padding: 6rem 0;
  background: var(--surface-low);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--surface-dim);
  min-height: 300px;
  cursor: pointer;
  transition: all 300ms ease;
}

.bento-item--large {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 500px;
}

.bento-item--small {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-item:hover {
  transform: scale(1.02);
}

.bento-item__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 100%);
  color: white;
}

/* About section */
.about-section {
  padding: 6rem 0;
  background: var(--surface-low);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image__main {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-dim);
  border-radius: var(--radius-lg);
}

.stat-card {
  position: absolute;
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
}

.stat-card--main {
  bottom: -1rem;
  right: -1rem;
}

.stat-card--secondary {
  top: 2rem;
  right: -2rem;
  font-size: 0.875rem;
  padding: 1rem 1.5rem;
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.credentials-list {
  list-style: none;
  margin-top: 2rem;
}

.credentials-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--ink-muted);
}

.credentials-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.125rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 968px) {
  .why-kjm__grid,
  .pillar-showcase,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .bento-item--large,
  .bento-item--small {
    grid-column: span 12;
  }
}
