/* ── Services & Products — interactive hover section ── */

.svc {
  --svc-bg: #000000;
  --svc-text: #f4f3ef;
  --svc-dim: 0.18;
  --svc-accent: #c21f1f;
  --svc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --svc-dur: 0.5s;

  position: relative;
  background: var(--svc-bg);
  color: var(--svc-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header bar ── */
.svc__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 32px) clamp(24px, 4vw, 48px);
}

.svc__logo img {
  height: clamp(28px, 3.5vw, 48px);
  width: auto;
  display: block;
}

.svc__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
}

.svc__menu-btn img {
  width: clamp(32px, 3.2vw, 44px);
  height: auto;
}

/* ── Main layout ── */
.svc__inner {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ── Left: preview area ── */
.svc__preview {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(32px, 4vw, 64px) 80px clamp(48px, 6vw, 120px);
  position: relative;
}

.svc__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}

.svc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--svc-dur) var(--svc-ease),
    transform var(--svc-dur) var(--svc-ease);
  will-change: opacity, transform;
}

.svc__img.is-active {
  opacity: 1;
  transform: translateY(0);
}

.svc__desc-wrap {
  position: relative;
  min-height: 90px;
  margin-top: 28px;
}

.svc__desc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: "Inria Serif", ui-serif, Georgia, serif;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--svc-dur) var(--svc-ease),
    transform var(--svc-dur) var(--svc-ease);
}

.svc__desc.is-active {
  opacity: 0.85;
  transform: translateY(0);
}

/* ── Right: service list ── */
.svc__list {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(32px, 4vw, 80px) 80px clamp(24px, 3vw, 48px);
  gap: clamp(8px, 1.2vw, 16px);
}

.svc__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: var(--svc-text);
  opacity: var(--svc-dim);
  transform: translateX(0);
  transition:
    opacity var(--svc-dur) var(--svc-ease),
    transform var(--svc-dur) var(--svc-ease),
    color var(--svc-dur) var(--svc-ease);
  cursor: pointer;
  padding: clamp(6px, 0.8vw, 12px) 0;
  border-bottom: 1px solid rgba(244, 243, 239, 0.06);
}

.svc__item:last-child {
  border-bottom: none;
}

.svc__item-label {
  font-family: var(--font-inter, "Inter", sans-serif);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.svc__item-num {
  font-family: var(--font-inter, "Inter", sans-serif);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 18px);
  letter-spacing: 0.08em;
  color: rgba(244, 243, 239, 0.3);
  transition: color var(--svc-dur) var(--svc-ease);
  flex-shrink: 0;
}

/* ── Active state ── */
.svc__item.is-active {
  opacity: 1;
  transform: translateX(20px);
}

.svc__item.is-active .svc__item-num {
  color: var(--svc-accent);
}

/* When any item is hovered, the section enters "has-hover" mode (JS adds this) */
.svc.has-hover .svc__item:not(.is-active) {
  opacity: var(--svc-dim);
}

/* ── Section label ── */
.svc__label {
  position: absolute;
  left: clamp(48px, 6vw, 120px);
  bottom: clamp(24px, 3vh, 48px);
  font-family: var(--font-inter, "Inter", sans-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.35;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .svc__inner {
    flex-direction: column;
  }

  .svc__preview {
    flex: none;
    padding: 100px 32px 24px;
  }

  .svc__img-wrap {
    max-width: 500px;
  }

  .svc__list {
    flex: none;
    padding: 24px 32px 60px;
  }

  .svc__item-label {
    font-size: clamp(32px, 7vw, 56px);
  }

  .svc__item.is-active {
    transform: translateX(12px);
  }
}

@media (max-width: 600px) {
  .svc__preview {
    padding: 88px 20px 16px;
  }

  .svc__list {
    padding: 16px 20px 48px;
    gap: 4px;
  }

  .svc__item-label {
    font-size: clamp(28px, 9vw, 44px);
  }

  .svc__item-num {
    font-size: 12px;
  }

  .svc__desc {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc__img,
  .svc__desc,
  .svc__item {
    transition: none;
  }
}
