/* ===== Base Styles ===== */
body {
  background-color: #fdfaf0;
  color: #4a4a4a;
  font-family: 'Helvetica', 'Arial', 'sans-serif';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Garamond', 'Georgia', serif;
  color: #111;
}

/* ===== Navigation ===== */
.nav-link {
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #1d3557;
}

/* ===== Buttons ===== */
.btn-primary {
  background-color: #1d3557;
  color: white;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #152741;
}
.btn-secondary {
  background-color: white;
  color: #1d3557;
  border: 1px solid #1d3557;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  background-color: #f3f4f6;
}

/* ===== Accordion ===== */
.accordion-content {
  display: none;
}
.accordion-content.active {
  display: block;
}

/* ===== Form Inputs ===== */
.form-input {
  background-color: transparent;
  border-color: #9ca3af;
}
.form-input:focus {
  border-color: #1d3557;
  box-shadow: 0 0 0 1px #1d3557;
}
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}
.form-input::placeholder {
  color: #b0b0b0;
}

/* ===== Form Validation Messages ===== */
.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}
.form-error.visible {
  display: block;
}

/* ===== Testimonial Slider ===== */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
}
.testimonial-slide > div {
  width: 100%;
  min-width: 0;
}
.testimonial-slide p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Show 3 cards side by side on desktop, one at a time on mobile */
@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    max-width: 33.333%;
  }
}
.testimonial-nav {
  transition: all 0.3s ease;
}
.testimonial-nav:hover {
  background-color: #d1d5db;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #e5e5e5;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.testimonial-dot.active {
  background-color: #1d3557;
}
.testimonial-dot:hover {
  background-color: #d1d5db;
}

/* ===== Hero Ken Burns Effect ===== */
.hero-image {
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  25% {
    transform: scale(1.05) translate(-1%, -0.5%);
  }
  50% {
    transform: scale(1.08) translate(-0.5%, -1%);
  }
  75% {
    transform: scale(1.05) translate(0.5%, -0.5%);
  }
  100% {
    transform: scale(1.1) translate(0, 0);
  }
}

/* ===== Hero Text Fade In ===== */
.hero-text {
  opacity: 0;
  animation: heroFadeIn 1.5s ease forwards;
}
.hero-text-delay-1 {
  animation-delay: 0.3s;
}
.hero-text-delay-2 {
  animation-delay: 0.8s;
}
.hero-text-delay-3 {
  animation-delay: 1.2s;
}
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 500px;
}
.mobile-menu-link {
  transition: color 0.2s ease;
}
.mobile-menu-link:hover {
  color: #1d3557;
}

/* ===== Payment Logos ===== */
.payment-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}
.payment-logo:hover {
  filter: grayscale(0%);
}

/* ===== Scroll to top button ===== */
.scroll-top-btn {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
}
.scroll-top-btn:hover {
  background-color: #152741;
}

/* ===== Section Animations ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
