/*
 * Custom Design System for lostfrontierhandbookpdf.com
 * Vintage Homestead & Off-Grid Survivalist Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Merriweather:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-forest: #224229;
  --primary-forest-hover: #162f1c;
  --secondary-leather: #8c6239;
  --accent-gold: #c59b27;
  --text-dark: #2d2621;
  --text-medium: #4e443f;
  --text-light: #8e847e;
  --bg-parchment: #fdfbf7;
  --bg-parchment-dark: #f3edd7;
  --bg-gradient: linear-gradient(180deg, #fdfbf7 0%, #f7f1e5 100%);
  --star-gold: #e2b13c;
  --border-color: #e6dfd3;
  
  /* Fonts */
  --font-header: 'Montserrat', sans-serif;
  --font-title: 'Cinzel', serif;
  --font-body: 'Merriweather', Georgia, serif;
  
  /* Layout */
  --container-width: 960px;
  --shadow-sm: 0 1px 3px rgba(34, 66, 41, 0.05);
  --shadow-md: 0 4px 10px rgba(45, 38, 33, 0.08);
  --shadow-lg: 0 15px 35px rgba(45, 38, 33, 0.15);
  --transition: all 0.25s ease-in-out;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-parchment);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.3;
}

.title-vintage {
  font-family: var(--font-title);
  letter-spacing: 1px;
}

h2 {
  font-size: 2.1rem;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-forest);
}

p {
  margin-bottom: 1.6rem;
}

/* Header Banner Section */
.header-banner {
  background-color: var(--primary-forest);
  padding: 25px 0;
  border-bottom: 3px solid var(--accent-gold);
  text-align: center;
}

.header-banner h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 25px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}

.hero h2 span.accent-bg {
  color: #ffffff;
  background-color: var(--primary-forest);
  padding: 2px 10px;
  border-radius: 4px;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 25px;
}

.rating-stars svg {
  fill: var(--star-gold);
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 3px rgba(226, 177, 60, 0.3));
  transition: var(--transition);
}

/* Staggered load animation styles for stars */
.rating-stars svg.star-animate {
  animation: starPulse 1.2s ease-in-out infinite alternate;
}

@keyframes starPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Bullet Lists */
.bullet-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 35px auto;
  text-align: left;
}

.bullet-list li {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-medium);
}

.bullet-list li svg {
  color: var(--accent-gold);
  margin-right: 12px;
  flex-shrink: 0;
}

/* Main Content Wrapper */
.content-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.content-section.bg-parchment-gradient {
  background: var(--bg-gradient);
}

/* Two Column Grid */
.grid-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.grid-image {
  text-align: center;
}

.grid-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.grid-image img:hover {
  transform: scale(1.02);
}

.grid-content h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--primary-forest);
}

/* Checkmark List Item Style */
.checkmark-list {
  list-style: none;
  margin-bottom: 25px;
  margin-top: 20px;
}

.checkmark-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-size: 1.1rem;
}

.checkmark-list li svg {
  color: var(--primary-forest);
  margin-right: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* CTA Buttons */
.cta-container {
  text-align: center;
  margin: 45px 0;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #d9a727 0%, #a67c13 100%);
  color: #ffffff;
  padding: 22px 50px;
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(166, 124, 19, 0.3);
  transition: var(--transition);
  border: 1px solid #c59b27;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  background: linear-gradient(180deg, #f0be3d 0%, #d9a727 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(166, 124, 19, 0.45);
}

.btn-subtext {
  display: block;
  margin-top: 15px;
  font-family: var(--font-header);
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Book Mockup Section (3 Bonus) */
.bonuses-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.bonuses-section h2 {
  margin-bottom: 45px;
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.bonus-card {
  background: var(--bg-parchment);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.bonus-header {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.bonus-img {
  text-align: center;
  margin-bottom: 20px;
}

.bonus-img img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bonus-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-forest);
}

.bonus-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-medium);
  line-height: 1.5;
}

/* Guarantee Box */
.guarantee-box {
  background-color: #f7f3e8;
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 55px 0;
}

.guarantee-badge {
  flex-shrink: 0;
  width: 140px;
  text-align: center;
}

.guarantee-badge img {
  max-width: 100%;
  height: auto;
}

.guarantee-text h3 {
  font-size: 1.55rem;
  color: var(--primary-forest);
  margin-bottom: 10px;
  font-family: var(--font-header);
}

.guarantee-text p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--text-medium);
}

/* SSL & Payment Trust Icons */
.trust-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}

.trust-icons svg {
  height: 35px;
  fill: var(--text-light);
}

/* Disclaimer & Footer Style */
.disclaimer-section {
  background-color: #f3ede2;
  padding: 55px 0;
  font-size: 0.85rem;
  color: var(--text-medium);
  border-top: 1px solid var(--border-color);
  line-height: 1.8;
}

.disclaimer-section p {
  margin-bottom: 1.5rem;
}

.disclaimer-section a {
  color: var(--text-dark);
  text-decoration: underline;
  font-weight: 600;
}

.footer-nav {
  text-align: center;
  margin-bottom: 35px;
  font-weight: 700;
  font-family: var(--font-header);
}

.footer-nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--primary-forest);
}

/* Exit Intent Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 38, 33, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.popup-content {
  background: var(--bg-parchment);
  max-width: 540px;
  width: 90%;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  animation: popupScale 0.25s ease-out;
}

@keyframes popupScale {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--text-dark);
}

.popup-content h3.popup-alert {
  color: #c2410c;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--font-header);
}

.popup-content h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-forest);
}

.popup-content p {
  font-size: 1.05rem;
  margin-bottom: 25px;
}

.popup-discount-box {
  background: #fdf6e2;
  border: 2px dashed var(--accent-gold);
  padding: 22px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.popup-discount-box h2 {
  color: var(--primary-forest);
  font-size: 2.1rem;
  margin-bottom: 5px;
  font-weight: 800;
}

.popup-discount-box p {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-leather);
}

.popup-btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #d9a727 0%, #a67c13 100%);
  color: #ffffff;
  padding: 18px;
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(166, 124, 19, 0.3);
  transition: var(--transition);
  border: 1px solid #c59b27;
  cursor: pointer;
}

.popup-btn:hover {
  background: linear-gradient(180deg, #f0be3d 0%, #d9a727 100%);
  box-shadow: 0 6px 20px rgba(166, 124, 19, 0.45);
}

.popup-decline {
  display: inline-block;
  margin-top: 15px;
  color: var(--text-medium);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.popup-decline:hover {
  color: var(--text-dark);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero h2 {
    font-size: 1.9rem;
  }
  
  .bullet-list li {
    font-size: 1.05rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .bonuses-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  
  .guarantee-badge {
    width: 110px;
  }
}


/* ==========================================================================
   SEO FAQ & INGREDIENTS SECTION (Added for Bing/Google 1500+ Words Ranking)
   ========================================================================== */

.seo-faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  background-color: rgba(30, 41, 59, 0.02);
}

.seo-faq-section.dark-mode {
  background-color: rgba(30, 41, 59, 0.2);
}

.seo-faq-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 60px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.faq-item h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-bright, #0f172a);
}

body[class*="dark"] .faq-item h4, 
.yusleep .faq-item h4, 
.lostfrontier .faq-item h4 {
  color: #f8fafc !important;
}

.faq-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.ingredients-detail {
  margin-top: 60px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  border-top: 2px solid var(--border-color);
  padding-top: 50px;
}

.ingredients-detail h3 {
  font-size: 1.7rem;
  margin-bottom: 30px;
  text-align: center;
}

.ingredient-row {
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.ingredient-row strong {
  color: var(--text-bright, #0f172a);
  font-size: 1.15rem;
  display: inline-block;
  margin-bottom: 5px;
}

body[class*="dark"] .ingredient-row strong,
.yusleep .ingredient-row strong,
.lostfrontier .ingredient-row strong {
  color: #f8fafc !important;
}
