/* Home page specific styles */

/* Quick link cards */
.quick-links {
  display: flex;
  width: 100%;
  margin: 20px 0;
  gap: 0;
}
/*TEST*/
.quick-link {
  position: relative;
  flex: 1;
  height: 475px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Domaine Display", serif;
  font-size: 4rem;
  color: #f1f1f1;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0 !important;
  opacity: 0;
}
.quick-link span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.quick-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center 100%; /* adjust 25% to whatever vertical offset you need */
  background-size: cover;
  filter: brightness(0.6);
}
.quiz-link::before {
  background-image: url("images/Quiz Block Image.png");
}
.consultations-link::before {
  background-image: url("images/Consultations Block Image.png");
}
.testimonials-link::before {
  background-image: url("images/Testimonials Block Image.png");
}
.quick-link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #f1f1f1;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.quick-link:hover span::after {
  transform: scaleX(1);
}
@keyframes slideLeft {
  from {
    transform: translateX(-50px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideRight {
  from {
    transform: translateX(50px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
.quick-link.slide-left {
  animation: slideLeft 0.8s forwards;
}
.quick-link.fade-in {
  animation: fadeIn 0.8s forwards;
}
.quick-link.slide-right {
  animation: slideRight 0.8s forwards;
}

/* Steps section */
#steps-section {
  background: #f1f1f1;
  padding: 0;
}
#steps-section .steps {
  display: flex;
  justify-content: space-between;
  gap: 15rem;
  max-width: 1500px;
  margin: 0 auto;
}
#steps-section .step {
  text-align: left;
  padding: 1rem;
  flex: 1 0 auto;
}
#steps-section .step-number {
  font-family: "Domaine Display", serif;
  font-weight: bold;
  font-size: 6rem;
  line-height: 0.5;
  margin-bottom: 1.5rem;
}
#steps-section .step:nth-child(1) .step-number {
  color: #9e6654;
}
#steps-section .step:nth-child(2) .step-number {
  color: #8c7163;
}
#steps-section .step:nth-child(3) .step-number {
  color: #743466;
}
#steps-section .step-title {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  color: #28003b;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#steps-section .step {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}
#steps-section .step:nth-child(1) {
  animation-delay: 0.25s;
}
#steps-section .step:nth-child(2) {
  animation-delay: 0.5s;
}
#steps-section .step:nth-child(3) {
  animation-delay: 0.75s;
}

/* Quiz / consultations / testimonials blocks */
#quiz-section {
  background: #eae5f2;
}
.quiz-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  gap: 40px;
}
.quiz-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
}
.quiz-text h2 {
  font-family: "Domaine Display";
  font-size: 2rem;
  margin-bottom: 20px;
  color: #28003b;
}
.quiz-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #28003b;
}
.quiz-text .link-btn {
  font-family: Poppins;
  padding: 12px 36px;
  font-size: 1rem;
}
.quiz-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.quiz-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
@media (max-width: 800px) {
  .quiz-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }
  .quiz-text,
  .quiz-image {
    max-width: 100%;
  }
}
#consultations-section,

#consultations-section .quiz-wrapper {
  flex-direction: row-reverse;
}
#testimonials-section {
  display: none;
  background: #f1f1f1;
}
@media (max-width: 800px) {
  #consultations-section .quiz-wrapper {
    flex-direction: column-reverse;
  }
}
.quote-mark {
  font-family: "Domaine Display";
  font-size: 6rem;
  color: #b15e66;
  margin: 0;
}
.testimonial-text {
  font-size: 1.3rem;
  max-width: 600px;
}
.prev-testimonial,
.next-testimonial {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #28003b;
  transition: transform 0.2s;
}
.prev-testimonial:hover {
  transform: translateX(-5px);
}
.next-testimonial:hover {
  transform: translateX(5px);
}
.testimonial-nav {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* === Responsive fix for steps section === */

#steps-section .step-number {
  font-size: clamp(4rem, 6vw, 6rem); /* Slightly larger minimum */
  word-break: break-word;
}

#steps-section .steps {
  gap: 15rem; /* Keep original spacing on desktop */
  padding: 0 1rem;
}

#steps-section .step {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 1024px) {
  #steps-section .steps {
    gap: 6rem; /* Still spacious but fits smaller screens */
  }
}

@media (max-width: 768px) {
  #steps-section .steps {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  #steps-section .step {
    text-align: center;
  }

 #steps-section .step-title {
  font-size: 1.1rem;
  margin: 0 auto;
  white-space: normal;
  max-width: none;
  word-break: normal;
  hyphens: auto;
  }
}

/* Prevent step titles from wrapping unnecessarily */
#steps-section .step-title {
  white-space: normal;
  max-width: none;
  word-break: normal;
  hyphens: auto;
}

