 




.hero.hero-ember .book-hero-content h1 {
  font-size: clamp(3.25rem, 6vw, 4.25rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1rem !important;
  color: var(--heading-color) !important;
}
.hero.hero-ember .book-hero-content .book-subtitle {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem) !important;
  margin-bottom: 1.5rem !important;
  color: color-mix(in srgb,var(--default-color),transparent 10%) !important;
}
.hero.hero-ember .book-hero-content .author h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  margin: 0 !important;
}
.hero.hero-ember .book-hero-content .book-description {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem) !important;
  line-height: 1.75 !important;
  max-width: 42rem !important;
  color: color-mix(in srgb,var(--default-color),transparent 20%) !important;
}
.hero.hero-ember {
  min-height: 85vh !important;
  padding-top: clamp(4rem, 8vw, 6rem) !important;
  padding-bottom: clamp(2rem, 5vw, 3rem) !important;
}
.hero.hero-ember .hero-cta a {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem) !important;
  padding: clamp(0.9rem, 2vw, 1rem) clamp(2.2rem, 4vw, 2.75rem) !important;
}

.parallax-wrap {
  position: relative;
  width: 100%;
  height: 45vh;
  overflow: hidden;
}

/* REAL image — cannot be masked by theme background rules */
.parallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;     /* ensures it fills vertically */
  object-fit: cover;    /* maintains aspect ratio */
  z-index: 0;
  will-change: transform;
}

/* Text */
.parallax-text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  text-shadow: 0 4px 18px rgba(0,0,0,0.7);
  top: 50%;
  transform: translateY(-50%);
}







@import url('https://fonts.googleapis.com/css2?family=Muli:wght@300;400;500;600;700&family=Ovo&display=swap');

:root {
  --default-font: "Muli", sans-serif;
  --heading-font: "Ovo", serif;

  /* Judy / Ember palette */
  --background-color: #F9F6F2;
  --default-color: #3D2E4D;
  --heading-color: #2B1A38;
  --accent-color: #E4B7A0;
  --surface-color: #FBEADF;
  --contrast-color: #ffffff;
}

/* OVERLAY */
.ember-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 999999;
}

/* MODAL BOX */
.ember-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface-color);
  width: clamp(320px, 80vw, 500px);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.22);
  animation: fadeIn 0.5s ease-out;
}

/* CLOSE BUTTON */
.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--default-color);
  cursor: pointer;
  line-height: 1;
}

/* TYPOGRAPHY */
.modal-content h1 {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-content .sub-head {
  font-family: var(--default-font);
  font-size: 1rem;
  color: var(--default-color);
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 90%;
}

/* FORM */
.ember-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 1rem;
  font-family: var(--default-font);
  font-size: 1rem;
}

.ember-form button {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--default-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.ember-form button:hover {
  background: #d89f87;
}

/* NO THANKS */
.no-thanks {
  color: #8b7e95;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
  opacity: 0.7;
}

.no-thanks:hover {
  opacity: 1;
}

/* FINE PRINT */
.fine-print {
  font-size: 0.7rem;
  text-align: center;
  color: #7a6d84;
  margin-top: 0.7rem;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}






.hero-ember .glass-panel {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 1.25rem;

  /* frosted surface */
  background: color-mix(in srgb, var(--surface-color), transparent 65%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);

  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  box-shadow:
    0 6px 20px color-mix(in srgb, var(--default-color), transparent 92%),
    inset 0 0 10px color-mix(in srgb, var(--accent-color), transparent 90%);

  overflow: hidden;
  z-index: 1;

  /* NEW: limit the maximum width so it never gets huge */
  max-width: 48rem;        /* 💡 adjust to taste: 44–52rem usually perfect */
  width: 100%;

  /* NEW: keeps it centered in the hero section */
  margin-left: 0;
  margin-right: auto;      /* if you want it left-aligned with text */
  /* OR center it:
     margin: 0 auto;
  */
}

/* Text stays crisp */
.hero-ember .glass-panel p,
.hero-ember .glass-panel h3,
.hero-ember .glass-panel span {
  position: relative;
  z-index: 2;
}

/* --- Noise shimmer layer (no visible edges) --- */
.hero-ember .glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: 
    radial-gradient(
      circle at 30% 20%,
      color-mix(in srgb, var(--accent-color), white 20%) 0%,
      transparent 60%
    ),
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAnMBH4CwEukAAAAASUVORK5CYII=");

  /* Super fine transparent noise + soft sunrise tint */
  opacity: 0.22;
  mix-blend-mode: soft-light;
  animation: shimmerFlicker 8s ease-in-out infinite alternate;
}

/* Flicker-based shimmer — not moving, so no hard edges */
@keyframes shimmerFlicker {
  0% { opacity: 0.18; filter: brightness(1); }
  100% { opacity: 0.27; filter: brightness(1.05); }
}

.hero-ember .glass-panel {
  position: relative;
  padding: clamp(1.35rem, 2vw, 2.25rem);
  border-radius: 1.25rem;

  background: color-mix(in srgb, var(--surface-color), white 12%);
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 80%);

  box-shadow:
    0 14px 32px color-mix(in srgb, var(--heading-color), transparent 88%),
    0 3px 8px color-mix(in srgb, var(--heading-color), transparent 92%);

  z-index: 1;
}

.hero-ember .glass-panel {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 1.25rem;

  background: color-mix(in srgb, var(--contrast-color), transparent 60%);
  backdrop-filter: blur(12px);

  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 50%);

  /* Glow around the shape */
  box-shadow:
    0 0 18px 6px color-mix(in srgb, var(--accent-color), transparent 75%),
    0 10px 35px color-mix(in srgb, var(--default-color), transparent 88%);

  overflow: hidden;
  z-index: 1;
}




.hero-ember .glass-panel {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 1.25rem;

  background: color-mix(in srgb, var(--surface-color), transparent 65%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);

  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  box-shadow:
    0 6px 20px color-mix(in srgb, var(--default-color), transparent 92%),
    inset 0 0 10px color-mix(in srgb, var(--accent-color), transparent 90%);

  overflow: hidden;
  z-index: 1;

  max-width: 48rem;
  width: 100%;
  margin: 0 auto; /* centered — OR margin-right:auto for left align */
}
.hero-ember .container {
  max-width: 1500px;  /* keeps the screen from going ultrawide */
  margin-inline: auto;
}
.celestial-fade {
  --background-color: linear-gradient(135deg, #8A59AD 0%, #C45E8E 100%); /* slightly darker */
  --default-color: #F8F6FA;
  --heading-color: #ffffff;
  --accent-color: #EBE0F5;
  --surface-color: rgba(0, 0, 0, 0.28); /* NEW: darker overlay for readability */
  --contrast-color: #1E0E29;
}


.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -2;             /* behind everything */
  overflow: hidden;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.55) contrast(1.15); /* elegant darkening for readability */
}





.hero-ember .glass-panel {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 1.25rem;

  /* frosted surface */
  background: color-mix(in srgb, var(--surface-color), transparent 65%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);

  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  box-shadow:
    0 6px 20px color-mix(in srgb, var(--default-color), transparent 92%),
    inset 0 0 10px color-mix(in srgb, var(--accent-color), transparent 90%);

  overflow: hidden;
  z-index: 1;

  /* NEW: limit the maximum width so it never gets huge */
  max-width: 48rem;        /* 💡 adjust to taste: 44–52rem usually perfect */
  width: 100%;

  /* NEW: keeps it centered in the hero section */
  margin-left: 0;
  margin-right: auto;      /* if you want it left-aligned with text */
  /* OR center it:
     margin: 0 auto;
  */
}



.hero {
  position: relative;
  overflow: hidden;
}


@media (max-width: 768px) {
  .header .logo {
    width: 48px; /* keeps space reserved */
    height: 48px;
  }

  .header .logo img {
    display: none;
  }
}

/* Desktop shows long version */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* Mobile shows short version */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: clamp(1.5rem, 5vw, 2rem); // optional mobile resizing
    text-decoration: none !important;
    text-shadow: none !important;
  }

  .section-title h2::before,
  .section-title h2::after {
    content: none !important;
    display: none !important;
  }
}


@media (max-width: 768px) {
  /* Lead-in phrase */
  .lead-in {
    display: block;
    font-family: "Ovo", serif;
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.75rem;
    line-height: 1.35;
  }

  /* Body text after the lead-in */
  .excerpt-text,
  .excerpt-text p {
    font-family: "Muli", sans-serif;
    font-size: clamp(.5rem, 4vw, .7rem);
    line-height: 1.6;
    text-align: left;
    margin-top: 0.5rem;
  }


}


@media (max-width: 768px) {
  .features-tabs .nav-link {
    border: none !important;
    box-shadow: none !important; /* optional — keeps it soft */
    background: color-mix(in srgb, var(--surface-color), var(--default-color) 6%);
  }

  /* Active state should also look soft */
  .features-tabs .nav-link.active {
    border: none !important;
  
  }
}

@media (max-width: 768px) {
  .features-tabs .nav-link {
    background: var(--surface-color);
    border-radius: 18px;
    border: none !important;
    
  }
}



/*--------------------------------------------------------------
# Letter from Judy
--------------------------------------------------------------*/
.letter-from-judy {
  text-align: left;
  background-color: var(--surface-color);
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.05);
  color: var(--default-color);
  font-family: var(--default-font);
  line-height: 1.8;
  position: relative;
  overflow: hidden;

  .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C86A3A 0%, #E4A06B 100%);
    color: var(--contrast-color);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    box-shadow: 0 0.5rem 1rem rgba(200, 100, 60, 0.25);
    margin-bottom: 1rem;
  }

  h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
  }

  p {
    margin-bottom: 1.25rem;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
  }

  em {
    color: var(--accent-color);
    font-style: italic;
  }

  .signature {
    margin-top: 2rem;
    text-align: right;
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--heading-color);
    font-size: 1.1rem;

    strong {
      font-weight: 600;
      color: var(--accent-color);
    }
  }

  @media (max-width: 768px) {
    padding: clamp(2rem, 8vw, 3rem);
    .signature {
      text-align: left;
      margin-top: 1.5rem;
    }
  }
}
      @media (max-width: 768px) {
  .letter-from-judy {
    padding: 0.75rem !important;   /* drastically tighter */
    border-radius: 0.75rem !important; /* keeps shape clean */
  }

  .letter-from-judy .icon-badge {
    margin-bottom: 0.75rem !important;
    width: 2rem !important;
    height: 2rem !important;
    font-size: 1rem !important;
  }

  .letter-from-judy h3 {
    font-size: 1.3rem !important; 
    margin-bottom: 0.75rem !important;
  }

  .letter-from-judy p {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.55 !important;  /* tighter lines for mobile */
  }

  .letter-from-judy .signature {
    margin-top: 1rem !important;
    font-size: 1rem !important;
    text-align: left !important;
  }
}








.book-paginated .book-page {
    display: none;
}

.book-paginated .book-page.active {
    display: block;
}

.book-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.page-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: opacity 0.2s ease;
}

.page-btn:hover {
    opacity: 0.8;
}

#pageIndicator {
    font-weight: 600;
    font-size: 0.9rem;
}

.book-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.page-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 0.25rem;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Hide excerpt on desktop/tablets */
#excerpt {
  display: none;
}

/* Show excerpt only on mobile */
@media (max-width: 960px) {
  #excerpt {
    display: block !important;
  }
}

.hero.hero-ember .book-hero-content .book-subtitle {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem) !important;
  margin-bottom: 1rem !important;
  color: color-mix(in srgb,var(--default-color),transparent 10%) !important;
}


/* Ensure hero is a positioned container and prevents overflow pushing layout */
.hero,
.hero-ember {
  position: relative;
  overflow: hidden;
}

/* --- BACKGROUND VIDEO LAYER --- */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;       /* deepest layer */
  pointer-events: none;
  overflow: hidden; /* prevents content shifting */
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) contrast(1.15);
}


/* --- EMBER GLOW LAYER --- */
.hero-ember-glow,
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}



/* --- FOREGROUND CONTENT (must sit above everything) --- */
.book-hero-content,
.book-cover,
.glass-panel,
.hero-cta,
.hero .container {
  position: relative;
  z-index: 2;
}


/* Prevent Bootstrap row from reacting to background layers */
.hero .row {
  position: relative;
  z-index: 2;
}


/* safety: ensure no child inside .hero affects layout with unwanted widths */
.hero * {
  max-width: 100%;
}

@media (max-width: 48em) {
  .hero-ember .glass-panel {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}