/* FAQ page styles — external CSS for the static front end. Relocated from the inline
   <style> block in src/routes/public/faq.ts (data-only pivot). */

/* ── Hero ── */
.faq-hero { position: relative; background: #0f172a; padding: 7rem 1.5rem 6rem; text-align: center; overflow: hidden; }
.faq-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 65%); pointer-events: none; }
.faq-hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.faq-hero-label { font-family: 'Raleway', sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #38bdf8; margin-bottom: 1rem; animation: faqFadeUp 0.6s ease-out both; }
.faq-hero-title { font-family: 'Raleway', sans-serif; font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 900; color: #fff; margin-bottom: 1.25rem; line-height: 1.05; letter-spacing: -0.02em; animation: faqFadeUp 0.6s ease-out 0.15s both; }
.faq-hero-title span { color: #38bdf8; }
.faq-hero-sub { font-family: 'Raleway', sans-serif; font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.6); line-height: 1.75; animation: faqFadeUp 0.6s ease-out 0.3s both; }
@keyframes faqFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── FAQ Section ── */
.faq-section { background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%); padding: 5rem 1.5rem; }
.faq-section-header { text-align: center; margin-bottom: 3rem; }
.faq-section-header h2 { font-family: 'Raleway', sans-serif; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: #fff; margin-bottom: 0.6rem; line-height: 1.15; }
.faq-section-header h2 span { color: #0f172a; }
.faq-section-header p { font-family: 'Raleway', sans-serif; font-size: 1rem; color: rgba(255,255,255,0.8); }
.faq-section-header p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

/* ── FAQ Item ── */
.faq-item { border-radius: 16px; overflow: hidden; background: #dbeafe; border: 2px solid #93c5fd; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.faq-item:hover { border-color: #0ea5e9; box-shadow: 0 8px 28px rgba(14,165,233,0.2); transform: translateY(-2px); }
.faq-item.open { border-color: #0ea5e9; box-shadow: 0 8px 28px rgba(14,165,233,0.22); transform: translateY(-2px); }
.faq-question { width: 100%; display: flex; align-items: center; gap: 0.85rem; padding: 1.2rem 1.5rem; background: transparent; border: none; cursor: pointer; text-align: left; font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 700; color: #0f172a; transition: background 0.25s ease, color 0.25s ease; }
.faq-item.open .faq-question { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); color: #fff; }
.faq-num { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Raleway', sans-serif; font-size: 0.72rem; font-weight: 800; transition: background 0.25s; }
.faq-item.open .faq-num { background: rgba(255,255,255,0.25); }
.faq-question-text { flex: 1; }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: rgba(14,165,233,0.12); color: #0ea5e9; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.35s ease, background 0.25s, color 0.25s; }
.faq-item.open .faq-icon { background: rgba(255,255,255,0.2); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease; padding: 0 1.5rem; background: #fff; }
.faq-item.open .faq-answer { max-height: 400px; padding: 1.25rem 1.5rem; }
.faq-answer p { font-family: 'Raleway', sans-serif; font-size: 0.97rem; font-weight: 500; color: #475569; line-height: 1.8; margin: 0; }
.faq-empty { text-align: center; padding: 3rem; background: #dbeafe; border-radius: 16px; border: 2px solid #93c5fd; }
.faq-empty p { font-family: 'Raleway', sans-serif; color: #475569; margin-bottom: 1.25rem; }

/* ══ Display layouts (admin-selectable via Settings → FAQ) ══════════════════════
   The active layout class is set on #faq-list (.faq-inner) by faq-static.js from the
   API's `layout` key. Default 'accordion' needs no override (rules above). Data-only:
   the backend sends only the key — all layout CSS lives here. */

/* ── Grid: every answer open, 2-column cards, no click ── */
.faq-inner.faq-layout--grid { max-width: 1120px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.25rem; align-items: start; }
.faq-layout--grid .faq-question { cursor: default; align-items: flex-start; }
.faq-layout--grid .faq-icon { display: none; }
.faq-layout--grid .faq-answer { max-height: none; padding: 1rem 1.5rem 1.35rem; background: #fff; }
.faq-layout--grid .faq-item:hover { transform: none; }

/* ── List: clean stacked, always open, minimal dividers ── */
.faq-inner.faq-layout--list { max-width: 760px; gap: 0; }
.faq-layout--list .faq-item { border: none; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid rgba(255,255,255,0.28); overflow: visible; }
.faq-layout--list .faq-item:last-child { border-bottom: none; }
.faq-layout--list .faq-item:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.28); }
.faq-layout--list .faq-question { cursor: default; padding: 1.5rem 0 0.6rem; font-size: 1.12rem; color: #fff; }
.faq-layout--list .faq-icon { display: none; }
.faq-layout--list .faq-num { background: rgba(255,255,255,0.22); }
.faq-layout--list .faq-answer { max-height: none; padding: 0 0 1.5rem 3.55rem; background: transparent; }
.faq-layout--list .faq-answer p { color: rgba(255,255,255,0.88); }
@media (max-width: 480px) { .faq-layout--list .faq-answer { padding-left: 0; } }

/* ── CTA ── */
.faq-cta-section { background: #dbeafe; border-top: 3px solid #93c5fd; padding: 5rem 1.5rem; text-align: center; }
.faq-cta-inner { max-width: 600px; margin: 0 auto; }
.faq-cta-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; box-shadow: 0 8px 24px rgba(14,165,233,0.35); }
.faq-cta-section h2 { font-family: 'Raleway', sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: #0f172a; margin-bottom: 0.75rem; }
.faq-cta-section p { font-family: 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 500; color: #374151; line-height: 1.75; margin-bottom: 2rem; }
.faq-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.faq-btn-primary { padding: 0.85rem 2rem; background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); color: #fff; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.95rem; border: none; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 16px rgba(14,165,233,0.3); transition: box-shadow 0.2s, transform 0.2s; }
.faq-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(14,165,233,0.45); }
.faq-btn-secondary { padding: 0.85rem 2rem; background: transparent; color: #0f172a; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.95rem; border: 2px solid #93c5fd; border-radius: 8px; text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.faq-btn-secondary:hover { border-color: #0ea5e9; background: rgba(14,165,233,0.06); transform: translateY(-2px); }
