/* ═══════════════════════════════════════════════════════════
   AUREL FINE DINING — GLOBAL STYLESHEET
   ═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --charcoal:      #1a1a1a;
  --charcoal-light: #2e2e2e;
  --charcoal-mid:   #3d3d3d;
  --cream:         #f8f5f0;
  --gold:          #c19d68;
  --gold-dark:     #a07d4a;
  --gold-light:    #d4b896;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles this */
}

body {
  background-color: var(--charcoal);
  color: var(--cream);
  font-family: 'Jost', 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════ */
#page-loader {
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-bar {
  transition: transform 1.4s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav-container {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(193, 157, 104, 0.15);
}
.nav-scrolled .nav-container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.active-link {
  color: var(--gold) !important;
}

/* Hamburger morph */
#hamburger.open .ham-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

/* Mobile nav open state */
#mobile-nav.open {
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--charcoal) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--gold);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  z-index: 1;
}

.btn-gold:hover {
  background: var(--charcoal);
  color: var(--gold) !important;
  border-color: var(--gold);
}


.btn-gold-dark {
  display: inline-block;
  background: transparent;
  color: var(--charcoal) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--charcoal);
  text-decoration: none !important;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  text-align: center;
}

.btn-gold-dark:hover {
  background: var(--charcoal);
  color: var(--gold) !important;
}


.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cream) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.875rem 2.25rem;
  border: 1px solid rgba(248, 245, 240, 0.4);
  text-decoration: none !important;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  text-align: center;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--charcoal) !important;
}


.btn-charcoal {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--charcoal);
  text-decoration: none !important;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  text-align: center;
}

.btn-charcoal:hover {
  background: var(--gold);
  border-color: var(--charcoal);
  color: var(--charcoal) !important;
}


/* ═══════════════════════════════════════════════════════════
   MARQUEE TICKER
   ═══════════════════════════════════════════════════════════ */
.marquee-track {
  animation: marquee 20s linear infinite;
  display: flex;
  gap: 4rem;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   REVEAL ANIMATIONS (GSAP targets)
   ═══════════════════════════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero-line {
  display: block;
  overflow: hidden;
}

/* Scroll indicator animation */
#scroll-indicator .scroll-line {
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════════════════════════
   SPECIALTY CARDS
   ═══════════════════════════════════════════════════════════ */
.specialty-card {
  transition: transform 0.5s var(--ease-out-expo);
}
.specialty-card:hover {
  transform: translateY(-8px);
}

/* ═══════════════════════════════════════════════════════════
   MENU PAGE
   ═══════════════════════════════════════════════════════════ */

/* Category Tabs */
.menu-tab {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.5);
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}
.menu-tab:hover {
  color: var(--gold);
}
.menu-tab.active-tab {
  color: var(--charcoal);
  background: var(--gold);
  border-color: var(--gold);
}

/* Dotted line between dish name and price */
.menu-dots {
  /* The spacing is handled by the flex layout, dots are a background pattern */
  background-image: radial-gradient(circle, rgba(193,157,104,0.3) 1px, transparent 1px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  background-position: 0 center;
  margin: 0 1rem;
  height: 1px;
  flex: 1;
}

/* Menu item hide/show states */
.menu-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-item.hidden-item {
  display: none;
}

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

/* ═══════════════════════════════════════════════════════════
   DISH CARDS (menu page)
   ═══════════════════════════════════════════════════════════ */
.dish-card {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
}
.dish-card:hover {
  transform: translateY(-6px);
  border-color: rgba(193, 157, 104, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dish-body {
  padding: 1.25rem;
}

.dish-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.3;
  transition: color 0.3s;
}
.dish-card:hover .dish-name {
  color: var(--gold);
}

.dish-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.dish-ingredients {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  color: var(--gold-light);
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.dish-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: rgba(248, 245, 240, 0.55);
  line-height: 1.7;
}

/* Category badge */
.dish-badge {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--cream);
  padding: 0.25rem 0.6rem;
}
.dish-badge--gold {
  background: var(--gold);
  color: var(--charcoal);
}

/* Order Online & Cart Styles */
.add-to-cart-btn {
  background: var(--gold);
  color: var(--charcoal) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  transition: all 0.35s var(--ease-out-expo);
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none !important;
}

.add-to-cart-btn:hover {
  background: var(--charcoal);
  color: var(--gold) !important;
  border-color: var(--gold);
}


/* Cart Icon Badge */
.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Drawer */
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--charcoal);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out-expo);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

#cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid var(--charcoal-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--charcoal-mid);
  background: var(--charcoal-light);
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-cover: cover;
}

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

.cart-item-title {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1rem;
}

.cart-item-price {
  color: var(--gold);
  font-size: 0.9rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  background: var(--charcoal-mid);
  color: var(--white);
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checkout Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
}

.checkout-modal {
  background: var(--cream);
  width: 100%;
  max-width: 600px;
  padding: 3rem;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   BOOKING FORM — FLOATING LABELS
   ═══════════════════════════════════════════════════════════ */
.float-label-group {
  position: relative;
}

.float-input,
.float-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.25);
  padding: 1.25rem 0 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.float-input:focus,
.float-textarea:focus {
  border-bottom-color: var(--gold);
}

.float-label {
  position: absolute;
  top: 1.25rem;
  left: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.5);
  pointer-events: none;
  transition: all 0.25s var(--ease-out-expo);
  transform-origin: left top;
}
.float-input:focus ~ .float-label,
.float-input:not(:placeholder-shown) ~ .float-label,
.float-textarea:focus ~ .float-label,
.float-textarea:not(:placeholder-shown) ~ .float-label {
  transform: translateY(-1.1rem) scale(0.78);
  color: var(--gold);
}

.float-input-date::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
}
.float-input-date:not([value=""]):not([value]) { color: var(--charcoal); }
.float-label-date { top: 1.25rem; }
.float-input-date:focus ~ .float-label-date,
.float-input-date:valid ~ .float-label-date {
  transform: translateY(-1.1rem) scale(0.78);
  color: var(--gold);
}

.float-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.25);
  padding: 1.25rem 0 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.7);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23c19d68' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 20px;
  transition: border-color 0.3s;
}
.float-select:focus {
  border-bottom-color: var(--gold);
}
.float-select:not([value=""]) {
  color: var(--charcoal);
}

/* Select with gold indicator on focus */
.float-label-group:focus-within .float-label {
  color: var(--gold);
}

/* Form validation highlight */
.float-input:invalid:not(:placeholder-shown),
.float-textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #e05a5a;
}

/* ═══════════════════════════════════════════════════════════
   CHEF CARDS
   ═══════════════════════════════════════════════════════════ */
.chef-card {
  transition: transform 0.5s var(--ease-out-expo);
}
.chef-card:hover {
  transform: translateY(-6px);
}

/* ═══════════════════════════════════════════════════════════
   PARALLAX BASE
   ═══════════════════════════════════════════════════════════ */
.parallax-img,
.parallax-img-section {
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .menu-dots { display: none; }
}

@media (max-width: 768px) {
  .specialty-card { margin-top: 0 !important; }
  .hero-line { font-size: 4rem !important; }
  .btn-gold, .btn-outline, .btn-charcoal, .btn-gold-dark {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
  }
}

/* Focus visible outline for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
