/* ═══════════════════════════════════════════════════
   RAVE RAMEN — Global Styles
   Brand: Neon Red #FF4D6D · Deep Black #07070D
          Teal Glow #06D6A0 · Warm Gold #FFD166
          Soft Purple #C77DFF
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #FF4D6D;
  --black: #07070D;
  --panel: #0F0F1A;
  --dark2: #0A0A12;
  --teal: #06D6A0;
  --gold: #FFD166;
  --purple: #C77DFF;
  --white: #E8E8F0;
  --dim: #AAAAAA;
  --muted: #666666;
  --faint: #444455;
  --ghost: #333333;
  --mono: 'Space Mono', 'Courier New', monospace;
  --display: 'Arial Black', Impact, 'Helvetica Neue', sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Scanline overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* ── Animations ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes glow-pulse { 0%,100%{text-shadow:0 0 40px #FF4D6D88,0 0 80px #FF4D6D44} 50%{text-shadow:0 0 60px #FF4D6Daa,0 0 120px #FF4D6D66} }
@keyframes slide-up { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fade-in { from{opacity:0} to{opacity:1} }
@keyframes neon-flicker {
  0%,19%,21%,23%,25%,54%,56%,100% { opacity:1; }
  20%,24%,55% { opacity:0.85; }
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #07070Dee; backdrop-filter: blur(12px);
  border-bottom: 1px solid #FF4D6D22;
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 14; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; }
.nav-brand { font-family: var(--display); font-size: 18px; font-weight: 900; line-height: 1; }
.nav-brand .rave { color: var(--red); }
.nav-brand .ramen { color: #fff; }
.nav-sub { font-size: 8px; color: var(--teal); letter-spacing: 3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 11px; letter-spacing: 2px; color: #888;
  transition: color 0.2s; cursor: pointer; text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-cta {
  border: 1px solid var(--teal); border-radius: 20px;
  padding: 7px 20px; font-size: 10px; color: var(--teal);
  letter-spacing: 2px; transition: all 0.2s; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--teal); color: var(--black); }

/* ── Mobile nav ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--red); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #07070Df5; backdrop-filter: blur(16px);
    border-bottom: 1px solid #FF4D6D22;
    padding: 16px 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 24px; width: 100%; display: block; }
  .nav-cta { margin: 12px 24px; text-align: center; }
}

/* ── Section utilities ── */
.section { padding: 100px 60px; }
.section-alt { background: var(--dark2); border-top: 1px solid #FF4D6D22; }
.section-label { font-size: 9px; letter-spacing: 4px; color: var(--red); margin-bottom: 14px; }
.section-title { font-family: var(--display); font-size: clamp(32px,5vw,48px); color: #fff; margin-bottom: 20px; line-height: 1.05; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--panel); border: 1px solid #ffffff0a; border-radius: 12px;
  padding: 28px; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px #06D6A022; }

/* ── Buttons ── */
.btn-primary {
  background: var(--red); color: var(--black);
  font-family: var(--display); font-weight: 900; font-size: 13px;
  letter-spacing: 4px; padding: 16px 36px; border-radius: 4px;
  border: none; cursor: pointer; transition: all 0.2s; display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { letter-spacing: 6px; background: #ff6b85; }
.btn-outline {
  border: 1px solid var(--teal); color: var(--teal);
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  padding: 16px 32px; border-radius: 4px; cursor: pointer;
  transition: all 0.2s; background: transparent; display: inline-block;
  text-decoration: none;
}
.btn-outline:hover { background: var(--teal); color: var(--black); border-color: var(--teal); }

/* ── Stat boxes ── */
.stat-box {
  border: 1px solid; border-radius: 8px; padding: 14px 20px; text-align: center;
}
.stat-value { font-family: var(--display); font-size: 26px; }
.stat-label { font-size: 9px; color: #555; letter-spacing: 2px; margin-top: 3px; }

/* ── Footer ── */
.footer { padding: 40px 60px; border-top: 1px solid #ffffff0a; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 14; }
.footer-logo img { width: 44px; height: 44px; }
.footer-social { display: flex; gap: 24px; }
.footer-social a { font-size: 9px; color: var(--ghost); letter-spacing: 2px; transition: color 0.2s; }
.footer-social a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff07;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 9px; color: #222; letter-spacing: 2px;
}
.footer-contact { text-align: center; padding: 30px 60px; border-top: 1px solid #FF4D6D11; }
.footer-contact-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-contact-item { text-align: center; }
.footer-contact-label { font-size: 9px; letter-spacing: 3px; color: var(--red); margin-bottom: 6px; }
.footer-contact-value { font-size: 12px; color: var(--dim); letter-spacing: 1px; }
.footer-contact-value a { color: var(--dim); transition: color 0.2s; }
.footer-contact-value a:hover { color: var(--teal); }

/* ── Dot grid background ── */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#FF4D6D18 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Glow blob ── */
.glow-blob {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, #FF4D6D0f 0%, transparent 70%);
}

/* ── Tag / badge ── */
.tag {
  display: inline-block; border-radius: 4px; padding: 3px 10px;
  font-size: 8px; font-weight: 700; letter-spacing: 2px;
}
.tag-red { background: var(--red); color: var(--black); }
.tag-teal { background: #06D6A022; color: var(--teal); border: 1px solid #06D6A044; }
.tag-purple { background: #C77DFF22; color: var(--purple); border: 1px solid #C77DFF44; }
.tag-gold { background: #FFD16622; color: var(--gold); border: 1px solid #FFD16644; }
.tag-late { background: #FF4D6D22; border: 1px solid #FF4D6D44; color: var(--red); }

/* ── Responsive ── */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; max-width: 100vw; }
section, div, nav, footer { max-width: 100%; }
img, svg { max-width: 100%; height: auto; }

@media (max-width: 768px) {

  /* ── GLOBAL MOBILE OVERRIDES ── */

  /* Kill all horizontal overflow */
  * { max-width: 100vw; }
  body { width: 100%; }

  /* Sections */
  .section { padding: 48px 16px !important; }
  .section-title { font-size: clamp(24px, 7vw, 34px) !important; }
  .section-label { font-size: 8px; margin-bottom: 10px; }
  .container { padding: 0; width: 100%; }

  /* Footer */
  .footer { padding: 24px 16px; }
  .footer-contact { padding: 24px 16px; }
  .footer-contact-grid { gap: 20px; flex-direction: column; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-social { gap: 16px; }

  /* Buttons — full width on mobile */
  .btn-primary, .btn-outline {
    width: 100% !important; text-align: center !important;
    padding: 14px 20px !important; font-size: 11px !important;
    letter-spacing: 2px !important;
  }

  /* Cards */
  .card { padding: 16px; }

  /* Stat boxes */
  .stat-box { padding: 10px 12px; flex: 1; min-width: 0; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 8px; }

  /* Tags */
  .tag { font-size: 7px; padding: 2px 8px; }

  /* ══ MASTER GRID FIX ══
     Force ALL inline 2-col grids to single column.
     The !important overrides inline style attributes. */
  .grid-2col {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Also catch any remaining inline 1fr 1fr grids */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Reset any order tricks on mobile */
  [style*="order:-1"],
  [style*="order: -1"] { order: 0 !important; }

  /* ── HOME PAGE ── */

  /* Hero padding */
  section[style*="min-height:100vh"] {
    padding: 100px 16px 40px !important;
    min-height: auto !important;
  }

  /* Glow blob — contain it */
  .glow-blob { width: 300px !important; height: 300px !important; }

  /* Logo box — scale to fit screen */
  div[style*="width:320px"] {
    width: 100% !important; max-width: 260px !important;
    height: auto !important; aspect-ratio: 1 !important;
  }
  div[style*="width:320px"] img,
  div[style*="width:220px"] {
    width: 140px !important; height: 140px !important;
  }

  /* Stat boxes row */
  div[style*="display:flex"][style*="gap:16px"][style*="flex-wrap"] {
    gap: 8px !important;
  }

  /* Hours rows */
  div[style*="justify-content:space-between"][style*="padding:18px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  /* ── MENU PAGE ── */

  /* Subpage hero padding */
  section[style*="padding:140px"] {
    padding: 100px 16px 32px !important;
  }

  /* Bowl name sizes */
  [style*="font-size:36px"] { font-size: 26px !important; }

  /* Photo placeholder boxes */
  [style*="aspect-ratio:4/3"] {
    aspect-ratio: 16/9 !important;
    min-height: 160px;
  }

  /* Takeout step arrows */
  div[style*="font-size:32px"][style*="align-self"] { display: none !important; }

  /* ── EVENTS PAGE ── */

  .event-card {
    grid-template-columns: 70px 1fr !important;
    gap: 12px !important;
    padding: 20px 0 !important;
  }
  .event-action {
    grid-column: 1 / -1 !important;
    text-align: left !important;
    display: flex !important; align-items: center !important; gap: 12px !important;
  }
  .event-info .event-name { font-size: 16px !important; }
  .event-date { padding: 10px 8px !important; }
  .event-date .day { font-size: 24px !important; }
  .event-date .month { font-size: 9px; }
  .event-price { font-size: 16px !important; }
  .filter-pills { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-pill { padding: 6px 12px; font-size: 8px; white-space: nowrap; flex-shrink: 0; }
  .featured-event { padding: 20px 16px !important; }
  .ticker { font-size: 10px !important; letter-spacing: 2px; }

  /* ── BOOKING PAGE ── */

  .room-feature { padding: 16px 12px; }
  .room-feature .icon { font-size: 24px; margin-bottom: 8px; }
  .room-feature .label { font-size: 11px; letter-spacing: 1px; }
  .room-feature .desc { font-size: 10px; }
  .pricing-card { padding: 24px 20px !important; }
  .form-input, .form-select, .form-textarea { font-size: 16px !important; /* prevents iOS zoom */ }
  .faq-q { font-size: 13px; }

  /* "Perfect for" grid — 2 col */
  [style*="repeat(auto-fit,minmax(200px"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* Room features — 2 col */
  [style*="repeat(auto-fit,minmax(180px"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* Pricing — single col */
  [style*="repeat(auto-fit,minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
  /* Drinks / snacks grids */
  [style*="repeat(auto-fit,minmax(240px"],
  [style*="repeat(auto-fit,minmax(200px"][style*="gap:16px"],
  [style*="repeat(auto-fit,minmax(300px"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* CTA button groups */
  div[style*="display:flex"][style*="gap:16px"][style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
}
