/* =============================================
   KIBO SUSHI — MIDNIGHT TOKYO
   style.css — Global Styles
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;700;900&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --bg-base:       #06060f;
  --bg-deep:       #09091a;
  --bg-card:       #0f0f1e;
  --bg-card-hover: #141428;
  --bg-glass:      rgba(15, 15, 30, 0.75);
  --accent-red:    #ff2d55;
  --accent-red-dim:#cc1f3f;
  --accent-gold:   #ffd60a;
  --accent-cyan:   #00e5ff;
  --text-primary:  #f0f0eb;
  --text-secondary:#8a8aa8;
  --text-muted:    #44445a;
  --border:        rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 45, 85, 0.3);
  --shadow-red:    0 0 30px rgba(255, 45, 85, 0.2);
  --shadow-card:   0 8px 40px rgba(0, 0, 0, 0.5);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --font-display:  'Syne', sans-serif;
  --font-jp:       'Noto Serif JP', serif;
  --font-body:     'DM Sans', sans-serif;
  --nav-h:         72px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-red-dim); border-radius: 2px; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.nav-logo-text span {
  color: var(--accent-red);
}

.nav-logo-jp {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  line-height: 1;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-red);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-primary);
}

.cart-btn:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red);
}

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--accent-red);
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.nav-order-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.2rem;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-order-btn:hover {
  background: #ff1a40;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 45, 85, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 4px 24px rgba(255, 45, 85, 0.35);
}

.btn-primary:hover {
  background: #ff1a40;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 45, 85, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-ghost:hover {
  background: rgba(255, 45, 85, 0.08);
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 4px 24px rgba(255, 214, 10, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 214, 10, 0.45);
}

/* ════════════════════════════════════════════
   SECTION SHARED
════════════════════════════════════════════ */
.section {
  padding: 7rem 5%;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent-red);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo-text {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 1rem;
}

.social-icon:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: var(--shadow-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-red);
  transition: opacity var(--transition);
}

.footer-bottom a:hover { opacity: 0.8; }

/* ════════════════════════════════════════════
   MOBILE NAV OVERLAY
════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 15, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  backdrop-filter: blur(20px);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--accent-red); }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 5%;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
}

.mobile-close:hover { color: var(--accent-red); }

/* ════════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links, .nav-order-btn { display: none; }
  .hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section { padding: 5rem 5%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
