/* ======================================================= */
/* FINAL, COMPLETE & CORRECTED STYLE.CSS FILE          */
/* ======================================================= */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap");

/* --- Base Typography & Body Styles --- */
/* REMOVED overflow-x: hidden from here to fix sticky navbar */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f7fc;
  color: #334155;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #1e293b;
}

p {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
}

.rainbow-text {
  color: #87550d;
}

/* --- Navbar Styles --- */
/* This class is added by main.js on scroll */
nav.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px -5px rgb(0 0 0 / 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(135, 85, 13, 0.1);
}

#mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 500px;
}

/* --- Hero Section Styles --- */
.gradient-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-slide {
  transition: opacity 1s ease-in-out;
}

/* --- Testimonials & Swiper Slider Styles --- */
/* This is the targeted fix for horizontal scroll */
.testimonial-slider-container {
  overflow: hidden;
}

.testimonial-swiper {
  padding-bottom: 10px;
}

.swiper-wrapper {
  align-items: stretch;
}

.testimonial-prev-btn,
.testimonial-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: #87550d !important;
  background-color: white;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.testimonial-prev-btn:hover,
.testimonial-next-btn:hover {
  background-color: #f7f1e6;
  transform: translateY(-50%) scale(1.05);
}

.testimonial-prev-btn::after,
.testimonial-next-btn::after {
  font-size: 16px !important;
  font-weight: bold;
}

.testimonial-prev-btn {
  left: -22px;
}

.testimonial-next-btn {
  right: -22px;
}

@media (max-width: 1400px) {
  .testimonial-prev-btn {
    left: 10px;
  }
  .testimonial-next-btn {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .testimonial-prev-btn,
  .testimonial-next-btn {
    display: none;
  }
}

.testimonial-pagination .swiper-pagination-bullet {
  background-color: #cccccc;
  opacity: 1;
  transition: background-color 0.3s ease;
  width: 9px;
  height: 9px;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background-color: #87550d !important;
}

/* --- FAQ Styles --- */
.faq-answer {
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    padding 0.3s ease-in-out, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  opacity: 1;
}

.faq-item .faq-toggle-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(135deg);
  color: #87550d;
}

/* --- Other General Styles & Footer --- */
.background-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.1;
  z-index: -10;
}

.sticky-social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.sticky-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-social a:hover {
  transform: scale(1.1) translateX(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sticky-social .whatsapp {
  background-color: #25d366;
}
.sticky-social .facebook {
  background-color: #1877f2;
}
.sticky-social .twitter {
  background-color: #14171a;
}
.sticky-social .youtube {
  background-color: #ff0000;
}

.form-input {
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* --- Custom Scrollbar --- */
* {
  scrollbar-width: thin;
  scrollbar-color: #87550d #e5e7eb;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background-color: #87550d;
  border-radius: 20px;
  border: 2px solid #f1f5f9;
}
