/* =========================================================
   INVITEWALLA — FAQ Page
   css/faq.css
   =========================================================
   Extends marketing.css. All tokens from :root are inherited.
   Mobile-first. Same breakpoints: 480 / 768 / 1024.
========================================================= */


/* ── HERO ───────────────────────────────────────────────── */

.iw-faqpage-hero {
  padding: 120px 24px 72px;
  background: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.iw-faqpage-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.iw-faqpage-decor {
  position: absolute;
  opacity: 1;
}
.iw-faqpage-decor--tl { top: 0;    left: 0;  }
.iw-faqpage-decor--br { bottom: 0; right: 0; }

.iw-faqpage-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--text);
  letter-spacing: -.3px;
  margin-top: 12px;
}
.iw-faqpage-heading em {
  font-style: italic;
  color: var(--gold);
}

.iw-faqpage-sub {
  margin: 20px auto 0;
  max-width: 480px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
}

.iw-faqpage-gold-line {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}


/* ── FAQ BODY ───────────────────────────────────────────── */

.iw-faqpage-body {
  padding: 72px 24px 80px;
  background: var(--cream);
}

.iw-faqpage-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 720px;
  margin-inline: auto;
}


/* ── QUESTION GROUP ─────────────────────────────────────── */

.iw-faqpage-group-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.iw-faqpage-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--parchment);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}


/* ── ACCORDION ITEMS ────────────────────────────────────── */

.iw-faqpage-list {
  display: flex;
  flex-direction: column;
}

.iw-faqpage-item {
  border-bottom: 1px solid var(--border);
}

.iw-faqpage-q {
  margin: 0;
}

.iw-faqpage-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  transition: color .2s ease;
}

.iw-faqpage-btn:hover {
  color: var(--gold);
}

.iw-faqpage-btn:hover .iw-faqpage-chevron {
  color: var(--gold);
}

.iw-faqpage-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .35s var(--ease), color .2s ease;
}

.iw-faqpage-btn[aria-expanded="true"] .iw-faqpage-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.iw-faqpage-a {
  padding: 0 0 20px;
  margin: 0;
}

.iw-faqpage-a p {
  font-family: "Montserrat", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
  padding-right: 32px;
}


/* ── CTA SECTION ────────────────────────────────────────── */

.iw-faqpage-cta {
  padding: 96px 24px;
  background: var(--dark-bg);
  text-align: center;
}

.iw-faqpage-cta-inner {
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.iw-faqpage-cta-ornament {
  margin-bottom: 28px;
}

.iw-faqpage-cta-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: -.2px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.iw-faqpage-cta-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.iw-faqpage-cta-sub {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: rgba(251,245,236,.55);
  line-height: 1.75;
  margin-bottom: 36px;
}

.iw-faqpage-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Ghost button on dark bg */
.iw-faqpage-cta .iw-btn-ghost {
  color: rgba(251,245,236,.65);
  border-color: rgba(251,245,236,.2);
}
.iw-faqpage-cta .iw-btn-ghost:hover {
  background: rgba(251,245,236,.08);
  border-color: rgba(251,245,236,.4);
  color: var(--ivory);
}


/* ── FOOTER ─────────────────────────────────────────────── */

.iw-faqpage-footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(181,138,58,.18);
  padding: 28px 24px;
}

.iw-faqpage-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: var(--max);
  margin-inline: auto;
}

.iw-faqpage-footer-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -.2px;
}

.iw-faqpage-footer-copy {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  color: rgba(251,245,236,.3);
  letter-spacing: .3px;
}

.iw-faqpage-footer-nav {
  display: flex;
  gap: 24px;
}
.iw-faqpage-footer-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(251,245,236,.42);
  transition: color .2s ease;
}
.iw-faqpage-footer-nav a:hover { color: var(--gold); }


/* ── DESKTOP ────────────────────────────────────────────── */

@media (min-width: 768px) {
  .iw-faqpage-hero {
    padding: 140px 24px 88px;
  }

  .iw-faqpage-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .iw-faqpage-grid {
    /* Side-by-side: two columns, Ordering+Pricing left, About right */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 56px;
    max-width: 980px;
    align-items: start;
  }

  /* First group spans left column, full height */
  .iw-faqpage-group:nth-child(1) { grid-column: 1; grid-row: 1; }
  .iw-faqpage-group:nth-child(2) { grid-column: 1; grid-row: 2; padding-top: 48px; }
  .iw-faqpage-group:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }

  /* Vertical divider between columns */
  .iw-faqpage-group:nth-child(3) {
    border-left: 1px solid var(--border);
    padding-left: 56px;
  }
}


/* ── REDUCED MOTION ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .iw-faqpage-chevron {
    transition: none;
  }
}
