/* ============================================
   Simply Sweet Cafe — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background-color: rgba(116, 199, 164, 0.3);
  color: #f0f4f8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #102a43;
}
::-webkit-scrollbar-thumb {
  background: #334e68;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #486581;
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

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

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

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

/* --- Header Scroll State --- */
header.scrolled {
  background: rgba(10, 26, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(116, 199, 164, 0.1);
}

header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Mobile Menu --- */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* --- Menu Card --- */
.menu-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.menu-card:hover {
  border-color: rgba(116, 199, 164, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

/* --- Gallery --- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 46, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  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-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Button Hover Glow --- */
a.bg-mint-600:hover {
  box-shadow: 0 0 30px rgba(116, 199, 164, 0.25);
}

/* --- Mobile Menu Button --- */
#menu-icon.active #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-icon.active #bar2 {
  opacity: 0;
}
#menu-icon.active #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .menu-card {
    padding: 1.5rem;
  }

  #hero h1 {
    font-size: 3rem;
  }

  #hero h1 br {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4.5rem;
  }
}

/* --- Print --- */
@media print {
  header, #site-header {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
