/* ═══════════════════════════════════════════════════════════════════════════
   HOME PAGE — Hero, Paths, Testimonials, Newsletter
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Splash Screen Loader ────────────────────────────────────────────────── */
html.splash-active,
body.splash-active {
  overflow: hidden !important;
  height: 100% !important;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FAF8F5; /* Matches cozy site theme */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.76, 0, 0.24, 1), transform 1s cubic-bezier(0.76, 0, 0.24, 1), visibility 1s;
  pointer-events: all;
}

/* Warm breathing gradient radial glow behind the star */
.splash-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 197, 169, 0.35) 0%, rgba(250, 248, 245, 0) 70%);
  opacity: 0.4;
  animation: breathingGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.splash-star-wrapper {
  width: 75px;
  height: 75px;
  animation: splashStarSpin 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-star {
  width: 100%;
  height: 100%;
}

/* SVG Line Drawing Animations */
.splash-star circle {
  transform-origin: center;
  transform: scale(0);
  animation: scaleCircle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.star-line-cardinal {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: drawLine 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.star-line-diagonal {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: drawLine 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.55s forwards;
}

.splash-text {
  display: flex;
  gap: 7px;
  justify-content: center;
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #8c7e6c;
}

.splash-word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px);
  animation: revealWord 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.splash-word:nth-child(1) { animation-delay: 0.7s; }
.splash-word:nth-child(2) { animation-delay: 0.9s; }
.splash-word:nth-child(3) { animation-delay: 1.1s; }
.splash-word:nth-child(4) { animation-delay: 1.3s; }

/* Keyframes */
@keyframes breathingGlow {
  0% {
    opacity: 0.25;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.75;
    transform: scale(1.06);
  }
}

@keyframes splashStarSpin {
  0% {
    transform: rotate(-30deg);
    opacity: 0.7;
  }
  100% {
    transform: rotate(0deg);
    opacity: 1;
  }
}

@keyframes scaleCircle {
  to {
    transform: scale(1);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes revealWord {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ─── Hero Curtain Zoom Reveal ────────────────────────────────────────────── */
body.splash-active .hero-container {
  opacity: 0;
  transform: scale(0.97);
}

body.splash-complete .hero-container {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1), transform 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}



/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero-container {
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.fade-item {
  opacity: 0;
  will-change: transform, opacity, filter;
}

body:not(.splash-active) .fade-item,
body.splash-complete .fade-item {
  animation: cinematicFadeUp 1.4s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

body:not(.splash-active) .delay-1, body.splash-complete .delay-1 { animation-delay: 0.2s; }
body:not(.splash-active) .delay-2, body.splash-complete .delay-2 { animation-delay: 0.5s; }
body:not(.splash-active) .delay-3, body.splash-complete .delay-3 { animation-delay: 0.8s; }
body:not(.splash-active) .delay-4, body.splash-complete .delay-4 { animation-delay: 1.1s; }
body:not(.splash-active) .delay-5, body.splash-complete .delay-5 { animation-delay: 1.4s; }
body:not(.splash-active) .delay-6, body.splash-complete .delay-6 { animation-delay: 1.7s; }

/* Parallax target — JS will override transform on scroll */
.profile-image-wrapper {
  width: 100%;
  max-width: 360px;
  margin-top: 30px;
  margin-bottom: 35px;
  border-radius: 200px 200px 24px 24px; /* Editorial Arch Shape */
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(223, 210, 190, 0.22); /* Warm, delicate brand shadow */
  border: 1px solid rgba(223, 210, 190, 0.45); /* Elegant gold inner-border */
  padding: 8px; /* Frame offset */
  background-color: #FAF8F5; /* Matches cozy bg */
  box-sizing: border-box;
  will-change: transform;
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  border-radius: inherit;
}

.hero-title {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #0d0d0d;
  margin: 0 0 25px 0;
  max-width: 100%;
  text-align: center;
}

.hero-body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
  max-width: 100%;
  text-align: center;
}

.hero-body strong {
  font-weight: 600;
  color: #1a1a1a;
}

.separator {
  width: 180px;
  height: 1px;
  background-color: #ddd;
  margin: 35px auto;
  transform-origin: center center;
}

/* D: Override the generic fade-up with a combined fade + center-out draw.
   Higher specificity (class + class) beats .fade-item and .delay-5 individually,
   so the delay (1.4s) is included in the shorthand here. */
body:not(.splash-active) .separator.fade-item,
body.splash-complete .separator.fade-item {
  animation: separatorFadeAndDraw 1.4s cubic-bezier(0.2, 1, 0.3, 1) 1.4s forwards;
}

.mp-sign {
  margin: 10px 0 40px;
  text-align: center;
}

.signature-image {
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-footer-text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  max-width: 320px;
  width: 100%;
  text-align: center;
  line-height: 1.5;
}

.hero-footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-container {
    padding: 75px 20px 40px;
    flex-direction: column;
    height: auto;
    min-height: auto;
    display: flex;
  }
  .hero-text {
    display: contents; /* Promotes children to flexbox items */
  }
  .hero-main-content {
    order: 1; /* Headline and body text first */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .profile-image-wrapper {
    order: 2; /* Editorial arched portrait second */
    max-width: 280px;
    margin-top: 35px;
    margin-bottom: 35px;
  }
  .hero-footer-block {
    order: 3; /* Signature and stats third */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 100px 20px;
    max-width: 1400px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 120px;
  }
  .hero-text {
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: auto;
  }
  .profile-image-wrapper {
    max-width: 520px;
    margin-top: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .hero-title {
    font-size: 19px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 640px;
  }
  .hero-body        { font-size: 19px; max-width: 640px; }
  .separator        { width: 300px; margin: 40px auto; }
  .hero-footer-text { max-width: 640px; font-size: 13px; }
  .signature-image  { width: 120px; }
  .mp-sign          { margin: 10px 0 45px; }
}


/* ─── Choose Your Path ────────────────────────────────────────────────────── */
.path-section-bg {
  background-color: #ffffff;
  width: 100%;
}

.path-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.section-headline {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #555;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* 3D tilt base — JS applies perspective transform on hover */
.path-card {
  background-color: #FAFAFA;
  border-radius: 24px;
  padding: 50px 35px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 560px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.play-animation {
  animation: cardEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.path-card.play-animation:nth-child(1) { animation-delay: 0.1s; }
.path-card.play-animation:nth-child(2) { animation-delay: 0.3s; }
.path-card.play-animation:nth-child(3) { animation-delay: 0.5s; }

.card-title {
  font-family: "Libre Baskerville", serif;
  font-size: 30px;
  font-weight: 400;
  color: #0d0d0d;
  margin-top: 0;
  margin-bottom: 20px;
}

.card-desc {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
}

.card-best-for {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  background-color: #F2F2F2;
  padding: 20px 25px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.card-best-for strong {
  color: #222;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.card-best-for ul { margin: 0; padding-left: 18px; }
.card-best-for li { margin-bottom: 6px; }
.card-best-for li:last-child { margin-bottom: 0; }

.cinematic-btn {
  display: inline-block;
  text-decoration: none !important;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  padding: 16px 32px;
  color: #3F3F3C;
  background-color: #EFE4D2;
  box-shadow: 0px 5px 7.3px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.cinematic-btn:hover {
  background-color: #E2D2BC;
  box-shadow: none;
  transform: translateY(2px);
  color: #3F3F3C;
}

@media (max-width: 1024px) {
  .path-card    { padding: 40px 25px; min-height: 500px; }
  .card-title   { font-size: 26px; }
}

@media (max-width: 767px) {
  .path-section     { padding: 60px 20px 20px; }
  .section-headline { font-size: 34px; margin-bottom: 40px; }
  .cards-grid       { grid-template-columns: 1fr; gap: 30px; }
  .path-card        { min-height: auto; padding: 40px 25px; align-items: stretch; }
  .card-title       { font-size: 26px; text-align: center; }
  .card-desc        { font-size: 16px; text-align: center; }
  .cinematic-btn    { width: 100%; box-sizing: border-box; text-align: center; white-space: normal; }
}


/* ─── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.play-entrance {
  animation: sectionFloatUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.quote-icon         { margin-bottom: 40px; }
.quote-icon svg     { width: 60px; height: auto; fill: #EFE4D2; }

.testimonial-container {
  position: relative;
  width: 100%;
  height: 280px;
  margin-bottom: 40px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(100px) scale(0.95);
  visibility: hidden;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s ease,
    visibility 0s linear 1s;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
  z-index: 2;
}

.testimonial-slide.exit-left {
  opacity: 0;
  transform: translateX(-100px) scale(0.95);
  visibility: visible;
  z-index: 1;
}

.testimonial-slide.ready-right {
  opacity: 0;
  transform: translateX(100px) scale(0.95);
  visibility: hidden;
  transition: none !important;
}

.quote-text {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 35px;
  max-width: 800px;
}

.quote-author {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-author::before {
  content: "•";
  font-size: 24px;
  color: #000;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #E2D2BC;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #D4C5A9;
  border-color: #D4C5A9;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .testimonial-section   { padding: 45px 20px; min-height: auto; }
  .testimonial-container { height: 320px; }
  .quote-text            { font-size: 20px; line-height: 1.6; }
  .quote-icon svg        { width: 45px; }
}


/* ─── Inline Newsletter Section ───────────────────────────────────────────── */
.newsletter-section-bg {
  background-color: #ffffff;
  width: 100%;
}

.newsletter-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  font-family: "Libre Baskerville", serif;
}

.news-text-group { margin-bottom: 50px; }

.news-line-1,
.news-line-2 {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity, filter;
  color: #0d0d0d;
  line-height: 1.2;
}

.news-line-1 { font-size: 32px; margin-bottom: 15px; }
.news-line-2 { font-size: 42px; margin: 0; }

.form-pill-wrapper {
  display: flex;
  align-items: center;
  background-color: #FAFAFA;
  border-radius: 100px;
  padding: 5px;
  max-width: 520px;
  margin: 0 auto;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  outline: none;
  box-shadow: none;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.form-pill-wrapper:focus-within {
  background-color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: scale(1.02);
}

.newsletter-section.start-anim .news-line-1 {
  animation: cinematicUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.newsletter-section.start-anim .news-line-2 {
  animation: cinematicUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}
.newsletter-section.start-anim .form-pill-wrapper {
  animation: cinematicUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}

.news-input {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #555;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 15px 10px 15px 30px;
  flex-grow: 1;
}

.news-input::placeholder { color: #999; }

.news-btn {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3F3F3C;
  background-color: #EFE4D2;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.news-btn:hover {
  background-color: #E2D2BC;
  color: #222;
  transform: translateY(-1px);
}

#newsletter-message {
  margin-top: 15px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

@media (max-width: 768px) {
  .newsletter-section { padding: 40px 20px; }
  .news-line-1        { font-size: 24px; }
  .news-line-2        { font-size: 30px; }
  .form-pill-wrapper  {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 15px;
    box-shadow: none;
    transform: none;
  }
  .news-input {
    width: 100%;
    background-color: #FAFAFA !important;
    border-radius: 50px;
    padding: 18px 20px;
    text-align: center;
  }
  .news-btn { width: 100%; padding: 18px 0; }
}
