/* ============================================================
   KARA BELA KITCHEN — Custom Stylesheet
   Brand identity: Haitian fusion, premium restaurant
   ============================================================ */

/* CSS Custom Properties — Brand Color System */
:root {
  --color-brand-red: #33241A;
  --color-brand-red-dark: #241912;
  --color-brand-gold: #C9922A;
  --color-brand-gold-dark: #A87520;
  --color-brand-dark: #1C1410;
  --color-brand-text: #2B1B17;
  --color-brand-cream: #FDF6EC;
  --color-brand-light: #F5EDD8;
  --color-brand-muted: #7A6650;
}

/* Font Smoothing */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-brand-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-brand-gold);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-gold-dark);
}

/* Gold Hairline Rule */
.gold-rule {
  border: none;
  border-top: 1px solid var(--color-brand-gold);
  width: 100%;
}

.gold-rule-short {
  border: none;
  border-top: 1px solid var(--color-brand-gold);
  width: 60px;
  display: inline-block;
}

/* Hero Parallax */
.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Scroll Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade-in delays */
.fade-in:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2) { transition-delay: 120ms; }
.fade-in:nth-child(3) { transition-delay: 240ms; }
.fade-in:nth-child(4) { transition-delay: 360ms; }
.fade-in:nth-child(5) { transition-delay: 480ms; }
.fade-in:nth-child(6) { transition-delay: 600ms; }

/* Nav Link Underline Draw Animation */
.nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-brand-light);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-brand-gold);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--color-brand-gold);
}

.nav-link.active {
  color: var(--color-brand-gold);
}

/* Button — Gold Sweep Animation */
.btn-gold {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--color-brand-gold);
  color: var(--color-brand-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
  border-radius: 0;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-brand-gold-dark);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-gold:hover::before {
  left: 0;
}

.btn-gold span,
.btn-gold {
  position: relative;
  z-index: 1;
}

.btn-gold:hover {
  color: var(--color-brand-light);
}

/* Button — Outlined Cream */
.btn-outline {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: transparent;
  color: var(--color-brand-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--color-brand-light);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 0;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(245, 237, 216, 0.1);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  border-color: var(--color-brand-gold);
  color: var(--color-brand-gold);
}

/* Button — Dark/Red variant */
.btn-dark {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--color-brand-dark);
  color: var(--color-brand-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(201, 146, 42, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
  border-radius: 0;
}

.btn-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-brand-gold);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-dark:hover::before {
  left: 0;
}

.btn-dark span {
  position: relative;
  z-index: 1;
}

.btn-dark:hover {
  color: var(--color-brand-dark);
}

/* Card Hover Lift */
.dish-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--color-brand-gold);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--color-brand-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-brand-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Scroll Bounce Indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  animation: bounce 1.8s ease-in-out infinite;
}

/* Section Label Style */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
}

/* Menu Item Row */
.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.menu-item-info {
  flex: 1;
}

.menu-item-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--color-brand-gold);
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 0.2rem;
}

/* Menu Category Nav (sticky) */
.menu-cat-nav {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: var(--color-brand-dark);
  border-bottom: 1px solid rgba(201, 146, 42, 0.2);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.menu-cat-nav a {
  display: inline-block;
  padding: 1rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.menu-cat-nav a:hover,
.menu-cat-nav a.active {
  color: var(--color-brand-gold);
  border-bottom-color: var(--color-brand-gold);
}

/* Image — square crop, no radius */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Contact Form */
.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(122, 102, 80, 0.5);
  padding: 0.75rem 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--color-brand-text);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-field:focus {
  border-bottom-color: var(--color-brand-gold);
}

.form-field::placeholder {
  color: var(--color-brand-muted);
}

textarea.form-field {
  resize: none;
  min-height: 120px;
}

/* Logo text */
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--color-brand-light);
  text-decoration: none;
  text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-brand-light);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Delivery Platform Buttons */
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(201, 146, 42, 0.4);
  color: var(--color-brand-light);
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 0;
  cursor: pointer;
}

.btn-platform:hover {
  background: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
}

/* Pull Quote */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-brand-gold);
  line-height: 1.2;
}

/* Hours Table */
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201, 146, 42, 0.15);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--color-brand-light);
}

.hours-row .day {
  color: var(--color-brand-muted);
  font-weight: 300;
}

.hours-row .time {
  color: var(--color-brand-light);
  font-weight: 400;
}

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

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

  .hero-parallax {
    background-attachment: scroll;
  }
}

/* Footer */
.footer-section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 1rem;
  display: block;
}

.footer-link {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--color-brand-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-brand-light);
}

/* Three Pillars */
.pillar-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-brand-gold);
  opacity: 0.4;
  line-height: 1;
}

/* Utility */
.text-display { font-family: 'Cormorant Garamond', serif; }
.text-body { font-family: 'Lato', sans-serif; }
.text-ui { font-family: 'Montserrat', sans-serif; }
