/* ========================================
   HUNAN WOK — Custom Styles
   ======================================== */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #5c4033;
  background-color: #fefdfb;
  overflow-x: hidden;
}

::selection {
  background-color: #f9d0d9;
  color: #7B2D3B;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #f4a8b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ec748e;
}

/* --- Hero --- */
.hero-bg {
  will-change: transform;
}

.hero-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Hero is above the fold, always visible */

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

#navbar.scrolled {
  background: rgba(61, 20, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled .nav-link:hover {
  color: #ffffff;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #db4a66, #b82d47);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(123, 45, 59, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(123, 45, 59, 0.5);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 60px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

/* --- CTA Buttons --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #7B2D3B;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  color: #7B2D3B;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 60px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff;
}

/* --- Badges --- */
.badge-label {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7B2D3B;
  background: linear-gradient(135deg, #fce7eb, #f9d0d9);
  padding: 6px 16px;
  border-radius: 50px;
}

.badge-label-light {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5c0b3;
  background: rgba(245, 192, 179, 0.15);
  border: 1px solid rgba(245, 192, 179, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
}

/* --- Hero Pills --- */
.pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 50px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  opacity: 1;
  animation: scrollFade 2s ease-in-out infinite;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.6; transform: translate(-50%, 0); }
  50% { opacity: 0.3; transform: translate(-50%, 6px); }
}

/* --- Highlights --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.highlight-item {
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
}

.highlight-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover .highlight-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(123, 45, 59, 0.15);
}

/* --- Menu --- */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.menu-tab {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #f9d0d9;
  background: transparent;
  color: #7B2D3B;
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-tab:hover {
  border-color: #db4a66;
  color: #db4a66;
  background: #fdf2f4;
}

.menu-tab.active {
  background: linear-gradient(135deg, #db4a66, #b82d47);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(123, 45, 59, 0.3);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(92, 31, 44, 0.06);
  border: 1px solid #fce7eb;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(92, 31, 44, 0.12);
  border-color: #f4a8b8;
}

.menu-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.08);
}

.menu-card-spicy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(123, 45, 59, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-card-body {
  padding: 1.25rem;
}

.menu-card-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #3d141c;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.menu-card-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #8f6738;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-card-tag {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #7B2D3B;
  background: #fdf2f4;
  padding: 4px 12px;
  border-radius: 50px;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-img-wrapper {
  position: relative;
}

.about-img-main {
  box-shadow: 0 25px 60px rgba(61, 20, 28, 0.2);
}

.about-img-accent {
  box-shadow: 0 12px 30px rgba(61, 20, 28, 0.15);
}

.about-stat {
  border-left: 3px solid #f9d0d9;
  padding-left: 1rem;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: scale(1.03);
  z-index: 2;
}

.gallery-img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.35s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db4a66, #b82d47);
  color: #ffffff;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Visit --- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.visit-card {
  background: #fefdfb;
  border: 1px solid #fce7eb;
  border-radius: 24px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.visit-card:hover {
  border-color: #f4a8b8;
  box-shadow: 0 8px 30px rgba(92, 31, 44, 0.08);
}

.visit-icon {
  transition: transform 0.3s ease;
}

.visit-card:hover .visit-icon {
  transform: scale(1.1);
}

.service-tag {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #7B2D3B;
  background: #fdf2f4;
  border: 1px solid #f9d0d9;
  padding: 6px 14px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.service-tag:hover {
  background: #fce7eb;
  border-color: #f4a8b8;
}

/* --- Footer --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db4a66, #b82d47);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(123, 45, 59, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 40;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(123, 45, 59, 0.45);
}

.back-to-top svg {
  margin-top: 2px;
}

/* --- Mobile Menu --- */
.mobile-link {
  display: block;
}

/* --- Scroll Reveal (progressive enhancement) --- */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* --- Mobile Menu Transition --- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  max-height: 400px;
}

/* --- Mobile Nav Link Hover --- */
@media (max-width: 767px) {
  .mobile-link:active {
    background: rgba(255, 255, 255, 0.05);
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
