/* =========================================================
   METROSTAV – PROJECT COMPANIES
   FAQ-level separator + spacing
   ========================================================= */

.smp-code {
  --bg: #000;
  --text: #fff;
}

/* === WRAPPER ============================================= */

.smp-code .companies-code-container {
  background: var(--bg);
  color: var(--text);
  padding: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
}

/* Intro animation */

.smp-code .companies-code-grid {
  width: 60%;
  max-width: 750px;
  margin-left: clamp(6vw, 10vw, 12vw);

  animation: companiesFadeIn 0.9s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes companiesFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ITEM ================================================= */

.smp-code .company-item {
  padding: clamp(18px, 1.0vw, 30px) 0;
  position: relative;
}

/* FAQ-like separator */

.smp-code .company-item::after {
  content: '';
  display: block;
  width: 100%;
  height: 0.0555555556rem; /* exact value from FAQ */
  background: #fff;
  margin-top: clamp(10px, 1.4vw, 16px);
}

/* === HEADER =============================================== */

.smp-code .company-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* Title */

.smp-code .company-title {
  margin: 0;
  max-width: 85%;
  font-family: "HelveticaNeueLTW1GMd", sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.35;
  font-weight: 400;
}

/* Caret */

.smp-code .company-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: 32px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  margin-top: -10px;
}

.smp-code .company-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.smp-code .company-item.is-open .company-arrow {
  transform: rotate(180deg);
}

/* === BODY ================================================= */

.smp-code .company-body {
  display: none;
}

.smp-code .company-item.is-open .company-body {
  display: block;
}

.smp-code .company-body-inner {
  margin-top: clamp(10px, 1.4vw, 18px);
  max-width: 90%;
}

/* Body text */

.smp-code .company-body-inner p {
  margin: 0 0 0.6em;
  font-family: HelveticaNeueLTW1GRoman, Arial, sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: #fff;
}

/* Links */

.smp-code .company-body-inner a {
  color: #dc1218;
  text-decoration: underline;
}

/* === MOBILE ============================================== */

@media (max-width: 767px) {

  .smp-code .companies-code-grid {
    width: 100%;
    margin-left: 0;
    padding: 0 clamp(20px, 6vw, 32px);
  }

  .smp-code .company-title {
    max-width: 100%;
  }

}

/* === ACCORDION ANIMATION SUPPORT ========================= */

.smp-code .company-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 0.6s cubic-bezier(0.4,0,0.2,1),
    opacity 0.35s ease;
}

.smp-code .company-item.is-open .company-body {
  opacity: 1;
}
