:root {
  --bg: #efe7df;
  --text: #241c18;
  --accent: #4a1106;
  --line: #000000;
  --white: #ffffff;
  --heading:
    "span-compressed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: "Poppins", sans-serif;
}

.template-details-accordion {
  max-width: 700px;
  margin-top: 2rem;
}

.template-cta {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap; /* helps on mobile */
}

.accordion-item {
  border-top: 1px solid var(--line);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}

.accordion-trigger {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--heading);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;

  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* kill blue states */
.accordion-trigger:focus,
.accordion-trigger:active,
.accordion-trigger:visited {
  color: var(--text);
  outline: none;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.accordion-content ul {
  margin: 0;
  padding: 0 0 20px;
}

.accordion-content li {
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.template-single-hero {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 100%;
  align-items: stretch;
}

.template-single-hero__gallery {
  display: flex;
  min-height: 100%;
  border-right: 1px solid var(--line);
}

.template-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.template-slider__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.template-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.template-slider__slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.template-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 5;
  object-fit: cover;
}

.template-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(239, 231, 223, 0.92);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.template-slider__arrow--prev {
  left: -14px;
}

.template-slider__arrow--next {
  right: -14px;
}

.template-single-hero__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.template-single-price {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-single-section {
  padding: 4rem 2rem;
}

.template-single-section__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.template-single-dark {
  padding: 5rem 2rem;
  background: var(--accent);
  color: var(--bg);
}

.template-single-dark__content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.template-steps-title {
  max-width: 520px;
  margin: 0 auto 3rem;
}

.template-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: left;
}

.template-step-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.template-step-block h3 {
  font-size: 2rem;
}

.template-step-block p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.process-number {
  margin-bottom: 0.5rem;
  font-family: var(--heading);
  font-size: 1.4rem;
}

.template-description {
  max-width: 460px;
}

@media (max-width: 980px) {
  .template-single-hero {
    grid-template-columns: 1fr;
  }

  .template-single-hero__gallery {
    padding: 1.5rem;
    border-right: 0;
  }

  .template-single-hero__info,
  .template-single-dark__content {
    padding: 2.5rem 1.5rem;
  }

  .template-slider__arrow--prev {
    left: 8px;
  }

  .template-slider__arrow--next {
    right: 8px;
  }

  .template-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .template-steps-grid {
    grid-template-columns: 1fr;
  }

  .template-single-dark__content {
    text-align: left;
  }
}
