: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;
}

/* =========================
   HERO
========================= */
.templates-hero {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 560px;
}

.templates-hero__image {
  border-right: 1px solid var(--line);
  height: 560px;
}

.templates-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.templates-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
}

.templates-hero__copy {
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.templates-hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================
   WHY
========================= */
.templates-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.templates-why__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
}

.templates-why__text p {
  max-width: 480px;
}

.templates-why__image {
  border-left: 1px solid var(--line);
  height: 520px;
}

.templates-why__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   GRID INTRO
========================= */
.templates-grid-section {
  padding: 4rem 2rem 5rem;
}

.templates-grid-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.templates-grid-intro p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   TEMPLATE GRID
========================= */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
}

.template-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.template-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.template-card:hover .template-card__image img {
  transform: scale(1.04);
}

.template-card__title {
  margin: 0;
  font-family: var(--heading);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}
.template-card__content {
  padding: 1.2rem;
}

.template-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.template-card img {
  transition: transform 0.4s ease;
}

.template-card:hover img {
  transform: scale(1.05);
}
/* =========================
   STEPS
========================= */
.templates-steps {
  display: grid;
  grid-template-columns: 34% 66%;
  min-height: 440px;
}

.templates-steps__intro {
  padding: 4rem 3rem;
  border-right: 1px solid var(--line);
}

.templates-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.template-step {
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.template-step:last-child {
  border-right: 0;
}

/* =========================
   FAQ
========================= */
.templates-faq {
  padding: 4rem 2rem 5rem;
  color: var(--text);
  text-decoration: none;

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

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

.templates-faq__list {
  max-width: 900px;
  margin: 0 auto;
}

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

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  padding: 1.4rem 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;

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

/* FAQ ICON */

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.faq-icon span {
  position: absolute;
  background: var(--text);
  transition: transform 0.3s ease;
}

/* horizontal line */

.faq-icon span:first-child {
  width: 16px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* vertical line */

.faq-icon span:last-child {
  width: 1.5px;
  height: 16px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* OPEN STATE */

.faq-item.active .faq-icon span:last-child {
  transform: translateX(-50%) scaleY(0);
}

.faq-content {
  display: none;
  padding: 0 0 1.5rem;
  max-width: 700px;
}

.faq-item.active .faq-content {
  display: block;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 980px) {
  .templates-hero,
  .templates-feature,
  .templates-why,
  .templates-steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .templates-hero__image,
  .templates-feature__mockup,
  .templates-why__image,
  .templates-steps__intro {
    border: 0;
  }

  .templates-hero__content,
  .templates-feature__copy,
  .templates-why__text,
  .templates-steps__intro {
    padding: 3rem 1.5rem;
  }

  .templates-feature__mockup {
    padding: 2rem 1.5rem 3rem;
  }

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

  .templates-steps__grid {
    grid-template-columns: 1fr;
  }

  .template-step {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .template-step:first-child {
    border-top: 0;
  }
}
