/* ==========================================================================
   Frequently Asked Questions — Royal dark cinematic rebuild
   Dedicated FAQ hero video + topic sections + accordion answers
   ========================================================================== */

.rhf-faq-page {
  --rhf-faq-gold: #feda6a;
  --rhf-faq-gold-strong: #ffd700;
  --rhf-faq-bg-main: #0d0e12;
  --rhf-faq-bg-deep: #121214;
  --rhf-faq-bg-panel: #161820;
  --rhf-faq-bg-graphite: #1d1e22;
  --rhf-faq-bg-card: #1f1f23;
  --rhf-faq-bg-slate: #494d5f;
  --rhf-faq-bg-green: #27444a;
  --rhf-faq-text: #ffffff;
  --rhf-faq-muted: rgba(255, 255, 255, 0.80);
  --rhf-faq-soft: rgba(255, 255, 255, 0.64);
  --rhf-faq-line: rgba(255, 255, 255, 0.15);
  --rhf-faq-line-strong: rgba(254, 218, 106, 0.23);
  --rhf-faq-radius-xl: clamp(1.25rem, 2.2vw, 2rem);
  --rhf-faq-radius-lg: 1.35rem;
  --rhf-faq-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  background: var(--rhf-faq-bg-main);
  color: var(--rhf-faq-text);
  overflow: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rhf-faq-page .rhf-container {
  width: min(100% - (var(--gutter, 2rem) * 2), var(--container, 1280px));
  margin-inline: auto;
}

.rhf-faq-page *,
.rhf-faq-page *::before,
.rhf-faq-page *::after {
  box-sizing: border-box;
}

.rhf-faq-icon {
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Hero video
   Uses .rhf-page-hero__shade so the central hero shade file controls darkness.
   ========================================================================== */

.rhf-faq-hero {
  position: relative;
  min-height: clamp(680px, 96svh, 960px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--rhf-faq-bg-main);
}

.rhf-faq-hero .rhf-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--rhf-faq-bg-graphite);
  background-image: var(--faq-hero-poster);
  background-size: cover;
  background-position: center;
}

.rhf-faq-hero .rhf-page-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  visibility: visible;
  filter: var(--rhf-central-hero-video-filter, none);
}

.rhf-faq-hero .rhf-page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--rhf-central-hero-shade, transparent);
}

.rhf-faq-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.48fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(8rem, 13vw, 11.5rem) clamp(5.5rem, 10vw, 8rem);
}

.rhf-faq-hero__copy {
  display: grid;
  justify-items: start;
  max-width: 980px;
}

.rhf-faq-kicker {
  margin: 0 0 1rem;
  color: var(--rhf-faq-gold);
  -webkit-text-fill-color: var(--rhf-faq-gold);
  font-size: clamp(0.72rem, 0.66rem + 0.22vw, 0.86rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rhf-faq-hero h1,
.rhf-faq-heading h2,
.rhf-faq-final-card h2 {
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading, Manrope, Inter, "Helvetica Neue", Arial, sans-serif);
  font-weight: 850;
  text-wrap: balance;
}

.rhf-faq-hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.073em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.rhf-faq-hero__line {
  max-width: 730px;
  margin: clamp(1.2rem, 2.2vw, 1.8rem) 0 0;
  color: rgba(255, 255, 255, 0.88);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 1.25vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.rhf-faq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.7rem, 3vw, 2.4rem);
}

.rhf-faq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.004em;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.rhf-faq-button:hover,
.rhf-faq-button:focus-visible {
  transform: translateY(-1px);
}

.rhf-faq-button--gold {
  color: #121214;
  -webkit-text-fill-color: #121214;
  background: var(--rhf-faq-gold);
  box-shadow: 0 18px 48px rgba(254, 218, 106, 0.22);
}

.rhf-faq-button--ghost {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(13, 14, 18, 0.44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rhf-faq-button--ghost:hover,
.rhf-faq-button--ghost:focus-visible {
  border-color: rgba(254, 218, 106, 0.45);
}

.rhf-faq-hero__facts {
  display: grid;
  gap: 0.9rem;
}

.rhf-faq-hero-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--rhf-faq-radius-lg);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(254, 218, 106, 0.11), transparent 60%),
    rgba(13, 14, 18, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rhf-faq-hero-fact .rhf-faq-icon {
  color: var(--rhf-faq-gold);
}

.rhf-faq-hero-fact strong {
  display: block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.rhf-faq-hero-fact span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.76);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.46;
}

/* ==========================================================================
   Sections and headings
   ========================================================================== */

.rhf-faq-section {
  position: relative;
  overflow: clip;
  padding: clamp(4.75rem, 9vw, 9rem) 0;
  color: #ffffff;
}

.rhf-faq-section > .rhf-container {
  position: relative;
  z-index: 1;
}

.rhf-faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(254, 218, 106, 0.075), transparent 62%),
    radial-gradient(600px 300px at 0% 86%, rgba(255, 255, 255, 0.045), transparent 58%);
}

.rhf-faq-section--topics,
.rhf-faq-section--green {
  background:
    radial-gradient(900px 460px at 8% 0%, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(760px 360px at 100% 20%, rgba(254, 218, 106, 0.075), transparent 54%),
    linear-gradient(135deg, var(--rhf-faq-bg-green) 0%, var(--rhf-faq-bg-graphite) 100%);
}

.rhf-faq-section--popular,
.rhf-faq-section--main {
  background:
    radial-gradient(760px 360px at 10% 18%, rgba(254, 218, 106, 0.075), transparent 62%),
    radial-gradient(700px 320px at 100% 0%, rgba(255, 255, 255, 0.05), transparent 62%),
    linear-gradient(135deg, var(--rhf-faq-bg-panel) 0%, var(--rhf-faq-bg-main) 100%);
}

.rhf-faq-section--deep,
.rhf-faq-section--cta {
  background:
    radial-gradient(760px 380px at 50% 0%, rgba(239, 68, 68, 0.075), transparent 60%),
    radial-gradient(760px 360px at 100% 20%, rgba(254, 218, 106, 0.075), transparent 54%),
    linear-gradient(180deg, rgba(31, 31, 35, 0.98), rgba(18, 18, 20, 0.99));
}

.rhf-faq-section--slate {
  background:
    radial-gradient(760px 380px at 12% 0%, rgba(254, 218, 106, 0.09), transparent 58%),
    linear-gradient(180deg, rgba(73, 77, 95, 0.96), rgba(29, 30, 34, 0.98));
}

.rhf-faq-heading {
  max-width: 900px;
}

.rhf-faq-heading--center {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.rhf-faq-heading h2,
.rhf-faq-final-card h2 {
  max-width: 960px;
  font-size: clamp(2.1rem, 4.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.rhf-faq-heading p:not(.rhf-faq-kicker),
.rhf-faq-final-card p {
  max-width: 760px;
  margin: clamp(1rem, 2vw, 1.35rem) 0 0;
  color: var(--rhf-faq-muted);
  -webkit-text-fill-color: var(--rhf-faq-muted);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.64;
  letter-spacing: -0.012em;
}

.rhf-faq-heading--center p:not(.rhf-faq-kicker) {
  margin-inline: auto;
}

.rhf-faq-section-icon {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rhf-faq-line-strong);
  border-radius: 1.25rem;
  color: var(--rhf-faq-gold);
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(254, 218, 106, 0.18), transparent 64%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.rhf-faq-text-link {
  display: inline-flex;
  margin-top: 1.3rem;
  color: var(--rhf-faq-gold);
  -webkit-text-fill-color: var(--rhf-faq-gold);
  font-weight: 800;
  text-decoration: none;
}

.rhf-faq-text-link:hover,
.rhf-faq-text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ==========================================================================
   Topic navigation and feature cards
   ========================================================================== */

.rhf-faq-topic-grid,
.rhf-faq-feature-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.rhf-faq-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rhf-faq-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rhf-faq-topic-card,
.rhf-faq-feature-card,
.rhf-faq-final-card {
  position: relative;
  border: 1px solid var(--rhf-faq-line);
  border-radius: var(--rhf-faq-radius-lg);
  background:
    radial-gradient(620px 300px at 100% 0%, rgba(254, 218, 106, 0.09), transparent 60%),
    var(--rhf-faq-bg-main);
  box-shadow: var(--rhf-faq-shadow);
}

.rhf-faq-topic-card {
  display: grid;
  gap: 0.9rem;
  min-height: 9.25rem;
  padding: clamp(1.05rem, 2vw, 1.4rem);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.rhf-faq-topic-card:hover,
.rhf-faq-topic-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(254, 218, 106, 0.36);
}

.rhf-faq-topic-card .rhf-faq-icon,
.rhf-faq-feature-card .rhf-faq-icon {
  color: var(--rhf-faq-gold);
}

.rhf-faq-topic-card span {
  align-self: end;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rhf-faq-feature-card {
  padding: clamp(1.25rem, 2.2vw, 1.85rem);
}

.rhf-faq-feature-card h3 {
  margin: 1rem 0 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.rhf-faq-feature-card p {
  margin: 0.65rem 0 0;
  color: var(--rhf-faq-muted);
  -webkit-text-fill-color: var(--rhf-faq-muted);
  line-height: 1.58;
}

/* ==========================================================================
   FAQ accordion sections
   ========================================================================== */

.rhf-faq-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.rhf-faq-heading--sticky {
  position: sticky;
  top: clamp(6rem, 9vw, 8rem);
}

.rhf-faq-list {
  display: grid;
  gap: 1rem;
}

.rhf-faq-item {
  border: 1px solid var(--rhf-faq-line);
  border-radius: var(--rhf-faq-radius-lg);
  background:
    radial-gradient(620px 300px at 100% 0%, rgba(254, 218, 106, 0.08), transparent 60%),
    rgba(13, 14, 18, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.rhf-faq-item[open] {
  border-color: rgba(254, 218, 106, 0.27);
}

.rhf-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(1.05rem, 1.28vw, 1.24rem);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
}

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

.rhf-faq-item summary i {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(254, 218, 106, 0.28);
  border-radius: 999px;
  background: rgba(254, 218, 106, 0.08);
}

.rhf-faq-item summary i::before,
.rhf-faq-item summary i::after {
  content: "";
  position: absolute;
  width: 0.78rem;
  height: 0.1rem;
  border-radius: 999px;
  background: var(--rhf-faq-gold);
  transition: transform 180ms ease;
}

.rhf-faq-item summary i::after {
  transform: rotate(90deg);
}

.rhf-faq-item[open] summary i::after {
  transform: rotate(0deg);
}

.rhf-faq-answer {
  padding: 0 clamp(1.1rem, 2vw, 1.45rem) clamp(1.1rem, 2vw, 1.45rem);
}

.rhf-faq-answer p {
  max-width: 860px;
  margin: 0;
  color: var(--rhf-faq-muted);
  -webkit-text-fill-color: var(--rhf-faq-muted);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.rhf-faq-item[open] .rhf-faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.rhf-faq-final-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.rhf-faq-final-card p {
  max-width: 760px;
}

.rhf-faq-final-card .rhf-faq-actions {
  justify-content: end;
  align-items: center;
  margin-top: 0;
}

/* ==========================================================================
   Motion, responsive, and mobile refinements
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .rhf-faq-hero .rhf-page-hero__video {
    display: none;
  }

  .rhf-faq-hero .rhf-page-hero__media {
    background-image: var(--faq-hero-poster);
  }

  .rhf-faq-button,
  .rhf-faq-topic-card {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .rhf-faq-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rhf-faq-hero__inner,
  .rhf-faq-section__grid,
  .rhf-faq-final-card {
    grid-template-columns: 1fr;
  }

  .rhf-faq-heading--sticky {
    position: static;
  }

  .rhf-faq-final-card .rhf-faq-actions {
    justify-content: start;
  }
}

@media (max-width: 820px) {
  .rhf-faq-topic-grid,
  .rhf-faq-feature-grid {
    grid-template-columns: 1fr;
  }

  .rhf-faq-hero {
    min-height: 760px;
  }

  .rhf-faq-hero .rhf-page-hero__media {
    background-image: var(--faq-hero-mobile-poster), var(--faq-hero-poster);
  }

  .rhf-faq-hero__inner {
    padding-block: 7.4rem 4.5rem;
  }

  .rhf-faq-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.55rem, 12vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.058em;
  }

  .rhf-faq-hero__facts {
    display: none;
  }

  .rhf-faq-section {
    padding-block: clamp(3.75rem, 12vw, 5.5rem);
  }

  .rhf-faq-heading h2,
  .rhf-faq-final-card h2 {
    font-size: clamp(2rem, 9vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.052em;
  }

  .rhf-faq-actions {
    width: 100%;
  }

  .rhf-faq-button {
    width: 100%;
  }

  .rhf-faq-section-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 520px) {
  .rhf-faq-item summary {
    grid-template-columns: 1fr;
  }

  .rhf-faq-item summary i {
    justify-self: start;
  }
}

/* FAQ hero support line — Royal gold */
.rhf-page--frequently-asked-questions .rhf-faq-hero__line {
  color: #feda6a !important;
  -webkit-text-fill-color: #feda6a !important;
}
