/* ----------------------------------- */
/* 🔥 PRELOADER */
/* ----------------------------------- */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preloader-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade-out {
  opacity: 0;
  transition: opacity 1.2s ease;
}


/* ----------------------------------- */
/* 🔥 HERO SECTION */
/* ----------------------------------- */
#hero,
.section-exhale {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 60px 20px;
  background-color: transparent;
}

#hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

/* ----------------------------------- */
/* 🔥 HERO TEXT & BUTTON ANIMATION */
/* ----------------------------------- */
#hero-content h1,
#hero-content p,
.cta-button {
  animation: fadeIn 0.8s ease forwards;
  animation-play-state: paused;
  opacity: 0;
}

body.show-hero #hero-content h1,
body.show-hero #hero-content p,
body.show-hero .cta-button {
  animation-play-state: running;
}

#hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  animation-delay: 0.8s;
}

.cta-button {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 12px 30px;
  background-color: #d14b00;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation-delay: 1.1s;
}

.cta-button:hover {
  background-color: #a63b00;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}


/* 🔥 Exhale Blurb Section */
.exhale-overlay {
  background-color: rgba(254, 250, 245, 0.86); /* soft wash over video or background */
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  text-align: center;
}

.exhale-overlay::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(to bottom, rgba(254,250,245,0) 0%, rgba(254,250,245,1) 100%);
  pointer-events: none;
  z-index: -10;
}

.exhale-overlay .cta-button {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1.2px;
  background-color: #d14b00;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}


.exhale-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: #2c2c2c;
}

.exhale-container p {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4a4139;
  margin-top: 18px;
}

.exhale-container p:last-child em {
  font-style: italic;
  color: #d14b00;
}

.exhale-overlay p:last-of-type {
  margin-bottom: 0;
}

.exhale-container {
  padding-bottom: 50px; 
}

.exhale-overlay .cta-button:hover {
  background-color: #a63b00;
  transform: translateY(-2px);
}


.reclaiming {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #d14b00;
  font-size: 1.4rem;
  position: relative;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.reclaiming::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #d14b00;
  opacity: 0.3;
}

.reclaiming:hover {
  transform: scale(1.05);
  letter-spacing: 1px;
}

/* ----------------------------------- */
/* 🔥 FLAME INTRO SWIPER STYLING */
/* ----------------------------------- */

/* Hide/Show based on device width */
.desktop-only {
  display: flex;
}

.mobile-only, .flame-swiper {
  display: none;
}


#flame-intro {
  padding: 80px 20px;
  text-align: center;
  background: transparent;
  position: relative;
  z-index: 2;
}

#flame-intro::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(to bottom, rgba(254,250,245,1) 0%, rgba(254,250,245,0) 100%);
  pointer-events: none;
  z-index: -10;
}

/* Soft Fade at Bottom */
#flame-intro::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 600px; /* Match Firestarter fade */
  background: linear-gradient(to bottom, rgba(254,250,245,0) 0%, rgba(254,250,245,1) 100%);
  pointer-events: none;
  z-index: -10;
}

.flame-intro-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #2c2c2c;
}

.flame-intro-header p {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #5c534a;
  margin-bottom: 40px;
}

/* Desktop Cards */
.flame-cards-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 30px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px;
  box-sizing: border-box;
}

.flame-card {
  flex: 1 1 22%;
  background: #fdf7f1;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  min-height: 520px;
}

.flame-card video {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.flame-cta {
  background-color: #d14b00;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.flame-cta:hover {
  background-color: #a63b00;
  transform: translateY(-2px);
}

/* 🔥 Hover glow */
.flame-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.25);
}

/* Staggering Animation Delay */
.flame-card:nth-child(1) { animation-delay: 0.2s; }
.flame-card:nth-child(2) { animation-delay: 0.4s; }
.flame-card:nth-child(3) { animation-delay: 0.6s; }
.flame-card:nth-child(4) { animation-delay: 0.8s; }


/* ----------------------------------- */
/* 🔥 FOOTER - FULL WIDTH STRUCTURE */
/* ----------------------------------- */
#main-footer {
  background-color: #fef1e5;
  padding: 32px 20px 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-family: 'Lora', serif;
}

.footer-grid {
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 12px;
}

.footer-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  width: 40px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
  opacity: 1;
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #5b5147;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: #d14b00;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #5b5147;
  opacity: 0.8;
  letter-spacing: 0.6px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

#browser-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.warning-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

.warning-modal {
  position: relative;
  background: #fefaf5;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 100000;
}

.warning-modal h2 {
  font-family: 'Playfair Display', serif;
  color: #d14b00;
  margin-bottom: 20px;
}

.warning-modal p {
  font-family: 'Lora', serif;
  color: #36302A;
  margin-bottom: 20px;
  font-size: 1rem;
}

#continue-button {
  background-color: #d14b00;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#continue-button:hover {
  background-color: #a63b00;
}

/* 🔥 FIRESTARTER SECTION STYLES */
.firestarter-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(55, 27, 0, 0.4) 100%), url('../assets/ember-texture.jpg') no-repeat center center/cover;
  background-blend-mode: overlay;
  z-index: 2;
  overflow: hidden;
}


/* Top Fade */
.firestarter-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(to bottom, rgba(254,250,245,1) 0%, rgba(254,250,245,0) 100%);
  pointer-events: none;
  z-index: -10;
}

.firestarter-section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(to bottom, rgba(254,250,245,0) 0%, rgba(254,250,245,1) 100%);
  pointer-events: none;
  z-index: -10;
}


.firestarter-overlay {
  background-color: rgba(254, 250, 245, 0.92);
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  max-width: 1400px; /* was 900px */
  width: 100%;
  text-align: center;
}

/* 🔥 Firestarter Flex Layout - Centered Version */
.firestarter-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.firestarter-left, .firestarter-right {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔥 Center Book */
.firestarter-left {
  flex-direction: column;
}

/* 🔥 Text Block */
.firestarter-right {
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.firestarter-right .firestarter-topper,
.firestarter-right .firestarter-title,
.firestarter-right .firestarter-subtitle,
.firestarter-right .firestarter-features,
.firestarter-right .firestarter-cta {
  width: 100%;
}

.firestarter-topper {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;  
  text-align: center;
  letter-spacing: 1.5px;
  color: #d14b00;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.firestarter-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  text-align: center;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
}

.firestarter-subtitle {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  text-align: center;
  color: #4a4139;
  margin-bottom: 40px;
  line-height: 1.6;
}

.firestarter-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.firestarter-features li {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: #5c534a;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.firestarter-cta {
  font-size: 1.1rem;
  padding: 16px 40px;
  text-align: center;
}

/* 🔥 Ethereal Divider */
.divider-container {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}

.ethereal-divider {
  max-width: 120px;
  opacity: 0.15;
  filter: blur(0.5px);
}

/* 🔥 Firestarter Book Image */
.firestarter-book {
  margin: 30px auto;
}

.firestarter-book img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  transition: box-shadow 0.6s ease, transform 0.6s ease;
}

/* ✨ Glow on Hover */
.firestarter-book img:hover {
  box-shadow: 0 0 30px rgba(209, 75, 0, 0.6), 0 0 60px rgba(209, 75, 0, 0.4);
  transform: scale(1.02);
}


/* 🔥 Mini Flame Icon for Features */
.flame-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('../assets/fwf-icon-512x512.png') no-repeat center center / contain;
  margin-right: 10px;
  animation: flamePulse 5s infinite ease-in-out;
}

.firestarter-features li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

/* 🔥 Expanded Firestarter Pitch Section */
.firestarter-expanded {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  background: linear-gradient(to bottom, rgba(254,250,245,0.9) 0%, rgba(254,245,235,0.85) 100%);
  backdrop-filter: blur(4px);
  text-align: center;
  z-index: 2;
}

.expanded-container {
  max-width: 700px;
  margin: 0 auto;
}

.firestarter-expanded h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #d14b00;
  margin-bottom: 20px;
}

.firestarter-expanded p {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #4a4139;
  line-height: 1.7;
  margin: 20px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll Fade-in */
.firestarter-expanded p.visible {
  opacity: 1;
  transform: translateY(0);
}

.firestarter-button-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}





/* ----------------------------------- */
/* 🔥 RESPONSIVE - MOBILE OPTIMIZATION */
/* ----------------------------------- */
@media screen and (max-width: 768px) {
  #hero {
    height: 100vh;
    min-height: 100vh;
  }

  #hero-content h1 {
    font-size: 2.2rem;
  }

  #hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 10px 24px;
  }

  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }

  .flame-swiper {
    width: 100%;
    padding: 20px;
    margin-bottom: 50px;
  }

  .flame-card {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    height: auto;
    min-height: 500px;
    flex: none;
  }

  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: auto;
    position: relative;
    margin-top: 20px;
  }

  .swiper-pagination {
    margin-top: 30px;
    position: relative;
    bottom: 0;
    padding-bottom: 20px;
  }

  /* Swiper Pagination Dots */
  .swiper-pagination-bullets {
    bottom: 20px;
    position: relative;
    margin-top: 30px;
  }
  
  .swiper-pagination-bullet {
    background: #e8e0d5;
    opacity: 0.8;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(209, 75, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .swiper-pagination-bullet-active {
    background: #d14b00;
    opacity: 1;
    transform: scale(1.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(209, 75, 0, 0.4);
  }

  .firestarter-flex-container {
    flex-direction: column;
  }

  .firestarter-left, .firestarter-right {
    flex: 1 1 100%;
  }

  .firestarter-right {
    align-items: center;
    text-align: center;
  }

  .firestarter-title {
    font-size: 2.2rem;
  }
  .firestarter-subtitle {
    font-size: 1rem;
  }
  .firestarter-cta {
    font-size: 1rem;
    padding: 14px 32px;
  }

  /* Global page title spacing fix for mobile */
  .page-title-container {
    margin-top: 6rem !important;
    padding-top: 2rem;
  }
}


/* ----------------------------------- */
/* 🔥 ANIMATIONS */
/* ----------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fire breathing animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔥 Flame Pulse Animation */
@keyframes flamePulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0.7; }
}

/* Fix for swiper pagination on mobile to ensure it doesn't overlap with content */
#flame-intro .swiper-container {
  padding-bottom: 60px;
}

#flame-intro .swiper-pagination {
  margin-top: 40px;
  position: relative;
  bottom: 0;
  padding-bottom: 30px;
}

/* Swiper Pagination Dots - More specific selectors to override defaults */
#flame-intro .swiper-pagination-bullets,
.swiper-horizontal > .swiper-pagination-bullets {
  bottom: 0;
  position: relative;
  margin-top: 30px;
  width: 100%;
  left: 0;
}

#flame-intro .swiper-pagination-bullet,
.swiper-pagination-bullet {
  background: #e8e0d5 !important;
  opacity: 0.8 !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 8px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(209, 75, 0, 0.2) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#flame-intro .swiper-pagination-bullet-active,
.swiper-pagination-bullet-active {
  background: #d14b00 !important;
  opacity: 1 !important;
  transform: scale(1.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 8px rgba(209, 75, 0, 0.4) !important;
}

.flame-swiper {
  padding-bottom: 60px !important;
}