/* ===== Cliff House Bed & Breakfast — Custom Styles ===== */

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fdf4f8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #3d121e;
}
::-webkit-scrollbar-thumb {
  background: #7f3148;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a3b58;
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Navbar ===== */
#nav {
  background: transparent;
}

#nav.scrolled {
  background: rgba(61, 18, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu a:nth-child(5) { transition-delay: 0.25s; }

/* ===== Hero Image Panel ===== */
@media (min-width: 1024px) {
  .hero-image-float {
    animation: float 6s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Room Card Hover ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* ===== Date Input Fix ===== */
input[type="date"] {
  color-scheme: dark;
}

/* ===== Gallery Grid ===== */
@media (max-width: 767px) {
  .col-span-2 {
    grid-column: span 1;
  }
  .row-span-2 {
    grid-row: span 1;
  }
}

/* ===== Amenity List ===== */
ul li {
  position: relative;
}

/* ===== Smooth Image Loading ===== */
img {
  loading: lazy;
}

/* ===== Print ===== */
@media print {
  #nav, #mobile-menu, button { display: none !important; }
  body { background: white; color: black; }
}
