/* ================================================
   LUNARA — Fine Dining · style.css
   ================================================ */

:root {
  --bg1: #f7f7ff;
  --bg2: #eef0ff;
  --accent: #7c5cff;
  --accent2: #00d4ff;
  --accent-mid: #5e8eff;
  --text: #0e0f1a;
  --text-muted: #6b6d80;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.5);
  --blur: blur(18px);
  --radius-card: 20px;
  --radius-img: 28px;
  --nav-height: 80px;
  --section-pad: 130px 60px;
}

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

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

body {
  font-family: "Outfit", sans-serif;
  background: radial-gradient(ellipse at top left, var(--bg1) 0%, var(--bg2) 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

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

button {
  font-family: "Outfit", sans-serif;
}

/* ================================================
   NOISE OVERLAY
================================================ */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* ================================================
   CURSOR GLOW
================================================ */
.mouse-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: opacity 0.3s;
  will-change: transform;
}

/* Ambient background light that follows cursor */
.ambient-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 142, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  will-change: transform;
}

/* ================================================
   NAVIGATION
================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(247, 247, 255, 0.6);
  border-bottom: 1px solid rgba(124, 92, 255, 0.08);
  z-index: 500;
  transition: background 0.3s ease;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

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

/* ================================================
   BUTTONS
================================================ */
.magnetic-btn {
  padding: 13px 26px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 50%, var(--accent2) 100%);
  background-size: 200% 200%;
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.3s ease, background-position 0.4s ease;
}

.magnetic-btn:hover {
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.4);
  background-position: right center;
}

.outline-btn {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.outline-btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.3);
}

/* ================================================
   HERO
================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: calc(var(--nav-height) + 60px) 60px 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  width: fit-content;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -1px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-italic {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.hero-scroll-hint {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Hero Image */
.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-img);
  will-change: transform;
}

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.hero-image-badge span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-image-badge strong {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   SECTION TAG (shared)
================================================ */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ================================================
   ABOUT
================================================ */
.about {
  padding: var(--section-pad);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.about-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 60px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(124, 92, 255, 0.12);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat strong {
  font-size: 42px;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ================================================
   CHEF
================================================ */
.chef {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--section-pad);
  gap: 60px;
  align-items: center;
}

.chef-image {
  overflow: hidden;
  border-radius: var(--radius-img);
}

.chef-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.chef-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chef-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.25;
}

.chef-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ================================================
   MENU
================================================ */
.menu {
  padding: var(--section-pad);
}

.menu-header {
  text-align: center;
  margin-bottom: 50px;
}

.menu-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  margin-bottom: 12px;
}

.menu-desc {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Filters */
.menu-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(124, 92, 255, 0.2);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.3);
}

/* Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.menu-card {
  perspective: 1000px;
  cursor: default;
}

.menu-card-inner {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 22px 24px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.menu-card:hover .menu-card-inner {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(124, 92, 255, 0.25);
}

.menu-card.featured .menu-card-inner {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 212, 255, 0.06));
  border-color: rgba(124, 92, 255, 0.3);
}

.menu-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.menu-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.menu-card p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
}

.menu-card .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
  display: block;
}

/* Hidden card for filters */
.menu-card.hidden {
  display: none;
}

/* ================================================
   GALLERY
================================================ */
.gallery {
  padding: var(--section-pad);
}

.gallery-tag {
  display: block;
  text-align: center;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.5s ease;
  cursor: pointer;
}

.gallery-grid img:first-child {
  grid-row: 1 / 3;
  height: 100%;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  z-index: 2;
  position: relative;
}

/* ================================================
   CTA
================================================ */
.cta {
  padding: var(--section-pad);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-inner {
  text-align: center;
  max-width: 700px;
}

.cta-inner h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.reserve-btn {
  padding: 16px 40px;
  font-size: 15px;
}

.cta-phone {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cta-phone:hover {
  color: var(--accent);
}

/* ================================================
   FOOTER
================================================ */
.footer {
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(124, 92, 255, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ================================================
   SPLIT TEXT SPANS (animation target)
================================================ */
.split span {
  display: inline-block;
}

/* ================================================
   SCROLL REVEAL (initial state set by GSAP)
================================================ */
.reveal-image {
  overflow: hidden;
}

/* ================================================
   REDUCED MOTION
================================================ */
@media (prefers-reduced-motion: reduce) {
  .mouse-glow,
  .ambient-light {
    display: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   RESPONSIVE — tablet
================================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 100px 40px;
  }

  .navbar {
    padding: 0 40px;
  }

  .hero {
    gap: 40px;
    padding: calc(var(--nav-height) + 40px) 40px 60px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-grid img:first-child {
    grid-row: auto;
    height: 260px;
  }
}

/* ================================================
   RESPONSIVE — mobile
================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 80px 24px;
  }

  .navbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-height) + 30px) 24px 60px;
    gap: 40px;
  }

  .hero-image img {
    height: 320px;
  }

  .chef {
    grid-template-columns: 1fr;
  }

  .chef-image img {
    height: 340px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-grid img {
    height: 220px;
  }

  .gallery-grid img:first-child {
    height: 220px;
  }

  .about-stats {
    flex-direction: column;
    gap: 32px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 16px;
  }
}
