/* =========================================================
   StayScout FAQ Page
   Loaded after /styles.css
   ========================================================= */

.faq-page {
  background: #fff;
}

.faq-nav-active {
  color: var(--primary-7);
  font-weight: 600;
}

.faq-mobile-active {
  background: var(--primary-5);
  color: var(--primary-7);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 205px 40px 110px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.66) 0, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,0.35) 0, rgba(255,255,255,0) 32%),
    linear-gradient(135deg, var(--primary-5) 0%, var(--primary-12) 100%);
}

.faq-hero::after {
  content: "?";
  position: absolute;
  right: clamp(30px, 8vw, 150px);
  bottom: -72px;
  color: rgba(48, 48, 132, 0.055);
  font-size: clamp(240px, 28vw, 430px);
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: faqFadeUp 0.9s ease-out 0.12s both;
}

.faq-eyebrow,
.faq-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.faq-eyebrow {
  margin: 0 auto 24px;
  padding: 9px 16px;
  color: var(--primary-7);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17,17,43,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.faq-title {
  margin: 0;
  color: var(--primary-1);
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.faq-intro {
  max-width: 700px;
  margin: 28px auto 0;
  color: var(--primary-14);
  font-size: 18px;
  line-height: 30px;
}

/* ---------------------------------------------------------
   Main FAQ layout
   --------------------------------------------------------- */

.faq-section {
  padding: 175px 50px 120px;
  background: #fff;
}

.faq-layout {
  width: min(1250px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.45fr);
  gap: 80px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 150px;
  padding: 38px;
  border-radius: 25px;
  background: var(--primary-5);
  box-sizing: border-box;
}

.faq-kicker {
  margin: 0 0 16px;
  color: var(--primary-7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-sidebar h2,
.faq-cta h2 {
  margin: 0;
  color: var(--primary-1);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.faq-sidebar > p:not(.faq-kicker) {
  margin: 22px 0 30px;
  color: var(--primary-14);
  line-height: 27px;
}

.faq-sidebar-button {
  width: fit-content;
}

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

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--primary-4);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(17,17,43,0.045);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(48, 48, 132, 0.26);
  box-shadow: 0 14px 36px rgba(17,17,43,0.065);
}

.faq-item summary {
  min-height: 76px;
  padding: 23px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
  color: var(--primary-1);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

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

.faq-item summary:focus-visible {
  outline: 3px solid rgba(48,48,132,0.24);
  outline-offset: -3px;
}

.faq-icon {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-5);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 3px;
  background: var(--primary-7);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 78px 27px 26px;
}

.faq-answer p {
  margin: 0;
  color: var(--primary-3);
  line-height: 28px;
}

.faq-answer a {
  color: var(--primary-7);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.faq-cta {
  padding: 0 50px 120px;
  background: #fff;
}

.faq-cta-inner {
  width: min(1250px, 100%);
  margin: 0 auto;
  padding: 55px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  box-sizing: border-box;
  background: var(--primary-5);
  border-radius: 25px;
}

.faq-cta-inner > div {
  max-width: 720px;
}

.faq-cta-inner p:not(.faq-kicker) {
  margin: 20px 0 0;
  color: var(--primary-14);
}

.faq-cta-button {
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Animation + Responsive
   --------------------------------------------------------- */

@keyframes faqFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-hero-inner {
    animation: none;
  }

  .faq-icon::before,
  .faq-icon::after {
    transition: none;
  }
}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .faq-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .faq-hero {
    padding: 165px 25px 85px;
  }

  .faq-title {
    font-size: 40px;
    line-height: 48px;
  }

  .faq-intro {
    font-size: 16px;
    line-height: 27px;
  }

  .faq-section {
    padding: 160px 25px;
  }

  .faq-sidebar {
    padding: 30px;
  }

  .faq-item summary {
    min-height: 68px;
    padding: 20px;
    gap: 18px;
    font-size: 16px;
  }

  .faq-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .faq-answer {
    padding: 0 20px 23px;
  }

  .faq-cta {
    padding: 0 25px 70px;
  }

  .faq-cta-inner {
    padding: 38px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
}
