/* ============================================
   DELI T AND T GRILL — CUSTOM STYLES
   ============================================ */

/* --- Base & Utilities --- */
html {
  scroll-behavior: smooth;
}

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

/* --- Hero --- */
.hero {
  background-image: url('https://images.pexels.com/photos/7140410/pexels-photo-7140410.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(110, 231, 183, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Navbar --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-fixed.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(254, 253, 248, 0.8);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}

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

.nav-link:hover {
  color: #fff;
}

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

.nav-fixed.scrolled .nav-link {
  color: #065f46;
}

.nav-fixed.scrolled .nav-link:hover {
  color: #047857;
}

.nav-fixed.scrolled .nav-link::after {
  background: #059669;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #10b981;
}

.btn-primary:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(254, 253, 248, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid rgba(254, 253, 248, 0.3);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(254, 253, 248, 0.1);
  border-color: rgba(254, 253, 248, 0.6);
  transform: translateY(-2px);
}

/* --- Marquee --- */
.marquee-bar {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Menu Cards --- */
.menu-card {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(6, 95, 70, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

/* --- Quality Cards --- */
.quality-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 90;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu.hidden {
  display: none;
}

.mobile-link {
  text-decoration: none;
  font-size: 1rem;
}

.mobile-link:hover {
  color: #fff;
}

/* --- Mobile menu button animation --- */
.menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(4px, -4px);
}

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

/* --- Selection --- */
::selection {
  background: #059669;
  color: #fefdf8;
}
