/* ================================
   FAQ PAGE STYLES (1-column, cleaned + optimized)
   - Removes leftover masonry/2-col rules
   - Keeps your on-brand header color + calm card styling
   ================================ */

/* Wrapper (assumes this sits inside your .container) */
.faq-wrap{
  width: 100%;
}

/* Intro sentence under page hero / H1 */
.faq-intro{
  margin: 0 0 clamp(16px, 2vw, 24px);
  max-width: 72ch;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

/* Section headers */
.faq-section{
  margin: clamp(28px, 4vw, 56px) 0 clamp(14px, 1.8vw, 22px);
  padding-top: clamp(8px, 1vw, 12px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 1.1vw + 0.85rem, 1.55rem);
  color: var(--brand);
  scroll-margin-top: 110px; /* sticky header offset */
}


/* 1-column stack */
.faq-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}

/* Optional: cap line length and center cards for a calmer, “brochure” feel */
.faq-grid{
  justify-items: center;
}
.faq-item{
  width: 100%;
}

/* Card */
.faq-item{
  position: relative;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: clamp(12px, 1.6vw, 16px);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 4px 12px rgba(0,0,0,.04);
  min-width: 0;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

/* Question */
.faq-q{
margin: 0 0 8px 0;
font-weight: 800;
line-height: 1.25;
/* letter-spacing: -0.01em; */
font-size: 1.1rem;
}

/* Answer */
.faq-a{
  margin: 0;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  overflow-wrap: anywhere;
}

/* Multi-paragraph answers (future-proof) */
.faq-item p + p{
  margin-top: 10px;
}

/* Links inside answers */
.faq-a a{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-a a:hover{
  text-decoration-thickness: 2px;
}

/* Hover lift */
@media (hover:hover) and (pointer:fine){
  .faq-item:hover{
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: color-mix(in srgb, var(--brand) 20%, var(--line));
  }
}

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


/* open state */
.faq-q button[aria-expanded="true"] {
  color: #8b1936; /* brand color */
}

/* optional: make the +/- indicator match too */
.faq-q button[aria-expanded="true"]::after {
  color: #8b1936;
}


.faq-q button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }


/* FAQ question button (accessible accordion trigger) */
.faq-q {
  margin: 0;
}

.faq-q button {
  /* reset native button look */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  /* layout */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  /* typography */
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  line-height: 1.25;

  /* interaction behavior (borrowed from site button patterns) */
  border-radius: 10px;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

/* Put the click target padding on the button itself */
.faq-item .faq-q button {
  padding: 14px 16px;
}

/* Strong keyboard focus (match your site button focus style if you have one) */
.faq-q button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Optional chevron / plus-minus indicator */
.faq-q button::after {
  content: "+";
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1;
}

.faq-q button[aria-expanded="true"]::after {
  content: "-";
}

/* Answer panel spacing */
.faq-item > div[hidden] {
  display: none !important;
}



/* If your answer paragraph already has margins, normalize it */
.faq-a {
  margin: 0;
}


/* Keep hidden panels truly gone */
.faq-item > div[hidden] {
  display: none !important;
}

/* Panel wrapper (JS animates height/opacity inline) */
.faq-item > div[id^="faq-a-"] {
  overflow: hidden;
  will-change: height, opacity;
}

/* Remove default paragraph margins that cause snap/jump */
.faq-item > div[id^="faq-a-"] .faq-a {
  margin: 0;
  padding: 0 16px 16px; /* match your card spacing */
}

/* If you have links/lists inside answers, also normalize first/last margins */
.faq-item > div[id^="faq-a-"] > :first-child {
  margin-top: 0;
}
.faq-item > div[id^="faq-a-"] > :last-child {
  margin-bottom: 0;
}


/* FAQ Quick Links styled like attraction filters
   =========================== */
.faq-wrap .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 2rem;
}

.faq-wrap .filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Merriweather Sans", system-ui;
  transition:
    background .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease),
    transform .18s var(--ease),
    box-shadow .18s var(--ease),
    filter .18s var(--ease);
  padding: 14px;
  font-size: 15px;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.faq-wrap .filter:hover {
  transform: translateY(-1px);
}

.faq-wrap .filter:active,
.faq-wrap .filter:focus {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  filter: saturate(1.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  outline: none;
}

/* Optional: Active state when scrolled to section */
.faq-wrap .filter.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  filter: saturate(1.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq-wrap .filter {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}






/* Floating back to filters button */
.floating-filter-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  font-family: "Merriweather Sans", system-ui;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.floating-filter-btn:hover {
  background: var(--brand-dark, #0052a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.floating-filter-btn:active {
  transform: translateY(0);
}

.floating-filter-btn .btn-icon {
  font-size: 18px;
  line-height: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .floating-filter-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 14px;
  }
  
  .floating-filter-btn .btn-text {
    display: none; /* Show icon only on mobile */
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-filter-btn {
    transition: none;
    transform: none !important;
  }
}



.faq-section {
  scroll-margin-top: 40px; /* adjust this value */
}