/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #f9fafb;
}

/* Prevent scroll when modal is open */
.no-scroll { overflow: hidden; }

/* HERO */
.hero{
  min-height: 76vh;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url("images/grindhard-hero.jpg") center top /cover no-repeat;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 6px 22px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.55);
  color: #f9fafb;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.nav a:hover {
  background: #f9fafb;
  color: #111827;
}

/* Sections */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.section-header p {
  color: #6b7280;
}

/* Menu */
.menu-category {
  margin-bottom: 2rem;
}

.menu-category h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

/* Clean Menu Layout (List Style) */
.menu-list {
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.menu-list h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.35rem;
}

.menu-hint {
  color: #6b7280;
  font-size: 0.92rem;
  margin-top: 0.75rem;
  text-align: center;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  align-items: center;
  padding: 0.6rem 0;
  gap: 0.75rem;
  font-size: 1rem;
}


.menu-item span:nth-child(2) {
  color: #4b5563;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-item span:nth-child(2) {
  color: #4b5563;
  white-space: nowrap;
}

/* Clickable item names */
.menu-name{
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.menu-name:hover{ opacity: 0.9; }
.menu-name:focus{
  outline: 2px solid #111827;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.card h3,
.card h4 {
  margin-bottom: 0.3rem;
}

.card p {
  color: #4b5563;
}

.card-menu {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.price {
  font-weight: 600;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

/* Add button */
.add-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.add-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Events */
.event-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  background: #111827;
  color: #f9fafb;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Visit / Contact */
.visit-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.hours {
  list-style: none;
  margin-bottom: 1rem;
}

.hours li {
  margin-bottom: 0.15rem;
}

.map-placeholder {
  background: #e5e7eb;
  border-radius: 0.75rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #4b5563;
  text-align: center;
  padding: 1rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  background: #111827;
  color: #d1d5db;
  font-size: 0.9rem;
}

/* Cart FAB */
.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

.cart-fab:hover { opacity: 0.95; }

/* Cart Drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 60;
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: #ffffff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -10px 0 25px rgba(15,23,42,0.18);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }
.cart-backdrop.open { display: block; }

.cart-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.cart-body {
  padding: 1rem 1.25rem;
  overflow: auto;
  flex: 1;
}

.cart-items {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cart-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item-name { font-weight: 700; }

.cart-item-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
}

.qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-summary {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  color: #374151;
  font-weight: 700;
}

.cart-note {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0.9rem 0;
}

.cart-call {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #111827;
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-weight: 800;
}

.cart-clear {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

/* Photo modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0,0,0,0.6);
  z-index: 90;
}
.modal.open{ display: flex; }

.modal-card{
  width: min(720px, 96vw);
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.modal-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-close{
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

#modalImg{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  background: #111827;
}

.modal-hint{
  padding: 0.85rem 1rem 1rem;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }

  .visit-layout {
    grid-template-columns: 1fr;
  }

  .menu-item {
    align-items: flex-start;
  }

  #modalImg{
    height: 300px;
  }
}
/* Compact drink rows with S/L toggle */
.menu-item.menu-item-size {
  gap: 0.6rem;
}

.price-pair {
  color: #4b5563;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.size-toggle {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.size-btn {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: #111827;
}

.size-btn.is-active {
  background: #111827;
  color: #fff;
}
/* ===== Drink size rows: prevent overlap + mobile friendly ===== */

/* Desktop: keep everything aligned nicely */
.menu-item.menu-item-size {
  align-items: center;
}

.size-toggle {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}

.size-btn {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: #111827;
}

.size-btn.is-active {
  background: #111827;
  color: #fff;
}

.price-pair {
  color: #4b5563;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* Mobile: switch size rows into a 2-row grid so nothing overlaps */
@media (max-width: 520px) {
  .menu-item.menu-item-size {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "toggle add";
    row-gap: 0.5rem;
    align-items: center;
  }

  .menu-item.menu-item-size > span:first-child {
    grid-area: name;
  }

  .menu-item.menu-item-size .price-pair {
    grid-area: price;
    justify-self: end;
  }

  .menu-item.menu-item-size .size-toggle {
    grid-area: toggle;
    justify-self: start;
  }

  .menu-item.menu-item-size .add-btn {
    grid-area: add;
    justify-self: end;
  }

  /* Slightly smaller toggle/buttons on very small screens */
  .size-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
  }
}
/* ===== FIX: Size drink rows should NEVER overlap (desktop + mobile) ===== */

/* Force size rows to use grid (not flex), so name/price/toggle/add lay out cleanly */
.menu-item.menu-item-size {
  display: grid;
  grid-template-columns: 1fr auto auto auto; /* name | prices | toggle | add */
  gap: 0.6rem;
  align-items: center;
}

/* Make sure the name can shrink without pushing items into overlap */
.menu-item.menu-item-size > span:first-child {
  min-width: 0;               /* IMPORTANT for grid overflow */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Prices never wrap weirdly */
.menu-item.menu-item-size .price-pair {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Toggle + Add shouldn't shrink */
.menu-item.menu-item-size .size-toggle,
.menu-item.menu-item-size .add-btn {
  white-space: nowrap;
}

/* If*
/* Map embed */
.map-embed {
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 220px;
  background: #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-embed iframe {
    height: 260px;
  }
}
