/*
  21 Shots Sector 56
  Base theme + shared layout
  - Tokens
  - Resets
  - Top bar
  - Hero
  - Shared sections
  - About / Events / Reserve / Menu / Gallery / Contact / Directions
  - Bottom nav
  - Mobile overrides
*/

:root {
  --bg: #150e0b;
  --bg-soft: #1d120d;
  --panel: #22140d;
  --panel-2: #2a170f;
  --reserve: #8b4d1f;

  --text: #eacea9;
  --text-soft: rgba(234, 206, 169, 0.78);
  --text-faint: rgba(234, 206, 169, 0.56);
  --accent: #d39758;
  --accent-2: #85451d;
  --line: rgba(211, 151, 88, 0.42);
  --line-soft: rgba(234, 206, 169, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);

  --page-max: 690px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --topbar-offset: 18px;
  --bottomnav-offset: 18px;
  --topbar-h: 88px;
  --bottomnav-h: 96px;

  --font-display: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  --font-body: "Bricolage Grotesque", Inter, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button { cursor: pointer; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.14));
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--bottomnav-h) + 18px);
}

/* =============================
   Top bar
============================= */
.topbar {
  position: fixed;
  top: var(--topbar-offset);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), var(--page-max));
  z-index: 1000;
}

.topbar-shell {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(30, 21, 17, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.brand {
  width: 72px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  max-width: 56px;
  object-fit: contain;
}

.outlet-switcher {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 12, 9, 0.5);
}

.outlet-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
  transition: 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.outlet-btn.active {
  background: var(--accent);
  color: #1b120d;
}

.outlet-btn:not(.active):hover {
  color: var(--text);
  background: rgba(234, 206, 169, 0.06);
}

/* =============================
   Hero
============================= */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: calc(var(--topbar-h) + var(--topbar-offset) + 16px);
  padding-bottom: calc(var(--bottomnav-h) + var(--bottomnav-offset) + 24px);
}

.hero-media,
.hero-overlay,
.hero-content {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(21, 14, 11, 0.12) 0%, rgba(21, 14, 11, 0.22) 24%, rgba(21, 14, 11, 0.46) 58%, rgba(21, 14, 11, 0.82) 100%);
}

.hero-content {
  z-index: 2;
  width: min(calc(100% - 36px), 560px);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-kicker {
  position: absolute;
  top: calc(var(--topbar-h) + var(--topbar-offset) + 52px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  z-index: 3;
}

.hero-logo-block {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
}

.hero-logo {
  width: 100%;
  object-fit: contain;
}

.hero-tagline {
  margin: 0;
  max-width: 17ch;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  font-weight: 500;
  padding-bottom: calc(var(--bottomnav-h) * 0.15);
}

/* =============================
   Generic section shell
============================= */
.content-section {
  width: min(calc(100% - 24px), var(--page-max));
  margin: 0 auto;
  padding: 26px 0 0;
}

.content-section + .content-section {
  padding-top: 34px;
}

.section-inner { width: 100%; }

.section-title {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-link {
  color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
}

.section-link::after { content: "  ›"; }

/* =============================
   About section
============================= */
.about-section { padding-top: 10px; }

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 12px;
}

.about-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--text-faint);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(211, 151, 88, 0.14);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.about-copy {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.about-copy p { margin: 0 0 14px; }

/* =============================
   Events section / cards
============================= */
.events-section .section-head-row { margin-bottom: 20px; }

.events-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.events-scroller::-webkit-scrollbar { display: none; }

.event-card {
  flex: 0 0 87%;
  scroll-snap-align: start;
}

.event-poster {
  border-radius: 4px;
  overflow: hidden;
  background: #2a1b12;
}

.event-poster img {
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
}

.event-info {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding-top: 14px;
}

.event-date strong {
  display: block;
  color: var(--text);
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 600;
}

.event-date span {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
}

.event-text h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.12;
  font-weight: 500;
}

.event-text p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.98rem;
}

/* =============================
   Reserve section / form
============================= */
.reserve-section { padding-top: 34px; }

.reserve-shell {
  background: var(--reserve);
  border-radius: 0;
  padding: 38px 26px 24px;
}

.reserve-title {
  color: var(--text);
  font-size: 3.2rem;
  margin-bottom: 30px;
}

.reserve-form {
  display: grid;
  gap: 18px;
}

.form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  color: rgba(245, 227, 201, 0.88);
  font-size: 1rem;
}

.form-field input::placeholder { color: rgba(234, 206, 169, 0.42); }

.form-field input,
.form-field select {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 4px;
  background: #170d09;
  color: var(--text);
  padding: 0 14px;
  font-size: 1rem;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: 0.01em;
}

.form-field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.82;
  cursor: pointer;
  filter: sepia(1) saturate(0.35) brightness(1.08);
}

.form-field input[type="date"],
.form-field input[type="time"] {
  color-scheme: dark;
  position: relative;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator,
.form-field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  cursor: pointer;
  filter: invert(83%) sepia(18%) saturate(632%) hue-rotate(343deg) brightness(96%) contrast(89%);
}

.field-help {
  display: block;
  margin-top: 2.5px;
  color: var(--text-faint);
  font-size: 0.5rem;
  line-height: 1;
  margin-left: 5px;
}

.reserve-submit {
  margin-top: 22px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #1c140f;
  font-size: 1.08rem;
  font-weight: 500;
}

.reserve-success {
  margin-top: 14px;
  color: var(--text);
  font-size: 1rem;
}

/* =============================
   Menu section
============================= */
.menu-section .section-head-row { margin-bottom: 18px; }

.menu-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.95rem;
}

.menu-tab.active {
  background: var(--accent);
  color: #20140d;
  border-color: var(--accent);
}

.menu-list { display: grid; }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(211, 151, 88, 0.36);
}

.menu-item:last-child { border-bottom: 0; }

.menu-copy h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

.menu-copy p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.98rem;
}

.menu-price {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}

/* =============================
   Gallery section
============================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-card,
.gallery-stack {
  display: grid;
  gap: 14px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 3px;
  background: #24150d;
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
}

.gallery-tall,
.gallery-tall img { min-height: 420px; }

.gallery-stack .gallery-card:first-child { min-height: 196px; }
.gallery-stack .gallery-card:last-child { min-height: 210px; }

/* =============================
   Instagram / contact
============================= */
.instagram-placeholder {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 12px 12px;
  margin-bottom: 18px;
}

.instagram-head { margin-bottom: 14px; }

.instagram-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.instagram-label .btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.instagram-label .btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.instagram-card {
  overflow: hidden;
  border-radius: 2px;
  background: #26170f;
}

.instagram-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.action-btn {
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 1.05rem;
}

.action-btn.wide {
  flex: 1;
  justify-content: flex-start;
  gap: 8px;
}

.action-btn.outline { min-width: 110px; }

.open-hours {
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.open-hours span { color: var(--text); }

#phone-text { margin-left: 4px; }

.btn-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#whatsapp-link .btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

#whatsapp-link .btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#whatsapp-link .btn-icon path { fill: currentColor; }

.address-block h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
}

.address-block p {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.38;
}

.direction-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.map-frame {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}

.map-frame img {
  aspect-ratio: 1.74 / 1;
  object-fit: cover;
}

/* =============================
   Bottom nav
============================= */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--bottomnav-offset);
  transform: translateX(-50%);
  width: min(calc(100% - 24px), var(--page-max));
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 12px;
  border: 1.5px solid var(--accent-2);
  border-radius: 4px;
  background: rgba(26, 16, 11, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.bottom-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.bottom-nav-item {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(234, 206, 169, 0.54);
  font-size: 0.82rem;
  text-align: center;
  border-radius: 8px;
}

.bottom-nav-item.active { color: var(--text); }

/* =============================
   Gallery page / events page
============================= */
.gallery-page-body,
.events-page-body {
  background: #140a06;
}

.gallery-page-main,
.events-page-main {
  position: relative;
  z-index: 1;
  padding-top: 118px;
  padding-bottom: 34px;
}

.gallery-page-section,
.events-page-section {
  padding-top: 10px;
}

.gallery-page-head,
.events-page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.gallery-back,
.events-back {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: 0 0 28px;
}

.gallery-back svg,
.events-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-page-title,
.events-page-title {
  margin: 5px 0 0;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}

.gallery-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.gallery-filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 0.98rem;
}

.gallery-filter.active {
  background: var(--accent);
  color: #1c120d;
  border-color: var(--accent);
}

.gallery-feature { margin-bottom: 18px; }

.gallery-feature-media {
  overflow: hidden;
  background: #22140d;
}

.gallery-feature-media img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
}

.gallery-thumb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.gallery-thumb-strip::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: #22140d;
  flex: 0 0 56px;
}

.gallery-thumb.active { border-color: var(--accent); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.events-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 14px;
  align-items: start;
}

.event-listing-card {
  display: grid;
  gap: 10px;
}

.event-listing-poster {
  overflow: hidden;
  border-radius: 2px;
  background: #26170f;
}

.event-listing-poster img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  display: block;
}

.event-listing-meta {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.event-listing-date strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
}

.event-listing-date span {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.event-listing-copy h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.16;
  font-weight: 400;
}

.event-listing-copy p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.88rem;
  line-height: 1.25;
}

/* =============================
   Mobile overrides
============================= */
@media (max-width: 520px) {
  :root { --page-max: 100%; }

  .topbar {
    width: calc(100% - 20px);
    top: 10px;
  }

  .topbar-shell {
    min-height: 82px;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    width: 60px;
    flex-basis: 60px;
  }

  .brand-logo { max-width: 48px; }

  .outlet-switcher {
    gap: 6px;
    padding: 5px;
  }

  .outlet-btn {
    min-height: 40px;
    font-size: 0.96rem;
  }

  .content-section { width: calc(100% - 26px); }

  .hero-content { width: calc(100% - 32px); }

  .hero-kicker { top: calc(var(--topbar-h) + 14px); }

  .hero-tagline {
    font-size: 1.05rem;
    max-width: 18ch;
  }

  .hero-logo-block { max-width: 270px; }

  .section-title { font-size: 1.9rem; }

  .about-copy { font-size: 1.08rem; }

  .events-page-grid { gap: 20px 10px; }

  .event-card { flex-basis: 88%; }

  .event-info { grid-template-columns: 48px 1fr; }

  .event-date strong { font-size: 1.8rem; }

  .event-date span { font-size: 1.25rem; }

  .event-listing-meta {
    grid-template-columns: 26px 1fr;
    gap: 8px;
  }

  .event-listing-date strong { font-size: 1.1rem; }

  .event-listing-copy h2 { font-size: 0.95rem; }

  .event-listing-copy p { font-size: 0.84rem; }

  .reserve-shell { padding: 28px 18px 22px; }

  .reserve-title { font-size: 2.7rem; }

  .form-grid.two-col { grid-template-columns: 1fr; }

  .gallery-grid { gap: 12px; }

  .gallery-tall,
  .gallery-tall img { min-height: 360px; }

  .instagram-grid { gap: 8px; }

  .contact-actions,
  .direction-actions { flex-wrap: wrap; }

  .action-btn,
  .action-btn.wide,
  .action-btn.outline {
    width: 100%;
    justify-content: center;
  }

  .bottom-nav {
    width: calc(100% - 20px);
    bottom: 10px;
    padding: 8px 6px;
    gap: 2px;
  }

  .bottom-nav-item {
    gap: 6px;
  }

  .form-grid.two-col {
    gap: 14px;
  }

  .action-btn { font-size: 0.98rem; }
}
