/* ==========================================================
   Mami Game Center — style.css
   Dark + Gold, premium gaming-center aesthetic. No top navbar —
   fixed left sidebar on desktop, off-canvas drawer on mobile.
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  --bg: #0b0b0d;
  --surface: #131316;
  --card: #1a1a1f;
  --gold: #d4af37;
  --gold-bright: #f5c451;
  --gold-muted: #9d7d25;
  --border: rgba(212, 175, 55, 0.22);
  --text: #f5f5f5;
  --text-muted: #b7b7b7;
  --text-faint: #7d7d82;
  --dark-text: #0b0b0d;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.35);
  --sidebar-w: 240px;
  --sidebar-w-tablet: 76px;
  --maxw: 1180px;
}

/* ---------- Base ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; color: var(--text); }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.eyebrow {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--dark-text);
  padding: 10px 16px;
  z-index: 400;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--dark-text); }
.btn-primary:hover { background: var(--gold-bright); color: var(--dark-text); box-shadow: 0 0 0 3px rgba(212,175,55,0.18); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w-tablet);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo-img { height: 34px; width: auto; max-width: 100%; object-fit: contain; }

.sidebar-nav { flex: 1; padding: 14px 8px; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-link .label { display: none; }
.sidebar-link:hover { background: var(--card); color: var(--text); text-decoration: none; }
.sidebar-link[aria-current="page"] {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
}
.sidebar-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.sidebar-foot {
  padding: 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: none;
}
.sidebar-foot a { font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }

@media (min-width: 640px) {
  .sidebar { display: flex; }
  .main-content { margin-left: var(--sidebar-w-tablet); }
  .mobile-bar { display: none; }
}

@media (min-width: 1024px) {
  .sidebar { width: var(--sidebar-w); }
  .main-content { margin-left: var(--sidebar-w); }
  .sidebar-brand { justify-content: flex-start; padding: 24px 20px; }
  .sidebar-link { justify-content: flex-start; padding: 11px 14px; }
  .sidebar-link .label { display: inline; }
  .sidebar-foot { display: block; }
}

/* ---------- Mobile top bar + off-canvas drawer ---------- */
.mobile-bar {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 11, 13, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.mobile-bar-logo { height: 30px; width: auto; }
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 640px) {
  .mobile-bar { display: none; }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 300px);
  background: var(--surface);
  z-index: 250;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-logo-img { height: 30px; width: auto; }
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-nav { padding: 12px; flex: 1; overflow-y: auto; }
.drawer-nav ul { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}
.drawer-link svg { flex-shrink: 0; }
.drawer-link:hover { background: var(--card); color: var(--text); text-decoration: none; }
.drawer-link[aria-current="page"] { background: rgba(212, 175, 55, 0.12); color: var(--gold-bright); }

.drawer-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.drawer-foot a { color: var(--gold-bright); }

/* ---------- Main content offset ---------- */
.main-content { min-width: 0; }

/* ---------- Hero Carousel ---------- */
.hero-carousel { position: relative; background: var(--surface); }
.carousel-track-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
@media (min-width: 640px) { .carousel-track-wrap { aspect-ratio: 16 / 10; } }
@media (min-width: 1000px) { .carousel-track-wrap { aspect-ratio: 16 / 9; } }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  z-index: 1;
}
.carousel-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.slide-bg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.5) 45%, rgba(11, 11, 13, 0.1) 100%);
}
.slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 20px 52px;
}
.slide-content h1, .slide-content h2 {
  font-size: clamp(1.5rem, 1.05rem + 2.4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 10px;
}
.slide-content p { color: #dadada; max-width: 46ch; margin-bottom: 18px; font-size: 1rem; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-arrow:hover { background: var(--gold); color: var(--dark-text); border-color: var(--gold); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; justify-content: center; gap: 9px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 245, 245, 0.35); border: none; cursor: pointer; padding: 0; }
.carousel-dot.is-active { background: var(--gold); }

/* ---------- Services ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1300px) {
  .grid-4 { grid-template-columns: repeat(5, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-sm); border-color: rgba(212, 175, 55, 0.45); }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.92rem; }

/* ---------- Why / intro blocks ---------- */
.intro-block { max-width: 760px; }
.intro-block h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); }

.why-list { display: grid; gap: 16px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.15s ease;
}
.gallery-item:hover { border-color: var(--gold); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Opening hours ---------- */
.hours-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.hours-band h2 { margin-bottom: 6px; }
.hours-time { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; color: var(--gold-bright); margin: 6px 0; }
.hours-band p { color: var(--text-muted); margin: 0; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--gold-bright); font-size: 1rem; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.95rem; margin: 0; }
.review-meta { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 0.82rem; margin-top: auto; }
.reviews-disclaimer { margin-top: 20px; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Contact / location ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-list .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list .item h3 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-list .item p { margin: 0; font-size: 0.92rem; }

.map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--card);
}
.map-frame { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 20px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.location-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 26px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 52ch; margin: 0 auto 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Forms (booking) ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 16px; }
.form-grid.two-col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.form-grid.three-col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.three-col { grid-template-columns: repeat(3, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  background: rgba(212, 175, 55, 0.08);
}
.form-success.is-visible { display: block; }
.instagram-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.instagram-cta .insta-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.12); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; padding: 48px 0 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.footer-col h4 { color: var(--text); font-size: 0.92rem; margin-bottom: 14px; }
.footer-col p { font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-col .footer-logo { height: 30px; margin-bottom: 12px; }
.footer-col address { font-style: normal; font-size: 0.9rem; color: var(--text-muted); }
.footer-col address p { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Legal content ---------- */
.legal-content h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.96rem; }
.legal-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; }
.dev-note {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 18px 0;
}

/* ---------- Breadcrumbs / page hero ---------- */
.page-hero { padding: 32px 0 6px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs .current { color: var(--text-muted); }
.page-hero h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 8px; }
.page-hero .lead { max-width: 60ch; }

/* ---------- Responsive misc ---------- */
main { display: block; }
