@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

:root {
  --maroon: #6A1E1E;
  --maroon-d: #3d1010;
  --maroon-l: #f8eded;
  --gold: #c9a84c;
  --gold-l: #fdf6e3;
  --cream: #fafaf8;
  --white: #ffffff;
  --text: #2d2d2d;
  --muted: #7a7a7a;
  --border: #e8e4e0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: 'Manrope', sans-serif; overflow-x: hidden; }

.back-link {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(106, 30, 30, .9);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 700;
  gap: .6rem;
  letter-spacing: .1em;
  padding: .6rem 1.25rem;
  position: fixed;
  right: 2rem;
  text-decoration: none;
  top: 1.5rem;
  transition: all .3s ease;
  z-index: 100;
}
.back-link:hover { background: var(--maroon); transform: translateY(-2px); }

.hero {
  background: linear-gradient(135deg, var(--maroon-d), var(--maroon) 58%, #8b3535);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem 2rem 5.5rem;
  position: relative;
  text-align: center;
}
.hero::after {
  background: radial-gradient(circle, rgba(201, 168, 76, .16), transparent 65%);
  content: '';
  height: 24rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42rem;
  animation: hero-glow 7s ease-in-out infinite;
}
.hero::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 30%, rgba(201, 168, 76, .28) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 78%, rgba(255, 255, 255, .12) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(201, 168, 76, .2) 0 2px, transparent 3px);
  background-size: 18rem 18rem, 22rem 22rem, 15rem 15rem, 25rem 25rem;
  content: '';
  inset: -4rem;
  opacity: .65;
  position: absolute;
  animation: drift-stars 18s linear infinite;
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  align-items: center;
  color: rgba(255, 255, 255, .65);
  display: inline-flex;
  font-size: .65rem;
  font-weight: 600;
  gap: .75rem;
  letter-spacing: .2em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fade-slide-down .7s ease both;
}
.line { background: var(--gold); height: 1px; width: 32px; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.45rem, 5.5vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
  margin-bottom: 1.15rem;
  animation: fade-slide-up .8s .08s ease both;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 600; }
.hero-sub { animation: fade-slide-up .8s .18s ease both; color: rgba(255, 255, 255, .72); font-size: .92rem; line-height: 1.8; margin: 0 auto; max-width: 620px; }

.container { margin: 0 auto; max-width: 1080px; }
.faq-section { padding: 5rem 2rem; }
.section-heading { margin-bottom: 1.75rem; max-width: 700px; }
.s-label { color: var(--gold); font-size: .65rem; font-weight: 600; letter-spacing: .2em; margin-bottom: .45rem; text-transform: uppercase; }
.s-title { color: var(--maroon); font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; margin-bottom: .85rem; }
.s-body { color: var(--muted); font-size: .86rem; line-height: 1.8; }

.category-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2.5rem; }
.category-nav .faq-tab-btn {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--maroon);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  gap: .45rem;
  padding: .7rem 1.1rem;
  text-decoration: none;
  transition: all .2s ease;
}
.category-nav .faq-tab-btn:hover { background: var(--maroon-l); border-color: var(--maroon); color: var(--maroon); transform: translateY(-2px); }
.category-nav .faq-tab-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
  box-shadow: 0 8px 18px rgba(106, 30, 30, .2);
  color: #fff;
}

.faq-layout { display: grid; gap: 1.25rem; }
.faq-group.hidden-group { display: none !important; }
.faq-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(61, 16, 16, .04);
  overflow: hidden;
  scroll-margin-top: 5rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.faq-group:hover { border-color: rgba(201, 168, 76, .55); box-shadow: 0 16px 34px rgba(61, 16, 16, .08); transform: translateY(-3px); }
.faq-group-header { align-items: center; background: var(--maroon-l); display: flex; gap: 1rem; padding: 1.35rem 1.5rem; }
.group-icon { align-items: center; background: var(--maroon); border-radius: .8rem; color: var(--gold); display: flex; flex: 0 0 auto; font-size: 1.4rem; height: 3rem; justify-content: center; width: 3rem; }
.faq-group-header h2 { color: var(--maroon); font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin-bottom: .25rem; }
.faq-group-header p:last-child { color: var(--muted); font-size: .76rem; line-height: 1.5; }

.faq-list { padding: .4rem 1.25rem; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.05rem .2rem;
  text-align: left;
  transition: color .2s ease;
  width: 100%;
}
.faq-question:hover { color: var(--maroon); }
.faq-toggle { color: var(--gold); flex: 0 0 auto; font-size: 1.1rem; transition: transform .25s ease; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-answer p { color: var(--muted); font-size: .8rem; line-height: 1.8; overflow: hidden; padding: 0 .2rem; transition: padding .28s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { padding: 0 .2rem 1rem; }
.faq-item.open .faq-question { color: var(--maroon); }
.faq-item.open .faq-toggle { animation: toggle-pop .28s ease; transform: rotate(45deg); }

.help-strip { background: var(--gold-l); border-top: 1px solid rgba(201, 168, 76, .25); padding: 3rem 2rem; }
.help-strip .container { align-items: center; display: flex; gap: 1rem; }
.help-icon { align-items: center; background: var(--maroon); border-radius: 1rem; color: var(--gold); display: flex; flex: 0 0 auto; font-size: 1.75rem; height: 4rem; justify-content: center; width: 4rem; }
.help-icon i { animation: help-float 3s ease-in-out infinite; }
.help-strip h2 { color: var(--maroon); font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; margin-bottom: .25rem; }
.help-strip p:last-child { color: var(--muted); font-size: .82rem; line-height: 1.7; }

.page-footer { background: var(--maroon); padding: 2.5rem 2rem; text-align: center; }
.page-footer p { color: rgba(255, 255, 255, .45); font-size: .75rem; }
.page-footer a { color: var(--gold); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fade-slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-glow {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes drift-stars {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4rem, -2rem, 0); }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes toggle-pop {
  0% { transform: rotate(0) scale(.7); }
  70% { transform: rotate(48deg) scale(1.18); }
  100% { transform: rotate(45deg) scale(1); }
}

@keyframes help-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-6deg); }
}

@media (max-width: 640px) {
  .back-link { right: 1rem; top: 1rem; }
  .hero { padding: 7rem 1.25rem 4.5rem; }
  .faq-section { padding: 3.5rem 1rem; }
  .faq-group-header { align-items: flex-start; padding: 1.1rem; }
  .faq-list { padding: .25rem .9rem; }
  .help-strip { padding: 2.5rem 1rem; }
  .help-strip .container { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
