/* ============================================
   LIGHTHOUSE HOSTEL & PUB — CUSTOM STYLES
   ============================================ */

/* --- Base & Smooth Scroll --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* --- Selection --- */
::selection {
  background: rgba(224, 96, 48, 0.2);
  color: #5a2e1e;
}

/* --- Navbar --- */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(160, 85, 48, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e06030;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* --- Mobile Menu --- */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
}

/* --- Hero Animations --- */
.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Blob Animations --- */
.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -3s;
}

.blob-3 {
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-10px, 20px) scale(0.95);
  }
  75% {
    transform: translate(15px, 10px) scale(1.02);
  }
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

/* Reveal when JS adds the class */
.revealed.reveal-up {
  opacity: 1;
  transform: translateY(0);
}

.revealed.reveal-left {
  opacity: 1;
  transform: translateX(0);
}

.revealed.reveal-right {
  opacity: 1;
  transform: translateX(0);
}

/* --- Button Hover Effects --- */
a[href^="tel"]:hover {
  text-decoration: none;
}

/* --- Card Hover --- */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid #e06030;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .font-display {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .font-display:nth-of-type(1) {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Make hero headline responsive */
  #hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  /* Floating card on mobile */
  .absolute.\-bottom-6.\-right-6 {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    margin-left: 0;
    max-width: 100%;
  }

  /* Map min-height */
  iframe {
    min-height: 300px !important;
  }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .font-display {
    font-size: clamp(2.25rem, 5vw, 3rem);
  }
}

/* --- Large screens --- */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}

/* --- Image loading placeholder --- */
img {
  background: linear-gradient(135deg, #fce3d5 0%, #f9edc8 100%);
  background-size: cover;
}

/* --- Subtle grain texture (optional enhancement) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
