/* Base styles and fonts */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 
  Custom Button Styles 
  These classes use the same theme colors as defined in the Tailwind config 
  to maintain a consistent design, but without using the @apply directive which is not supported by the CDN.
*/
.btn-primary {
  /* Buttons kullanıldığında ikonlarla uyumlu olması için inline-flex kullanıyoruz */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #8c6239; /* primary color */
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem; /* 6px */
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #a06f3e; /* secondary color */
}

.btn-secondary {
  /* İkincil butonlar da ikonlarla hizalamak için inline-flex kullanıyor */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  border: 2px solid #8c6239; /* primary color */
  color: #8c6239; /* primary color */
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem; /* 6px */
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background-color: #8c6239; /* primary color */
  color: #fff;
}

/* Navigation - Kept for fixed positioning and mobile toggle functionality */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 8px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px; /* max-w-screen-xl */
  margin: 0 auto;
  padding: 0 1rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.logo {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
  object-fit: contain;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu li a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: #8c6239; /* primary color */
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1023px) {
  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  .menu.active {
    transform: translateX(0);
  }
  .menu li {
    margin-bottom: 1rem;
  }
  .mobile-toggle {
    display: block;
  }
}


/* Hero Section - Image cross-fade effect */
.hero-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-img.active {
  opacity: 1;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  background: #8c6239;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
    transform: translateY(-3px);
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 5rem; 
  right: 1rem;
  width: 48px;
  height: 48px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

@media (max-width: 1023px) {
  #galleryGrid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
  }
  #galleryGrid .gallery-item {
    flex: 0 0 80%; /* each item takes 80% of the width */
    scroll-snap-align: start;
  }
}
