/* ═══════════════════════════════════════════════════
   MYOBITUARYAPP — funeral-announcements.css
   Page-specific styles for funeral-announcements.blade.php
   Design: Dark Mode Premium — Gold Accents
═══════════════════════════════════════════════════ */

/* ── 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;
}
.serif { font-family: 'Lora', serif; }
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); }

.section-sub {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; max-width: 500px;
}

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

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

.fa-hero-content { max-width: 600px; width: 100%; }

.fa-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;
}
.fa-hero-label::before { content: ''; width: 28px; height: 1px; background: var(--gold-light); }

.fa-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;
}
.fa-hero-title em { font-style: italic; color: var(--gold-pale); }

.fa-hero-subtitle {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 32px;
}

/* ── Hero Feature Icons ── */
.fa-hero-features {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px; margin-bottom: 40px;
}

.fa-hero-feature-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 12px;
}

.fa-hero-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(212,170,74,0.12);
  border: 1px solid rgba(212,170,74,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.2rem;
  transition: all 0.3s var(--ease);
}
.fa-hero-feature-item:hover .fa-hero-feature-icon {
  background: var(--gold); color: #000; border-color: var(--gold);
}

.fa-hero-feature-item span {
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 500;
  color: var(--text-secondary); line-height: 1.4;
}

.fa-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

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

/* ══════════════════════════════════════════════════
   TEMPLATES SECTION
══════════════════════════════════════════════════ */
.fa-templates-section {
  padding: 100px 0; background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
}

.fa-templates-header { text-align: center; margin-bottom: 48px; }
.fa-templates-header .section-label { justify-content: center; }
.fa-templates-header .section-title { margin-bottom: 32px; }

/* ── Filter Buttons ── */
.fa-templates-filters {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 56px;
}

.fa-filter-btn {
  background: transparent; color: var(--text-secondary);
  border: 1.5px solid var(--dark-border);
  padding: 10px 20px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s var(--ease);
}
.fa-filter-btn:hover,
.fa-filter-btn.active {
  background: var(--gold); color: #000; border-color: var(--gold);
}

/* ── Carousel ── */
.fa-templates-carousel { position: relative; overflow: hidden; margin-bottom: 32px; }

.fa-templates-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 0; scrollbar-width: none;
}
.fa-templates-track::-webkit-scrollbar { display: none; }

.fa-template-card {
  flex: 0 0 calc(16.666% - 16px); min-width: 200px;
  background: var(--dark-card); border-radius: var(--r-lg);
  border: 1px solid var(--dark-border); overflow: hidden;
  transition: all 0.35s var(--ease); cursor: pointer; text-align: center;
}
.fa-template-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-deep);
  border-color: var(--gold); background: #202730;
}
.fa-template-card img { width: 100%; height: 240px; object-fit: cover; }
.fa-template-card h5 {
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0; padding: 16px 12px 4px;
}
.fa-template-card p {
  font-size: 0.75rem; color: var(--text-muted);
  padding: 0 12px 16px; margin: 0;
}

/* ── Carousel Controls ── */
.fa-carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
}

.fa-carousel-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark-card); border: 1px solid var(--dark-border);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.fa-carousel-arrow:hover { background: var(--gold); color: #000; border-color: var(--gold); }

.fa-templates-view-all { text-align: center; }
.fa-templates-view-all a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 0.9rem;
  text-decoration: underline; transition: all 0.3s var(--ease);
}
.fa-templates-view-all a:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════════════
   HOW IT WORKS + FLIP PAGES — COMBINED SECTION
══════════════════════════════════════════════════ */
.fa-combined-section {
  padding: 100px 0; background: var(--dark-bg-secondary);
  border-top: 1px solid var(--dark-border);
}

.fa-combined-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 20px; align-items: flex-start;
}

/* ── Left: How It Works ── */
.fa-how-content { max-width: 850px; }
.fa-how-content .section-label { justify-content: flex-start; }
.fa-how-content .section-title { margin-bottom: 56px; font-size: clamp(2rem, 3vw, 2.4rem); }

.fa-how-steps {
  display: flex; flex-direction: row;
  justify-content: space-between; gap: 24px; margin-bottom: 48px;
}

.fa-how-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 16px; flex: 1;
}

.fa-how-step-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(212,170,74,0.12);
  border: 1.5px solid rgba(212,170,74,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.6rem; flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.fa-how-step:hover .fa-how-step-icon {
  background: rgba(212,170,74,0.2); border-color: var(--gold); transform: scale(1.08);
}

.fa-how-step-num {
  font-family: 'Lora', serif; font-size: 1.8rem; font-weight: 700;
  color: var(--gold); line-height: 1; display: block;
}

.fa-how-step-content h4 {
  font-family: 'Lora', serif; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px; line-height: 1.3;
}
.fa-how-step-content p {
  font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; margin: 0;
}

.fa-how-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }

/* ── Right: Flip Pages Image ── */
.fa-flip-content {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 40px; align-items: flex-start;
}

.fa-flip-image-container { position: relative; margin-left: 40px; }
.fa-flip-image-container img {
  max-width: 100%; height: 450px; min-width: 600px;
  border-radius: var(--r-lg); box-shadow: var(--shadow-deep);
}

/* ── Bottom Features Bar (5 items) ── */
.fa-bottom-features {
  display: flex; justify-content: space-between; gap: 20px;
  width: 100%; margin-top: 10px; padding-top: 48px;
  border-top: 1px solid var(--dark-border);
  grid-column: 1 / -1;
}

.fa-bottom-feature {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px; flex: 1; padding: 0;
}

.fa-bottom-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(212,170,74,0.12);
  border: 1px solid rgba(212,170,74,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.2rem;
  transition: all 0.3s var(--ease);
}
.fa-bottom-feature:hover .fa-bottom-feature-icon {
  background: rgba(212,170,74,0.2); border-color: var(--gold); transform: scale(1.08);
}

.fa-bottom-feature h5 {
  font-family: 'Lora', serif; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 4px; line-height: 1.2;
}
.fa-bottom-feature p { font-size: 0.75rem; color: var(--text-secondary); margin: 0; line-height: 1.4; }

/* ══════════════════════════════════════════════════
   EXTRA FEATURES SECTION
══════════════════════════════════════════════════ */
.fa-features-section {
  padding: 100px 0; background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
}

.fa-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}

.fa-feature-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--r-lg); padding: 38px 28px; text-align: center;
  transition: all 0.35s var(--ease);
}
.fa-feature-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-deep);
  border-color: var(--gold); background: #202730;
}

.fa-feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(212,170,74,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold); margin: 0 auto 20px;
}

.fa-feature-card h4 {
  font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 10px;
}
.fa-feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ══════════════════════════════════════════════════
   FINAL CTA SECTION
══════════════════════════════════════════════════ */
.fa-cta-section {
  position: relative; padding: 100px 0; overflow: hidden;
  background: linear-gradient(135deg, #0a0e14 0%, #161b22 50%, #1c2128 100%);
  border-top: 1px solid var(--dark-border);
}

.fa-cta-bg { position: absolute; inset: 0; z-index: 0; }
.fa-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.fa-cta-overlay {
  position: absolute; inset: 0;
  background: rgba(15,17,23,0.14);
}

.fa-cta-inner { position: relative; z-index: 2; text-align: center; color: #fff; }

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

.fa-cta-sub {
  font-size: 0.92rem; color: var(--text-secondary);
  max-width: 460px; margin: 16px auto 40px; line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   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); }
}

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

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .fa-template-card { flex: 0 0 calc(20% - 16px); }
}

@media (max-width: 991px) {
  .fa-combined-grid    { grid-template-columns: 1fr; gap: 60px; }
  .fa-hero-new         { min-height: auto; flex-direction: column; }
  .fa-hero-left        { flex: 1; padding: 60px 40px; }
  .fa-hero-right       { flex: 1; min-height: 400px; }
  .fa-template-card    { flex: 0 0 calc(25% - 15px); }
  .fa-how-steps        { flex-direction: row; }
  .fa-flip-content     { grid-template-columns: 1fr; }
  .fa-bottom-features  { flex-direction: row; }
}

@media (max-width: 768px) {
  .fa-templates-filters { gap: 8px; }
  .fa-filter-btn        { padding: 8px 16px; font-size: 0.8rem; }
  .fa-template-card     { flex: 0 0 calc(33.333% - 14px); min-width: 150px; }
  .fa-features-grid     { grid-template-columns: repeat(2, 1fr); }
  .fa-hero-features     { grid-template-columns: 1fr 1fr; }
  .fa-hero-left         { padding: 40px 28px; }
  .fa-how-steps         { flex-direction: column; gap: 40px; }
  .fa-how-step          { flex: 1; }
  .fa-flip-content      { grid-template-columns: 1fr; }
  .fa-bottom-features   { flex-direction: column; }
  .fa-bottom-feature    { border-bottom: 1px solid var(--dark-border); padding-bottom: 16px; }
  .fa-bottom-feature:last-child { border-bottom: none; }
  .fa-templates-section,
  .fa-combined-section,
  .fa-features-section,
  .fa-cta-section       { padding: 70px 0; }
}

@media (max-width: 480px) {
  .fa-hero-title       { font-size: 2rem; }
  .fa-hero-actions     { flex-direction: column; }
  .fa-hero-actions a   { width: 100%; justify-content: center; }
  .fa-template-card    { flex: 0 0 calc(50% - 10px); min-width: 120px; }
  .fa-features-grid    { grid-template-columns: 1fr; }
  .fa-hero-features    { grid-template-columns: 1fr 1fr; }
  .fa-templates-filters { flex-direction: column; }
  .fa-filter-btn       { width: 100%; }
  .fa-how-steps        { gap: 16px; }
  .fa-combined-grid    { gap: 40px; }
  .fa-how-step-icon    { width: 48px; height: 48px; font-size: 1.2rem; }
  .fa-how-step-num     { font-size: 1.4rem; }
  .fa-how-step-content h4 { font-size: 0.75rem; }
  .fa-how-step-content p  { font-size: 0.65rem; }
  .fa-bottom-features  { flex-direction: column; }
  .fa-bottom-feature   { flex-direction: row; align-items: center; gap: 16px; border-bottom: 1px solid var(--dark-border); padding-bottom: 16px; }
  .fa-bottom-feature-icon { flex-shrink: 0; }
}