/* General Body & Font Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #fbf9f6;
  color: #3c4043;
}

.font-serif {
  font-family: "Lora", serif;
}

/* Traditional Color Palette */
.bg-primary {
  background-color: #8c3a3a;
} /* Deep Maroon */
.text-primary {
  color: #8c3a3a;
}
.bg-secondary {
  background-color: #f5f0e8;
} /* Warm Cream */
.text-secondary {
  color: #f5f0e8;
}
.bg-accent {
  background-color: #d4a056;
} /* Saffron Gold */
.text-accent {
  color: #d4a056;
}
.border-primary {
  border-color: #8c3a3a;
}
.focus\:ring-primary:focus {
  --tw-ring-color: #8c3a3a;
}
.focus\:border-primary:focus {
  --tw-border-opacity: 1;
  border-color: #8c3a3a;
}

/* Navigation Styles */
.active-nav {
  color: #d4a056; /* Accent color for active link */
  font-weight: 600;
}

.nav-link:hover {
  color: #d4a056; /* Accent color on hover */
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Blog Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-container {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeInModal 0.3s ease-out;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  color: #9ca3af; /* gray-400 */
}
.modal-close-btn:hover {
  color: #3c4043;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gallery Styles */
#gallery-container {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
#gallery-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

/* ADD THESE STYLES TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Treatment Page Navigation */
.treatment-nav-link {
  transition: background-color 0.3s, color 0.3s;
  color: #4b5563; /* gray-600 */
}

.treatment-nav-link:hover {
  background-color: #f5f0e8; /* bg-secondary */
  color: #8c3a3a; /* text-primary */
}

.treatment-nav-link.active {
  background-color: #8c3a3a; /* bg-primary */
  color: white;
  font-weight: 600;
}

/* ADD THESE STYLES TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Enhanced Hover Animations */
.nav-link,
.read-more-link,
footer a,
button[type="submit"],
a.inline-block.bg-primary,
a.inline-block.bg-accent {
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.nav-link:hover,
.read-more-link:hover,
footer a:hover {
  transform: translateY(-2px);
}

button[type="submit"]:hover,
a.inline-block.bg-primary:hover,
a.inline-block.bg-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Back to Top Button */
#back-to-top {
  z-index: 100;
  opacity: 0;
  visibility: hidden;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
/* ADD THESE STYLES TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Animated Underline for Nav Links */
header nav .nav-link {
  position: relative;
}
header nav .nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #d4a056; /* accent color */
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
header nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
/* Keep active nav style distinct */
header nav .nav-link.active-nav::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Hero Headline Animation */
#hero-headline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotate(10deg);
  animation: reveal-char 0.5s forwards;
}
@keyframes reveal-char {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* ADD THESE STYLES TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Real-Time Booking Styles */
.time-slot {
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.time-slot:hover {
  background-color: #f5f0e8; /* bg-secondary */
  border-color: #d4a056; /* accent */
}

.time-slot.selected {
  background-color: #8c3a3a; /* bg-primary */
  color: white;
  border-color: #8c3a3a; /* primary */
  font-weight: 600;
}

.time-slot:disabled {
  background-color: #f3f4f6; /* gray-100 */
  color: #9ca3af; /* gray-400 */
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Loader Styles */
.loader-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.loader {
  border: 4px solid #f5f0e8; /* bg-secondary */
  border-top: 4px solid #8c3a3a; /* primary */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ADD THIS STYLE TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Appointment Button Pulse Animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ADD THESE STYLES TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Book Appointment Button Animation */
.nav-appointment-btn {
  background-color: #8c3a3a; /* bg-primary */
  color: white !important; /* Override default link color */
  padding: 8px 16px;
  border-radius: 9999px; /* pill shape */
  box-shadow: 0 0 0 0 rgba(140, 58, 58, 1);
  animation: pulse-glow 2s infinite;
  transition: transform 0.3s ease;
}

.nav-appointment-btn:hover {
  transform: translateY(-2px) scale(1.05);
  color: white !important;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(140, 58, 58, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(140, 58, 58, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(140, 58, 58, 0);
  }
}

/* ADD THESE STYLES TO THE BOTTOM OF YOUR EXISTING style.css FILE */

/* Appointment Button in Nav */
.nav-appointment-btn {
  border: 2px solid #8c3a3a; /* primary color border */
  color: #8c3a3a !important; /* primary color text */
  background-color: transparent;
  padding: 6px 16px; /* Adjusted padding for border */
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease-in-out; /* Smooth transition for all properties */
  animation: pulse-new 2.5s infinite; /* Added the animation */
}

.nav-appointment-btn:hover {
  background-color: #8c3a3a; /* primary color fill on hover */
  color: white !important;
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow on hover */
  animation: none; /* Pause the animation on hover */
}

/* Keyframe animation for the pulse effect */
@keyframes pulse-new {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(140, 58, 58, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(140, 58, 58, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(140, 58, 58, 0);
  }
}
