/* ==========================================================================
   FAQ section (home page)
   ========================================================================== */

.faq-section {
  --faq-red: #b10303;
  --faq-red-dark: #7d0202;
  --faq-red-soft: rgba(177, 3, 3, .08);
  --faq-cream: #f8f0e3;
  --faq-ink: #1f1a17;
  --faq-body: #4a4440;
  --faq-muted: #8a817a;
  --faq-line: #ece3d5;
  --faq-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 110px 20px 120px;
  background:
    radial-gradient(circle at 1px 1px, rgba(177, 3, 3, .09) 1px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(180deg, #fff 0%, #fbf6ee 55%, var(--faq-cream) 100%);
  font-family: Open Sans, sans-serif;
  color: var(--faq-body);
}

/* Soft fade on the dot pattern so edges feel airy */
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, #fff 85%);
  opacity: .75;
  pointer-events: none;
}

/* ---------- Decorative background ---------- */

.faq-blob {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: faq-drift 18s ease-in-out infinite alternate;
}

.faq-blob--one {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -160px;
  background: rgba(177, 3, 3, .14);
}

.faq-blob--two {
  width: 520px;
  height: 520px;
  right: -200px;
  bottom: -180px;
  background: rgba(231, 170, 90, .22);
  animation-delay: -9s;
}

@keyframes faq-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.faq-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.faq-bubbles span {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 45%, rgba(177, 3, 3, .10) 100%);
  box-shadow: inset 0 0 0 1px rgba(177, 3, 3, .12);
  opacity: 0;
  animation: faq-rise linear infinite;
}

.faq-bubbles span:nth-child(1) { left: 6%;  width: 22px; height: 22px; animation-duration: 16s; }
.faq-bubbles span:nth-child(2) { left: 18%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: -4s; }
.faq-bubbles span:nth-child(3) { left: 34%; width: 30px; height: 30px; animation-duration: 20s; animation-delay: -11s; }
.faq-bubbles span:nth-child(4) { left: 52%; width: 14px; height: 14px; animation-duration: 14s; animation-delay: -7s; }
.faq-bubbles span:nth-child(5) { left: 67%; width: 26px; height: 26px; animation-duration: 18s; animation-delay: -2s; }
.faq-bubbles span:nth-child(6) { left: 81%; width: 10px; height: 10px; animation-duration: 11s; animation-delay: -6s; }
.faq-bubbles span:nth-child(7) { left: 92%; width: 34px; height: 34px; animation-duration: 22s; animation-delay: -15s; }

@keyframes faq-rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate3d(24px, -50vh, 0); }
  90%  { opacity: .7; }
  100% { transform: translate3d(-12px, -110vh, 0); opacity: 0; }
}

/* ---------- Layout ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: 72px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.faq-wrap > * {
  min-width: 0;
}

.faq-intro {
  position: sticky;
  top: 40px;
}

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

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(177, 3, 3, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  color: var(--faq-red);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.faq-eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faq-red);
}

.faq-eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--faq-red);
  animation: faq-ping 2s var(--faq-ease) infinite;
}

@keyframes faq-ping {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(3.2); opacity: 0; }
}

.faq-title {
  margin: 0 0 22px;
  color: var(--faq-ink);
  font-family: Merriweather, serif;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.faq-title-accent {
  position: relative;
  display: inline-block;
  color: var(--faq-red);
  white-space: nowrap;
}

.faq-underline {
  position: absolute;
  left: -2%;
  bottom: -12px;
  width: 104%;
  height: 16px;
  overflow: visible;
}

.faq-underline path {
  fill: none;
  stroke: var(--faq-red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: .55;
  transition: stroke-dashoffset 1.2s var(--faq-ease) .55s;
}

.faq-intro.is-visible .faq-underline path {
  stroke-dashoffset: 0;
}

.faq-lead {
  max-width: 460px;
  margin: 0 0 34px;
  color: var(--faq-body);
  font-size: 18px;
  line-height: 30px;
}

/* Stats */

.faq-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.faq-stat {
  padding: 16px 14px;
  border: 1px solid var(--faq-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--faq-ease), box-shadow .4s var(--faq-ease), border-color .4s;
}

.faq-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 3, 3, .25);
  box-shadow: 0 14px 30px -18px rgba(177, 3, 3, .45);
}

.faq-stat-value {
  display: block;
  color: var(--faq-red);
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.faq-stat-label {
  display: block;
  margin-top: 4px;
  color: var(--faq-muted);
  font-size: 13px;
  line-height: 18px;
}

/* CTA card */

.faq-cta {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .18), transparent 45%),
    linear-gradient(135deg, #c80808 0%, var(--faq-red) 45%, var(--faq-red-dark) 100%);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(125, 2, 2, .7);
}

.faq-cta::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border: 26px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.faq-cta-title {
  margin: 0 0 6px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.faq-cta-text {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 23px;
}

.faq-cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 13px 22px 13px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--faq-red);
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .35s var(--faq-ease), box-shadow .35s var(--faq-ease);
}

.faq-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(177, 3, 3, .12), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--faq-ease);
}

.faq-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45);
}

.faq-cta-button:hover::before {
  left: 125%;
}

.faq-cta-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--faq-red);
  color: #fff;
}

.faq-cta-button:hover .faq-cta-icon svg {
  animation: faq-ring .6s ease-in-out;
}

@keyframes faq-ring {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(-16deg); }
  40%      { transform: rotate(14deg); }
  60%      { transform: rotate(-10deg); }
  80%      { transform: rotate(6deg); }
}

.faq-cta-alt {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.faq-cta-alt a {
  color: #fff;
  font-weight: 600;
}

/* ---------- Filters ---------- */

.faq-filters {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -22px rgba(31, 26, 23, .35);
}

.faq-filter-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--faq-red);
  box-shadow: 0 8px 18px -8px rgba(177, 3, 3, .8);
  transition: transform .5s var(--faq-ease), width .5s var(--faq-ease), height .5s var(--faq-ease);
  pointer-events: none;
}

.faq-filter {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faq-body);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .35s var(--faq-ease);
}

.faq-filter:hover {
  color: var(--faq-red);
}

.faq-filter.is-active {
  color: #fff;
}

.faq-filter:focus-visible {
  outline: 2px solid var(--faq-red);
  outline-offset: 2px;
}

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

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--faq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 26, 23, .04);
  transition:
    transform .5s var(--faq-ease),
    box-shadow .5s var(--faq-ease),
    border-color .4s,
    opacity .45s var(--faq-ease);
}

/* Cursor-following spotlight */
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(177, 3, 3, .07), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

/* Left accent bar */
.faq-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #e01f1f, var(--faq-red-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--faq-ease);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 3, 3, .22);
  box-shadow: 0 18px 40px -26px rgba(31, 26, 23, .35);
}

.faq-item:hover::before,
.faq-item.is-open::before {
  opacity: 1;
}

.faq-item.is-open {
  border-color: rgba(177, 3, 3, .28);
  box-shadow: 0 30px 60px -34px rgba(177, 3, 3, .45);
}

.faq-item.is-open::after {
  transform: scaleY(1);
}

.faq-item.is-filtered-out {
  display: none;
}

.faq-item.is-entering {
  animation: faq-pop .55s var(--faq-ease) both;
  animation-delay: var(--faq-delay, 0ms);
}

@keyframes faq-pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.faq-question {
  margin: 0;
  font-size: inherit;
}

.faq-trigger {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 22px 24px 22px 26px;
  border: 0;
  background: transparent;
  color: var(--faq-ink);
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--faq-red);
  outline-offset: -4px;
  border-radius: 18px;
}

.faq-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--faq-red-soft);
  color: var(--faq-red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: background .45s var(--faq-ease), color .45s var(--faq-ease), transform .6s var(--faq-ease);
}

.faq-item.is-open .faq-num {
  background: var(--faq-red);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}

.faq-q-text {
  transition: color .3s;
}

.faq-trigger:hover .faq-q-text,
.faq-item.is-open .faq-q-text {
  color: var(--faq-red);
}

.faq-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--faq-line);
  border-radius: 50%;
  background: #fff;
  transition: background .45s var(--faq-ease), border-color .45s, transform .6s var(--faq-ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--faq-red);
  transition: transform .5s var(--faq-ease), background .3s;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-trigger:hover .faq-icon {
  border-color: var(--faq-red);
}

.faq-item.is-open .faq-icon {
  border-color: var(--faq-red);
  background: var(--faq-red);
  transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: #fff;
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(0deg);
}

/* Height animation via grid rows: no JS measuring, content stays crawlable */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--faq-ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

.faq-answer {
  margin: 0;
  padding: 0 28px 26px 88px;
  color: var(--faq-body);
  font-size: 17px;
  line-height: 29px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .5s var(--faq-ease);
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: none;
  transition-delay: .12s;
}

.faq-answer a {
  color: var(--faq-red);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--faq-ease);
}

.faq-answer a:hover {
  background-size: 100% 2px;
}

.faq-foot {
  margin: 26px 0 0;
  color: var(--faq-muted);
  font-size: 15px;
  text-align: center;
}

.faq-foot a {
  color: var(--faq-red);
  font-weight: 700;
  text-decoration: none;
}

.faq-foot a:hover {
  text-decoration: underline;
}

/* ---------- Scroll reveal ---------- */

.faq-js .faq-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--faq-ease), transform .9s var(--faq-ease);
  transition-delay: var(--faq-delay, 0ms);
}

.faq-js .faq-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Once revealed, hand transitions back to the card's own hover/open styles */
.faq-js .faq-item.faq-reveal.is-settled {
  transition:
    transform .5s var(--faq-ease),
    box-shadow .5s var(--faq-ease),
    border-color .4s,
    opacity .45s var(--faq-ease);
  transition-delay: 0ms;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 991px) {
  .faq-section {
    padding: 80px 20px 90px;
  }

  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .faq-intro {
    position: static;
  }

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

  .faq-lead {
    max-width: none;
  }
}

@media screen and (max-width: 767px) {
  .faq-section {
    padding: 64px 16px 72px;
  }

  .faq-title {
    font-size: 32px;
  }

  .faq-lead {
    font-size: 16px;
    line-height: 26px;
  }

  .faq-stat-value {
    font-size: 21px;
  }

  .faq-stat-label {
    font-size: 12px;
  }

  .faq-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .faq-filters::-webkit-scrollbar {
    display: none;
  }

  .faq-filter {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
  }

  .faq-trigger {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 18px 16px 18px 16px;
    font-size: 16px;
    line-height: 23px;
  }

  .faq-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-answer {
    padding: 0 18px 22px 18px;
    font-size: 16px;
    line-height: 27px;
  }

  .faq-cta {
    padding: 24px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-section *,
  .faq-section *::before,
  .faq-section *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .faq-bubbles {
    display: none;
  }

  .faq-underline path {
    stroke-dashoffset: 0;
  }
}
