/* ============================================
   Chef Center — Custom Styles
   ============================================ */

/* Base & Utilities */
:root {
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdfdf8;
}
::-webkit-scrollbar-thumb {
  background: #b9d4b9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8fbc8f;
}

/* Selection */
::selection {
  background: #4a7c4a;
  color: #fdfdf8;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(46, 80, 46, 0.08);
}

#navbar.scrolled #nav-logo-text {
  color: #1a2e1a;
}

.nav-link {
  position: relative;
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #fdfdf8, transparent);
  pointer-events: none;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f502f, #6b9e6b);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: inset 0 0 0 2px rgba(46, 80, 46, 0.15);
  pointer-events: none;
}

.testimonial-card:hover::after {
  opacity: 1;
}

/* ============================================
   Form Styles
   ============================================ */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232f502f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   Back to Top
   ============================================ */
#back-to-top.visible {
  opacity: 1;
  translate: 0;
  pointer-events: auto;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-24px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(24px);
  }

  .reveal[data-reveal="scale"] {
    transform: scale(0.96);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .mobile-nav-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  #hero::after {
    height: 60px;
  }

  .font-display {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .service-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #process .hidden.md\:block {
    display: none !important;
  }
}
