/* ═══════════════════════════════════════════
   B & D Stir Fry Ice Cream — Custom Styles
   Premium Dark Luxury Theme
   ═══════════════════════════════════════════ */

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

body {
  background-color: #0e0c0a;
  color: #f5e6d3;
}

::selection {
  background-color: rgba(196, 112, 75, 0.3);
  color: #f5e6d3;
}

/* ── Navigation ── */
#site-header {
  background: transparent;
  backdrop-filter: none;
}

#site-header.scrolled {
  background: rgba(14, 12, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 230, 211, 0.06);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #c4704b, #d4896a);
  transition: width 0.3s ease;
}

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

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

/* ── Mobile Menu Button ── */
#menu-btn {
  background: transparent;
  border: 1px solid rgba(245, 230, 211, 0.15);
}

.menu-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1.5px;
  background-color: #f5e6d3;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line.top-3 {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

#menu-btn.active .menu-line.top-1\/2 {
  opacity: 0;
}

#menu-btn.active .menu-line.bottom-3 {
  bottom: 50%;
  transform: translate(-50%, 50%) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  background: rgba(14, 12, 10, 0.98) !important;
  backdrop-filter: blur(24px);
}

.mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Hero Animations ── */
.hero-anim {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Indicator ── */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ── Menu Item Hover ── */
.group:hover .group-hover\:text-td-terracotta-light {
  color: #d4896a;
}

.group:hover .group-hover\:text-td-gold-light {
  color: #dfc06e;
}

/* ── Button Hover Glow ── */
button:hover,
a:hover {
  transition: all 0.3s ease;
}

/* ── Image Hover Zoom ── */
.group img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Form Styles ── */
input:focus,
textarea:focus {
  background-color: rgba(26, 22, 19, 0.8);
}

input::placeholder,
textarea::placeholder {
  color: rgba(201, 185, 154, 0.3);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0e0c0a;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 112, 75, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 112, 75, 0.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-anim {
    animation-duration: 0.6s;
  }
}

/* ── 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 {
    opacity: 1;
    transform: none;
  }
}
