/* ==============================================
   CAPPADOCIA BALLOON RIDING — Custom Styles
   Tailwind CDN + Custom CSS
   ============================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---- Base ---- */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background-color: #fffbf5;
  color: #1c1917;
  -webkit-font-smoothing: antialiased;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fef3c7; }
::-webkit-scrollbar-thumb { background: #f97316; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ea580c; }

/* ---- Text Shadow Utilities ---- */
.text-shadow { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.text-shadow-lg { text-shadow: 0 4px 24px rgba(0,0,0,0.65); }

/* ---- Floating Animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
.float-animation { animation: float 7s ease-in-out infinite; }

/* ---- Scroll Animation ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-100 { transition-delay: 0.1s; }
.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-300 { transition-delay: 0.3s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }

/* ---- Card Lift Hover ---- */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px -12px rgba(0,0,0,0.18);
}

/* ---- Parallax Hero ---- */
.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ---- Gold Divider Line ---- */
.gold-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #d97706);
  border-radius: 2px;
}

/* ---- Image Zoom on Hover ---- */
.img-zoom {
  overflow: hidden;
  border-radius: 1rem;
}
.img-zoom img {
  transition: transform 0.5s ease;
  width: 100%;
  display: block;
}
.img-zoom:hover img { transform: scale(1.06); }

/* ---- Gallery Masonry ---- */
.gallery-masonry {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 640px) { .gallery-masonry { columns: 2; } }
@media (min-width: 768px) { .gallery-masonry { columns: 3; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 4; } }

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.gallery-masonry .gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-masonry .gallery-item:hover img { transform: scale(1.05); }
.gallery-masonry .gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,74,110,0.0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-masonry .gallery-item:hover .overlay {
  background: rgba(12,74,110,0.35);
}
.gallery-masonry .gallery-item .overlay svg {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: white;
  width: 40px;
  height: 40px;
}
.gallery-masonry .gallery-item:hover .overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ---- Tour Filter Active State ---- */
.filter-btn { transition: all 0.2s ease; }
.filter-btn.active-filter {
  background-color: #f97316 !important;
  color: white !important;
  border-color: #f97316 !important;
}

/* ---- FAQ Accordion ---- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* ---- Lightbox ---- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ---- Testimonial Stars ---- */
.star-rating { color: #f59e0b; }

/* ---- Section Badge ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ---- Reservation Widget ---- */
.reservation-widget {
  position: sticky;
  top: 112px;
}

/* ---- Blog ---- */
.blog-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 700; color: #0C4A6E; margin: 2rem 0 1rem; }
.blog-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.375rem; font-weight: 600; color: #0C4A6E; margin: 1.5rem 0 0.75rem; }
.blog-content p { line-height: 1.85; color: #374151; margin-bottom: 1.25rem; }
.blog-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-content ul li { line-height: 1.75; color: #374151; margin-bottom: 0.375rem; }
.blog-content blockquote { border-left: 4px solid #f97316; padding: 1rem 1.5rem; background: #fff7ed; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-style: italic; color: #92400e; }
.blog-content a { color: #0ea5e9; text-decoration: underline; }
.blog-content strong { color: #0c4a6e; }

/* ---- Progress Bar (scroll indicator) ---- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #0ea5e9);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---- Back to Top Button ---- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #f97316;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: #ea580c; }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .float-animation { animation: none; }
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive Utilities ---- */
@media (max-width: 768px) {
  .hero-parallax { background-attachment: scroll; }
  .reservation-widget { position: static; }
}

/* ---- Print ---- */
@media print {
  nav, footer, #back-to-top, #lightbox { display: none !important; }
  body { font-size: 12pt; }
}
