/* ============================================
   Muğla Menü Tasarım - Custom CSS
   ============================================ */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ---- Navbar Scroll Effect ---- */
#navbar {
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(15, 14, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1A1814; }
::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #E8C97A; }

/* ---- Hero Animation ---- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

#hero .relative.z-10 > div > * {
  animation: fade-in-up 0.7s ease forwards;
  opacity: 0;
}
#hero .relative.z-10 > div > *:nth-child(1) { animation-delay: 0.15s; }
#hero .relative.z-10 > div > *:nth-child(2) { animation-delay: 0.30s; }
#hero .relative.z-10 > div > *:nth-child(3) { animation-delay: 0.45s; }
#hero .relative.z-10 > div > *:nth-child(4) { animation-delay: 0.60s; }
#hero .relative.z-10 > div > *:nth-child(5) { animation-delay: 0.75s; }

/* ---- Gallery Grid Tight Layout ---- */
#gallery-grid {
  grid-auto-rows: 220px;
}

/* Items spanning 2 rows */
#gallery-grid .col-span-2.row-span-2 {
  grid-row: span 2;
  min-height: 460px;
}

/* Make all gallery items have a defined height */
#gallery-grid .gallery-item {
  min-height: 220px;
}

/* Images in gallery always fill container */
#gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Special wider items */
#gallery-grid .col-span-2:not(.row-span-2) {
  min-height: 256px;
}

/* ---- Gallery Filter Active State ---- */
.filter-btn.active {
  background: #C9A84C !important;
  color: #0F0E0C !important;
  border-color: transparent !important;
}

/* ---- Gallery Item Hidden State ---- */
.gallery-item.hidden-item {
  display: none;
}

/* ---- Scroll-Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Gold Text Gradient ---- */
.text-gold-gradient {
  background: linear-gradient(135deg, #E8C97A, #C9A84C, #9B7A2E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Form Focus Glow ---- */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* ---- Floating WhatsApp Pulse ---- */
@keyframes pulse-ring {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
#whatsapp-float-btn {
  animation: pulse-ring 2.5s infinite;
}
#whatsapp-float-btn:hover {
  animation: none;
}

/* ---- District page styles ---- */
.district-hero {
  background: linear-gradient(135deg, #1A1814 0%, #2E2A1F 50%, #1A1814 100%);
}

/* ---- Print Card Image Fallback Height ---- */
.print-card .h-56 {
  min-height: 224px;
}

/* ---- Select Dropdown Arrow ---- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
}

/* ---- Responsive Mobile Menu ---- */
@media (max-width: 768px) {
  #gallery-grid {
    grid-auto-rows: 160px;
  }
  .gallery-item.col-span-2 {
    grid-column: span 2;
  }
}

/* ---- Stat Number Highlight ---- */
.stat-item {
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}
.stat-item:last-child::after {
  display: none;
}

/* ---- Card Hover Box Shadow ---- */
.service-card:hover,
.print-card:hover,
.industry-card:hover,
.district-link:hover {
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.08);
}
