/* =========================================================
   HIGHLAND GUNS FAQ PAGE
   Add after template-style-complete.css
   ========================================================= */

.hg-faq-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(17, 17, 17, 0.94) 52%, rgba(38, 5, 7, 0.90) 100%),
    radial-gradient(circle at 86% 30%, rgba(190, 10, 20, 0.45), transparent 34%);
}

.hg-faq-hero::after {
  content: "?";
  position: absolute;
  right: clamp(20px, 8vw, 150px);
  top: 50%;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(18rem, 36vw, 38rem);
  font-weight: 800;
  line-height: 0.7;
  transform: translateY(-48%);
  pointer-events: none;
}

.hg-faq-hero .hg-container {
  position: relative;
  z-index: 1;
}

.hg-faq-hero .hg-page-hero__content {
  max-width: 820px;
}

.hg-faq-topics {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #d5d5d2;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
}

.hg-faq-topics__inner {
  display: flex;
  gap: 10px;
  padding-top: 13px;
  padding-bottom: 13px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hg-faq-topics a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #d2d2cf;
  color: #171717;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 160ms ease;
}

.hg-faq-topics a:hover,
.hg-faq-topics a:focus-visible {
  border-color: #b50912;
  color: #fff;
  background: #b50912;
}

.hg-faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.65fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: start;
}

.hg-faq-section-heading {
  position: sticky;
  top: 92px;
}

.hg-faq-section-heading h2 {
  margin: 7px 0 15px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.hg-faq-section-heading > p:last-child {
  max-width: 420px;
}

.hg-faq-list {
  border-top: 3px solid #b50912;
}

.hg-faq-item {
  border-right: 1px solid #d7d7d3;
  border-bottom: 1px solid #d7d7d3;
  border-left: 1px solid #d7d7d3;
  background: #fff;
}

.hg-faq-item summary {
  position: relative;
  padding: 24px 66px 24px 26px;
  color: #151515;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.hg-faq-item summary::-webkit-details-marker {
  display: none;
}

.hg-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #b50912;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

.hg-faq-item[open] summary::after {
  content: "−";
}

.hg-faq-item[open] summary {
  color: #b50912;
  background: #f6f6f3;
}

.hg-faq-item summary:hover,
.hg-faq-item summary:focus-visible {
  background: #f6f6f3;
}

.hg-faq-answer {
  padding: 2px 66px 28px 26px;
}

.hg-faq-answer p {
  margin: 0 0 14px;
}

.hg-faq-answer p:last-child {
  margin-bottom: 0;
}

.hg-faq-answer a {
  display: inline-block;
  margin-top: 5px;
  color: #a80710;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hg-faq-answer a:hover,
.hg-faq-answer a:focus-visible {
  color: #151515;
}

.hg-faq-sources {
  padding: clamp(65px, 9vw, 120px) 0;
  color: #fff;
  background: #151515;
}

.hg-faq-sources__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(35px, 7vw, 100px);
  align-items: center;
}

.hg-faq-sources h2 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.hg-faq-sources__links {
  display: grid;
  gap: 12px;
}

.hg-faq-sources__links a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: 160ms ease;
}

.hg-faq-sources__links a:hover,
.hg-faq-sources__links a:focus-visible {
  border-color: #d20c17;
  background: #b50912;
}

@media screen and (max-width: 900px) {
  .hg-faq-layout,
  .hg-faq-sources__panel {
    grid-template-columns: 1fr;
  }

  .hg-faq-section-heading {
    position: static;
  }
}

@media screen and (max-width: 600px) {
  .hg-faq-hero::after {
    right: -35px;
    font-size: 18rem;
  }

  .hg-faq-topics {
    position: static;
  }

  .hg-faq-item summary {
    padding: 20px 58px 20px 18px;
  }

  .hg-faq-item summary::after {
    right: 16px;
  }

  .hg-faq-answer {
    padding: 0 18px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-faq-topics a,
  .hg-faq-sources__links a {
    transition: none;
  }
}
