/* ==========================================================================
   Homepage FAQ section (templates/index.html)
   Same palette as the header/footer and other redesigned sections.
   ========================================================================== */

.home-faq {
  --hq-ink: #171b24;
  --hq-muted: #676459;
  --hq-line: #e9e4d8;
  --hq-tint: #f7f5f0;
  --hq-primary: #1f2a44;
  --hq-primary-hover: #151d31;
  --hq-primary-soft: rgba(31, 42, 68, 0.08);
  --hq-gold: #b8903f;
  --hq-whatsapp: #1fa855;

  padding: 5rem 0 4rem !important;
  color: var(--hq-muted);
}

/* style.css removes the container's side padding site-wide; restore it here */
.home-faq .container {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* ---------- Intro column ---------- */

.hq-aside {
  position: sticky;
  top: 7rem;
}

.hq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--hq-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hq-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.home-faq h2 {
  margin-bottom: 0.9rem;
  color: var(--hq-ink);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hq-lead {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hq-help {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(20rem 12rem at 100% 0%, rgba(184, 144, 63, 0.14), transparent 60%),
    var(--hq-tint);
}

.hq-help h3 {
  margin-bottom: 0.3rem;
  color: var(--hq-ink);
  font-size: 1.1rem;
}

.hq-help p {
  margin-bottom: 1.1rem;
  font-size: 0.93rem;
}

.hq-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-faq .hq-btn-wa {
  background: var(--hq-whatsapp);
  color: #fff;
}

.home-faq .hq-btn-wa:hover {
  background: #178a45;
  color: #fff;
}

.home-faq .hq-btn-ghost {
  border: 1px solid rgba(23, 27, 36, 0.15);
  background: #fff;
  color: var(--hq-ink);
}

.home-faq .hq-btn-ghost:hover {
  border-color: var(--hq-primary);
  color: var(--hq-primary);
}

.hq-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: var(--hq-primary);
  font-weight: 600;
  text-decoration: none;
}

.hq-more i {
  transition: transform 0.2s ease;
}

.hq-more:hover i {
  transform: translateX(3px);
}

/* ---------- Accordion ---------- */

.hq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hq-item {
  overflow: hidden;
  border: 1px solid var(--hq-line);
  border-radius: 1.1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hq-item:has(.hq-q[aria-expanded="true"]) {
  border-color: rgba(31, 42, 68, 0.35);
  box-shadow: 0 18px 36px -24px rgba(31, 42, 68, 0.45);
}

.hq-item h3 {
  margin: 0;
  font-size: inherit;
}

.hq-q {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: none;
  color: var(--hq-ink);
  font-family: var(--bs-heading-font-family, "Playfair Display", Georgia, serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.hq-num {
  flex: none;
  color: var(--hq-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hq-q-text {
  flex: 1;
}

/* plus that turns into a minus */
.hq-toggle {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--hq-tint);
  transition: background-color 0.2s ease;
}

.hq-toggle::before,
.hq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2px;
  margin: -1px 0 0 -0.375rem;
  border-radius: 2px;
  background: var(--hq-ink);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.hq-toggle::after {
  transform: rotate(90deg);
}

.hq-q[aria-expanded="true"] .hq-toggle {
  background: var(--hq-primary);
}

.hq-q[aria-expanded="true"] .hq-toggle::before,
.hq-q[aria-expanded="true"] .hq-toggle::after {
  background: #fff;
}

.hq-q[aria-expanded="true"] .hq-toggle::after {
  transform: rotate(0deg);
}

.hq-q:hover .hq-q-text {
  color: var(--hq-primary);
}

.hq-a {
  padding: 0 1.25rem 1.25rem 3.35rem;
  line-height: 1.75;
}

.hq-a p:last-child {
  margin-bottom: 0;
}

.home-faq a:focus-visible,
.hq-q:focus-visible {
  outline: 2px solid var(--hq-primary);
  outline-offset: -2px;
  border-radius: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-faq * {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .hq-aside {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .home-faq {
    padding-top: 3.5rem !important;
  }

  .hq-q {
    gap: 0.75rem;
    padding: 1rem;
    font-size: 0.97rem;
  }

  .hq-a {
    padding: 0 1rem 1.1rem;
  }

  .hq-help-actions .hq-btn {
    flex: 1 1 auto;
  }
}
