/* ============================================
   Tiffany's Beachside — Custom Styles
   Bold editorial · Deep navy + warm gold
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: #C8963A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A84B;
}

/* --- Selection --- */
::selection {
  background: rgba(200, 150, 58, 0.3);
  color: #0A1628;
}

/* --- Navigation --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(6, 13, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 150, 58, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #C8963A;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #D4A84B !important;
}

/* --- Mobile Menu --- */
#mobile-menu {
  pointer-events: none;
}

#mobile-menu.open {
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    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.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Ensure revealed state is visible even without JS */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Menu items --- */
#menu .border-b {
  border-bottom-width: 1px;
}

/* --- Map container --- */
iframe {
  border-radius: 0 0 1rem 1rem;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C8963A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Hero text shadow for readability --- */
#top h1,
#top p {
  text-shadow: 0 1px 8px rgba(6, 13, 31, 0.4);
}

/* --- Smooth image loading --- */
img {
  background-color: #0A1628;
}

/* --- Mobile menu animations --- */
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              pointer-events 0.3s ease;
}

#mobile-menu.translate-x-full {
  transform: translateX(100%);
}

#mobile-menu.translate-x-0 {
  transform: translateX(0);
}

/* --- Image hover zoom wrapper --- */
.rounded-2xl {
  overflow: hidden;
}

.rounded-2xl img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Gold accent line --- */
.w-\[40px\].h-px.bg-gold-500,
.w-10.h-px.bg-gold-500,
.w-10.h-px.bg-gold-400 {
  flex-shrink: 0;
}

/* --- Responsive typography adjustments --- */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.15;
  }
}

@media (min-width: 1024px) {
  .lg\:-mb-8 {
    margin-bottom: -2rem;
  }
}
