/* ═══════════════════════════════════════════════════════════════
   Silver BBQ Purbalingga – style.css
   Korean BBQ Premium | Dark Automotive Palette
   ═══════════════════════════════════════════════════════════════ */

:root {
  --black: #080808;
  --black-soft: #111111;
  --black-mid: #161616;
  --black-card: #1a1a1a;
  --black-border: #2a2a2a;
  --red: #c0392b;
  --red-bright: #e74c3c;
  --red-dark: #8b1a12;
  --red-glow: rgba(192, 57, 43, 0.35);
  --white: #ffffff;
  --white-soft: #f5f5f5;
  --white-dim: rgba(255, 255, 255, 0.7);
  --white-muted: rgba(255, 255, 255, 0.4);
  --gold: #c9a84c;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-red: 0 8px 40px rgba(192, 57, 43, 0.25);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

/* ─────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 8, 8, 0.97);
  border-bottom-color: var(--black-border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--white);
}
.logo-accent {
  color: var(--red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-dim);
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 10%;
  right: 10%;
}

.btn-wa-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-wa-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--red-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse 60% 80% at 65% 50%,
      rgba(192, 57, 43, 0.08) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 60% at 10% 50%,
      rgba(192, 57, 43, 0.05) 0%,
      transparent 60%
    ),
    var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 100px 2rem 80px;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 30%,
    transparent 100%
  );
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-content {
  z-index: 2;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}
.eyebrow-line {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.headline-accent {
  color: var(--red);
  text-shadow: 0 0 40px rgba(192, 57, 43, 0.5);
}
.headline-thin {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white-dim);
  letter-spacing: 6px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--black-border);
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--red);
  background: rgba(192, 57, 43, 0.08);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1;
}
.stat-pct {
  color: var(--red);
  font-size: 1.2rem;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--white-muted);
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--black-border);
}

/* Visual Hero */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.plate-ring-outer {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(192, 57, 43, 0.2);
  animation: ringPulse 4s ease-in-out infinite;
}
.plate-ring-mid {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(192, 57, 43, 0.12);
  animation: ringPulse 4s ease-in-out infinite 0.5s;
}
.plate-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
  box-shadow:
    0 0 0 3px var(--black-border),
    0 0 60px rgba(192, 57, 43, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bbq-svg {
  width: 100%;
  height: 100%;
  animation: plateFloat 6s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.6;
  }
}
@keyframes plateFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(22, 22, 22, 0.95);
  border: 1px solid var(--black-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: badgeFloat 5s ease-in-out infinite;
}
.badge-1 {
  top: 10%;
  left: -5%;
}
.badge-2 {
  bottom: 15%;
  right: -8%;
  animation-delay: 1.5s;
}
.badge-3 {
  top: 50%;
  left: -12%;
  animation-delay: 0.8s;
}
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ─────────────────────────────────────────────────────────────
   MENU SECTION (CUMA 2 BOX)
───────────────────────────────────────────────────────────── */
.menu-section {
  padding: 6rem 2rem;
  background: var(--black-soft);
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1rem;
}
.eyebrow-line-sm {
  width: 32px;
  height: 1px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.title-accent {
  color: var(--red);
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--white-muted);
}

/* Grid layout untuk 2 Box */
.two-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Kotak Menu Utama */
.menu-box {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.menu-box:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 57, 43, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(192, 57, 43, 0.3);
}

/* Wrapper Visual Box (Slider atau Gambar Tunggal) */
.box-visual-wrap {
  position: relative;
  width: 100%;
  height: 480px; /* TINGGI MAKSIMAL AGAR MENU BISA TERLIHAT PANJANG */
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Trik Anti-Crop (object-fit: contain) */
.box-visual-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ANTI CROP, GAMBAR UTUH */
  cursor: zoom-in; /* Menandakan bisa diklik */
  transition: transform 0.4s ease;
}
.box-visual-wrap img:hover {
  transform: scale(1.02); /* Efek membesar dikit pas di-hover */
}

/* Slider dalam Box 1 */
.box-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
}
.box-slider::-webkit-scrollbar {
  display: none;
}
.box-slider img {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

/* Tombol Panah Slider */
.box-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--red);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.box-arrow:hover {
  background: var(--red);
}
.box-arrow.left {
  left: 10px;
}
.box-arrow.right {
  right: 10px;
}

/* Bagian Bawah Box */
.box-body {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--black-card), #141414);
}
.box-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.box-desc {
  font-size: 1rem;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT & LOKASI
───────────────────────────────────────────────────────────── */
.contact-section {
  padding: 6rem 2rem;
  background:
    linear-gradient(135deg, rgba(192, 57, 43, 0.06) 0%, rgba(0, 0, 0, 0) 50%),
    var(--black);
  position: relative;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}
.contact-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
}
.info-icon {
  font-size: 1.5rem;
  color: var(--red);
}
.info-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.info-text {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.maps-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-border);
  transition: var(--transition);
  height: 400px;
}
.maps-wrap:hover {
  box-shadow:
    0 0 0 2px var(--red),
    0 0 30px var(--red-glow);
  border-color: var(--red);
}
.maps-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) saturate(0.8) brightness(0.9);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  background: var(--black-mid);
  border-top: 1px solid var(--black-border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-size: 1.4rem;
  letter-spacing: 2px;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--white-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--white-muted);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--red);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--white-muted);
  width: 100%;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--black-border);
}

/* ─────────────────────────────────────────────────────────────
   MODAL LIGHTBOX (UNTUK ZOOM GAMBAR MENU)
───────────────────────────────────────────────────────────── */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--transition);
  align-items: center;
  justify-content: center;
}
.modal.show {
  opacity: 1;
}
.modal-content {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain; /* Gak pecah */
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(192, 57, 43, 0.4);
  animation: zoomIn 0.3s ease;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2001;
}
.modal-close:hover {
  color: var(--red);
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* ─────────────────────────────────────────────────────────────
   MEDIA QUERIES (RESPONSIF HP)
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .btn-wa-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 8, 0.98);
    padding: 1.5rem 2rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .badge {
    display: none;
  }

  /* 2 Box jadi Stack / Atas Bawah */
  .two-box-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-info .section-eyebrow {
    justify-content: center;
  }
  .info-card {
    text-align: left;
  }
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 90px 1rem 50px;
  }
  .hero-headline {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
  .plate-circle {
    width: 250px;
    height: 250px;
  }
  .plate-ring-outer {
    width: 310px;
    height: 310px;
  }
  .plate-ring-mid {
    width: 280px;
    height: 280px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  /* Tinggi gambar Menu di HP */
  .box-visual-wrap {
    height: 420px;
  } /* Tetap lega supaya tidak terlalu menyusut */

  .maps-wrap {
    height: 280px;
    margin: 0 -1rem;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
