/*
 * Template: FAQ
 *
 * Hero + FAQ accordion section.
 * Hero is also reused (via .faq-hero class) on About, Contact, Catalog, Guías.
 */

/* ==========================================================================
   Hero
   ========================================================================== */

.faq-hero {
  position: relative;
  height: 60vh;
  margin-top: calc(-1 * var(--header-height, 96px));
  background-image: url("../../img/Background/Faq.avif");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Wrapper used by FAQ template only (title + desc column) */
.faq-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 0 1.5rem;
  max-width: 840px;
  text-align: center;
}

/* Title — z-index kept here so bare title (other templates) also clears overlay */
.faq-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display, "Billion Dreams", serif);
  font-size: 5rem;
  font-weight: 400;
  color: var(--color-green, #a6ce39);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin: 0;
}

.faq-hero__desc {
  font-family: var(--font-base, "Inter", sans-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1024px) {
  .faq-hero {
    height: 40vh;
  }

  .faq-hero__title {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    height: 50vh;
  }

  .faq-hero__title {
    font-size: 3rem;
  }

  .faq-hero__desc {
    font-size: 1rem;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  background-color: #000;
  padding-block: 4rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start; /* prevents grid row height from stretching adjacent items */
}

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

/* ==========================================================================
   FAQ Item
   ========================================================================== */

.faq-item {
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(166, 206, 57, 0.06);
  transition: box-shadow 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 24px rgba(166, 206, 57, 0.12);
}

/* Question button */
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.faq-item__question {
  font-family: var(--font-base, "Inter", sans-serif);
  font-size: 0.925rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  font-family: var(--font-base, "Inter", sans-serif);
  transition: color 0.25s ease;
}

/* Open state: header turns brand green, text turns black */
.faq-item.is-open .faq-item__btn {
  background: var(--color-green, #a6ce39);
}

.faq-item.is-open .faq-item__question {
  color: #000;
}

.faq-item.is-open .faq-item__icon {
  color: #000;
}

/* Answer body – height driven by JS per item, fully independent */
.faq-item__body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.faq-item__body-inner {
  background: #000;
}

.faq-item__answer {
  padding: 1rem 1.5rem 1.25rem;
  font-family: var(--font-base, "Inter", sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: #ccc;
  line-height: 1.7;
  margin: 0;
}
