/* Scala vendor page (partner/scala.php) */

:root {
  --scala-red: #ED1D26;
  --scala-red-dark: #c9141c;
  --scala-ink: #14161c;
  --scala-muted: #5d6572;
  --scala-light: #f5f6f9;
  --scala-radius: 16px;
  --scala-shadow: 0 8px 28px rgba(20, 22, 28, 0.09);
  --scala-shadow-hover: 0 16px 40px rgba(237, 29, 38, 0.16);
}

body {
  overflow-x: hidden;
}

.scala-accent {
  color: var(--scala-red);
}

.scala-light {
  background: var(--scala-light);
}

.scala-section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.scala-h1 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.scala-h2 {
  margin-bottom: 1rem;
  color: var(--scala-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.scala-h3 {
  margin-bottom: 0.5rem;
  color: var(--scala-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.scala-page p {
  font-size: 1rem;
  line-height: 1.7;
}

.scala-lead {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--scala-muted);
  font-size: 1.08rem;
}

.scala-head .scala-lead {
  margin-top: 0.5rem;
}

.scala-page .scala-body {
  color: var(--scala-muted);
}

.scala-page .scala-kicker {
  margin: 0 0 1rem;
  color: var(--scala-red);
  font-size: 1.1rem;
  font-weight: 700;
}

/* hero */
.scala-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  padding: 4rem 0;
  background: #0b0c10;
  color: #fff;
}

.scala-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scala-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 9, 14, 0.88) 0%, rgba(8, 9, 14, 0.55) 55%, rgba(8, 9, 14, 0.2) 100%);
}

.scala-hero .container {
  position: relative;
  z-index: 2;
}

.scala-page .scala-hero p {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

/* buttons */
.scala-btn,
.scala-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.scala-btn {
  border: 2px solid var(--scala-red);
  background: var(--scala-red);
  color: #fff;
}

.scala-btn:hover {
  border-color: var(--scala-red-dark);
  background: var(--scala-red-dark);
  color: #fff;
}

.scala-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.scala-btn:hover i {
  transform: translateX(4px);
}

.scala-btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
}

.scala-btn-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--scala-ink);
}

.scala-btn:focus-visible,
.scala-btn-ghost:focus-visible,
.scala-industry:focus-visible {
  outline: 3px solid #ff9a9f;
  outline-offset: 3px;
}

/* photos and cards */
.scala-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(20, 22, 28, 0.18);
}

.scala-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--scala-radius);
  background: #fff;
  box-shadow: var(--scala-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.scala-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--scala-shadow-hover);
}

.scala-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f7fb 0%, #eceef5 100%);
}

.scala-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scala-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1.5rem;
}

.scala-page .scala-card-body p {
  flex: 1;
  margin-bottom: 1.25rem;
  color: var(--scala-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* software product shots keep their own proportions */
.scala-card-img:has(img[src*='content_manager']),
.scala-card-img:has(img[src*='player']),
.scala-card-img:has(img[src*='desginer']) {
  padding: 1rem;
}

.scala-card-img img[src*='content_manager'],
.scala-card-img img[src*='player'],
.scala-card-img img[src*='desginer'] {
  object-fit: contain;
}

/* qualities */
.scala-quality {
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--scala-radius);
  background: var(--scala-light);
}

.scala-quality p {
  color: var(--scala-muted);
  font-size: 0.95rem;
}

.scala-quality ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scala-quality li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.4rem;
  color: var(--scala-ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.scala-quality li::before {
  content: '\f00c';
  position: absolute;
  top: 0.15rem;
  left: 0;
  color: var(--scala-red);
  font-family: 'Font Awesome 6 Free';
  font-size: 0.75rem;
  font-weight: 900;
}

/* benefits */
.scala-benefit {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--scala-radius);
  background: var(--scala-light);
}

.scala-num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--scala-red);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.scala-page .scala-benefit p {
  margin: 0;
  color: var(--scala-ink);
  font-weight: 500;
}

/* dark band */
.scala-dark {
  background:
    radial-gradient(55% 80% at 90% 10%, rgba(237, 29, 38, 0.3) 0%, transparent 65%),
    linear-gradient(180deg, #181a22 0%, #0b0c10 100%);
  color: #fff;
}

.scala-dark .scala-h2 {
  color: #fff;
}

.scala-page .scala-body-light {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.scala-page .scala-body-light.scala-strong {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

/* industries */
.scala-industry {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--scala-radius);
  background: #0b0c10;
  cursor: pointer;
  box-shadow: var(--scala-shadow);
}

.scala-industry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.scala-industry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 9, 14, 0.88) 100%);
}

.scala-industry span {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  left: 0.9rem;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.scala-industry:hover img {
  transform: scale(1.06);
}

@media (max-width: 767px) {
  .scala-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .scala-hero {
    min-height: 0;
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scala-hero-video {
    display: none;
  }

  .scala-btn,
  .scala-btn i,
  .scala-btn-ghost,
  .scala-card,
  .scala-industry img {
    transition: none;
  }

  .scala-card:hover,
  .scala-btn:hover i,
  .scala-industry:hover img {
    transform: none;
  }
}

/* Hero logo */
.scala-hero-logo {
  display: block;
  width: auto;
  height: 48px;
  margin: 0 0 1.5rem;
}
