/* ═══════════════════════════════════════════════════
   MYOBITUARYAPP — faq.css
   Page-specific styles for faq.blade.php
   Design: Dark Mode Premium — Gold Accents
   (matches all feature pages)
═══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --dark-bg:           #0f1117;
  --dark-bg-secondary: #161b22;
  --dark-card:         #1c2128;
  --dark-border:       #30363d;
  --gold:              #d4aa4a;
  --gold-light:        #e8c76e;
  --gold-pale:         #f0dfa8;
  --text-primary:      #e6edf3;
  --text-secondary:    #8b949e;
  --text-muted:        #6e7681;
  --r:                 14px;
  --r-lg:              22px;
  --r-xl:              32px;
  --ease:              cubic-bezier(0.25,0.46,0.45,0.94);
  --shadow-soft:       0 8px 40px rgba(0,0,0,0.4);
  --shadow-deep:       0 20px 60px rgba(0,0,0,0.6);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: #000;
  padding: 14px 30px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn-gold:hover {
  background: var(--gold-light); color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,170,74,0.35);
}

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  padding: 13px 26px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500;
  border: 1.5px solid var(--dark-border); cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn-ghost-light:hover {
  background: var(--dark-card); border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════════════════ */
.section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 12px;
}
.section-title em { font-style: italic; color: var(--gold-pale); }

/* ══════════════════════════════════════════════════
   HERO SECTION — LEFT / RIGHT LAYOUT
══════════════════════════════════════════════════ */
.faq-hero-new {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: stretch;
  background: var(--dark-bg);
  overflow: hidden; padding-top: 80px;
}

.faq-hero-left {
  flex: 0 0 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px; z-index: 2;
}

.faq-hero-content { max-width: 560px; width: 100%; }

.faq-hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px;
}
.faq-hero-label::before { content: ''; width: 28px; height: 1px; background: var(--gold-light); }

.faq-hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  color: #fff; margin-bottom: 16px;
}
.faq-hero-title em { font-style: italic; color: var(--gold-pale); }

.faq-hero-subtitle {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-secondary);
}

.faq-hero-right {
  flex: 0 0 50%; position: relative; overflow: hidden;
}
.faq-hero-right::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,14,20,0.55) 0%, rgba(22,27,34,0.25) 50%, transparent 100%);
  z-index: 1;
}
.faq-hero-right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}

/* ══════════════════════════════════════════════════
   FAQ MAIN SECTION
══════════════════════════════════════════════════ */
.faq-main-section {
  padding: 100px 0; background: var(--dark-bg-secondary);
  border-top: 1px solid var(--dark-border);
}

.faq-main-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: flex-start;
}

/* ── Intro Column ── */
.faq-intro-col { padding-top: 10px; position: sticky; top: 100px; }

.faq-intro-col .section-label { justify-content: flex-start; }

.faq-intro-col h3 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px; line-height: 1.25;
}
.faq-intro-col h3 em { font-style: italic; color: var(--gold-pale); }

.faq-intro-col > p {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px;
}

/* ── Accordion ── */
.faq-accordion {
  display: flex; flex-direction: column; gap: 12px;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.3s var(--ease);
}
.faq-item:hover { border-color: rgba(212,170,74,0.4); }
.faq-item.active { border-color: var(--gold); box-shadow: 0 4px 20px rgba(212,170,74,0.1); }

.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; user-select: none;
  transition: all 0.3s var(--ease);
  background: transparent;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-item.active .faq-question { background: rgba(212,170,74,0.05); }

.faq-question-text {
  font-size: 0.92rem; font-weight: 600; line-height: 1.5;
  color: var(--text-primary); margin: 0; flex: 1; padding-right: 16px;
}

.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
  transition: transform 0.35s var(--ease);
  background: rgba(212,170,74,0.1); border-radius: 8px;
  border: 1px solid rgba(212,170,74,0.2);
}
.faq-item.active .faq-icon { transform: rotate(180deg); background: var(--gold); color: #000; }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  padding: 0 24px; background: transparent;
}
.faq-item.active .faq-answer {
  max-height: 600px; padding: 0 24px 22px;
  border-top: 1px solid var(--dark-border);
}

.faq-answer p {
  font-size: 0.88rem; line-height: 1.75;
  color: var(--text-secondary); margin: 0; padding-top: 18px;
}

/* ══════════════════════════════════════════════════
   BOTTOM CTA CARD
══════════════════════════════════════════════════ */
.faq-bottom-cta {
  margin-top: 64px;
  background: linear-gradient(135deg, rgba(212,170,74,0.08) 0%, rgba(212,170,74,0.04) 100%);
  border: 1px solid rgba(212,170,74,0.25); border-radius: var(--r-lg);
  padding: 56px 48px; text-align: center;
}

.faq-bottom-cta h3 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px; line-height: 1.2;
}
.faq-bottom-cta h3 em { font-style: italic; color: var(--gold-pale); }

.faq-bottom-cta p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7;
  max-width: 520px; margin: 0 auto 32px;
}

.faq-bottom-cta-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.faq-hero-label    { animation: slideInLeft  0.7s var(--ease) 0.05s both; }
.faq-hero-title    { animation: slideInLeft  0.7s var(--ease) 0.15s both; }
.faq-hero-subtitle { animation: slideInLeft  0.7s var(--ease) 0.25s both; }
.faq-hero-right    { animation: slideInRight 0.8s var(--ease) 0.20s both; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .faq-hero-new    { min-height: auto; flex-direction: column; }
  .faq-hero-left   { flex: 1; padding: 60px 28px; }
  .faq-hero-right  { flex: 1; min-height: 300px; flex: 0 0 300px; }
  .faq-main-grid   { grid-template-columns: 1fr; gap: 48px; }
  .faq-intro-col   { position: static; }
}

@media (max-width: 768px) {
  .faq-main-section  { padding: 70px 0; }
  .faq-bottom-cta    { padding: 40px 24px; }
  .faq-question      { padding: 16px 18px; }
  .faq-question-text { font-size: 0.85rem; }
  .faq-item.active .faq-answer { padding: 0 18px 18px; }
}

@media (max-width: 480px) {
  .faq-hero-title  { font-size: 2rem; }
  .faq-bottom-cta-actions { flex-direction: column; align-items: center; }
  .faq-bottom-cta-actions a { width: 100%; justify-content: center; }
}