/* Bijan Restoran Nusantara — Premium v2 */

:root {
  --forest: #0f3d32;
  --forest-mid: #1a5244;
  --forest-light: #2a6b58;
  --gold: #d4af37;
  --gold-light: #f0dfa0;
  --gold-dark: #a68b2a;
  --terracotta: #b85c38;
  --cream: #faf7f2;
  --cream-dark: #efe6d8;
  --ink: #141210;
  --muted: #5c5650;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 12px rgba(20, 18, 16, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 18, 16, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 18, 16, 0.14);
  --radius: 1.25rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.font-display { font-family: var(--font-display); }

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

/* Loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, var(--forest) 0%, #0a2922 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  animation: loader-glow 1.5s ease infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: loader-slide 1s ease infinite;
}

@keyframes loader-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(212,175,55,0); }
  50% { box-shadow: 0 0 24px rgba(212,175,55,0.35); }
}

@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.loader-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Navbar */
#navbar {
  transition: all 0.45s var(--ease);
}

#navbar.nav-top {
  background: transparent;
  box-shadow: none;
}

#navbar.nav-top .nav-link { color: rgba(255,255,255,0.9); }
#navbar.nav-top .nav-link:hover,
#navbar.nav-top .nav-link.active { color: var(--gold-light); }
#navbar.nav-top .logo-text { color: white; }
#navbar.nav-top .logo-sub { color: rgba(255,255,255,0.65); }
#navbar.nav-top .logo-box {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold-light);
}
#navbar.nav-top #menu-toggle { color: white; }

#navbar.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  transition: width 0.35s var(--ease);
  border-radius: 2px;
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ink);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.45);
}

.btn-glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.35s var(--ease);
}

.btn-glass:hover {
  background: white;
  color: var(--forest);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1da851);
  color: white;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.btn-dark {
  background: var(--forest);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.35s;
}

.btn-dark:hover {
  background: var(--forest-mid);
  transform: translateY(-2px);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-zoom 20s ease infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 61, 50, 0.94) 0%, rgba(15, 61, 50, 0.75) 45%, rgba(15, 61, 50, 0.4) 100%),
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(184, 92, 56, 0.25), transparent);
}

.hero-ornament {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  top: -10%;
  right: -5%;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.hero-float-img {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 420px;
}

.hero-float-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float-y 2.5s ease infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Stats strip */
.stats-strip {
  background: white;
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
  z-index: 10;
  margin-top: -3rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 56rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

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

.stat-item {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--cream-dark);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}

.stat-value .gold { color: var(--gold-dark); }

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Marquee */
.marquee-wrap {
  background: var(--forest);
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  padding: 0 2rem;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-track span::before {
  content: '✦';
  margin-right: 1rem;
  color: var(--gold);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(184,92,56,0.08));
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.25);
  margin-bottom: 1rem;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36rem;
}

/* Feature cards */
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--forest-mid), var(--forest));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold-light);
}

/* Menu highlight */
.menu-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  group: menu-card;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease);
}

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

.menu-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.menu-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,61,50,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.menu-card-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.menu-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
}

/* About image stack */
.about-visual {
  position: relative;
}

.about-main {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  width: 45%;
  border-radius: 1rem;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.experience-pill {
  position: absolute;
  top: 2rem;
  left: -1rem;
  background: var(--gold);
  color: var(--ink);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 2;
}

.experience-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 12; }
.gallery-item:nth-child(2) { grid-column: span 6; }
.gallery-item:nth-child(3) { grid-column: span 6; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 4; }

@media (min-width: 768px) {
  .gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 5; }
  .gallery-item:nth-child(3) { grid-column: span 5; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.gallery-zoom {
  position: absolute;
  inset: 0;
  background: rgba(15,61,50,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-item:hover .gallery-zoom { opacity: 1; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, #0a2922 100%);
  border-radius: 2rem;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.2), transparent);
  top: -50%;
  right: -10%;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-light), var(--forest));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1rem;
}

.star-rating { color: var(--gold); letter-spacing: 2px; }

/* Hours */
.hours-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-dark);
}

.status-open {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #14532d;
}

.status-closed {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.status-open .status-dot { background: #22c55e; }
.status-closed .status-dot { background: #ef4444; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Contact form */
.contact-form {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 0.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  background: white;
}

.map-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid white;
}

/* FAQ */
.faq-item {
  background: white;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.3s;
}

.faq-question:hover { background: var(--cream); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
  padding: 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  transition: transform 0.35s, background 0.35s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--forest);
  color: white;
}

/* Lightbox, FAB, chat, back-top — refined */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 20, 18, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
}

#lightbox.active { opacity: 1; visibility: visible; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 0.75rem; box-shadow: var(--shadow-lg); }

#fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: fab-pulse 2.5s ease infinite;
  transition: transform 0.35s;
}

#fab-whatsapp:hover { transform: scale(1.12); }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.6), 0 0 0 14px rgba(37, 211, 102, 0.12); }
}

#wa-chat-widget {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  z-index: 8999;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: white;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

#wa-chat-widget.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.wa-chat-header {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: white;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-bubble {
  background: #e7ffdb;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

#back-to-top {
  position: fixed;
  bottom: 6.75rem;
  right: 1.65rem;
  z-index: 8000;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
  box-shadow: var(--shadow-md);
}

#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--forest); transform: translateY(-4px); }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 10001;
  opacity: 0;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease);
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

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

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.06'%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .marquee-track, #fab-whatsapp { animation: none; }
}
