/* === GLOBAL === */
:root {
  --primary: #8b5a2b;
  --accent: #e2c290;
  --light: #fffaf3;
  --dark: #2f1f1f;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  background: var(--light);
  color: var(--dark);
}

h1, h2, h3 {
  font-family: "Lora", serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-block;
  transition: 0.3s;
}

.btn:hover {
  background: #5c3c1b;
}

footer {
  text-align: center;
  padding: 20px;
  background: #efe6d5;
  font-size: 0.9rem;
}

/* === HEADER === */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f2e7;
  padding: 10px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
  transition: top 0.4s;
}

.logo a {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  color: var(--primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 20px;
}

.nav-links a:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Ensure Book Now stays visible */
.nav-links a:last-child {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 30px;
  white-space: nowrap;
}

.nav-links a:last-child:hover {
  background: #5c3c1b;
}

/* === HERO === */
.hero {
  position: relative;
}

.hero img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}

.hero-text .btn {
  margin-top: 10px;
}

/* === MISSION === */
.mission {
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}

.mission h2 {
  color: var(--primary);
}

/* === SLIDESHOW === */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 40px auto;
  overflow: hidden;
  border: 5px solid var(--accent);
  border-radius: 10px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: none;
  background: #000;
}

.slides img.active {
  display: block;
  animation: fade 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }

/* === CTA === */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: var(--accent);
  color: var(--dark);
}

.cta .btn {
  background: #4a2d14;
}

/* === ABOUT === */
.page-hero {
  position: relative;
}

.page-hero img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
}

.page-hero-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  text-shadow: 0 2px 4px #000;
}

.about {
  max-width: 800px;
  margin: 60px auto;
  text-align: left;
  padding: 0 20px;
}

.gallery-scroll {
  overflow: hidden;
  width: 100%;
  margin-bottom: 60px;
}

.scroll-track {
  display: flex;
  gap: 20px;
  animation: scroll 40s linear infinite;
}

.scroll-track img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SERVICES === */
.services {
  max-width: 1000px;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px;
}

.service {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.service img {
  width: 100%;
  max-width: 400px;
  height: 260px;
  object-fit: cover;
}

.service-info {
  flex: 1;
  padding: 20px;
}

.service-info h2 {
  color: var(--primary);
}

/* === CALENDAR SECTION === */
.book-btn {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}
.book-btn:hover {
  background: #005fa3;
}

.calendar-section {
  max-width: 1000px;
  margin: 60px auto;
  z-index: 1;
  position: relative;
}

#calendar {
  touch-action: manipulation !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

/* Better tap response */
.fc .fc-daygrid-day-frame,
.fc .fc-timegrid-slot {
  touch-action: manipulation;
}

/* === MODAL === */
#bookingModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

#bookingModal .modal-content {
  background: #fff;
  position: relative;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000000;
}

.modal-content label {
  display: block;
  margin: 10px 0;
  font-weight: bold;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 1.4rem;
  color: #666;
}

.close:hover {
  color: #000;
}

/* === FULLCALENDAR FIX === */
.fc, .fc-view, .fc-scrollgrid, .fc-scroller, .fc-daygrid, .fc-timegrid {
  position: relative !important;
  z-index: 0 !important;
  transform: none !important;
  contain: none !important;
}

.fc-event.Unavailable {
  background-color: #aaa !important;
  border-color: #888 !important;
  opacity: 0.7;
  cursor: not-allowed;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .service { flex-direction: column; }
  .hero img { height: 60vh; }
  .nav-links a { margin: 10px; }
}

/* === SECTION SPACING FIX === */
section {
  width: 100%;
  padding: 60px 0;
  box-sizing: border-box;
}

main, .calendar-section, .services, .about, .mission, .cta {
  margin-top: 40px;
}

.hero, .page-hero {
  margin-top: 0;
  padding-top: 0;
}

footer {
  margin-top: 60px;
}

body {
  padding-top: 90px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .nav-links a {
    font-size: 0.95rem;
    padding: 6px 10px;
  }
}

/* === CONTACT PAGE === */
.contact-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background: #fffaf3;
}

.contact-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-container h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

.contact-container p {
  text-align: center;
  margin-bottom: 20px;
}

#contactForm label {
  display: block;
  margin: 10px 0;
  font-weight: bold;
}

#contactForm input, #contactForm textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* === SCROLL ANIMATIONS === */
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-50%); /* Start slightly left */
  transition: all 1s ease;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* Stagger animation delay if multiple items appear at once */
.service:nth-child(2) { transition-delay: 200ms; }
.service:nth-child(3) { transition-delay: 400ms; }