/* ==========================================================================
   LongHorn Steakhouse Menu  –  longhorn-menu.css  v4.0
   Complete rewrite: clean structure, consistent spacing system,
   fixed nav bar, proper category/subcategory hierarchy.
   ========================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --lh-red:        #9B1B1B;
  --lh-gold:       #C8923A;
  --lh-cream:      #FAF6EF;
  --lh-brown:      #3D2B1F;
  --lh-gray-light: #F2EDE6;
  --lh-gray-mid:   #D6CFC5;
  --lh-gray-text:  #6B5C50;
  --lh-white:      #ffffff;

  /* Spacing scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  14px;
  --sp-lg:  24px;
  --sp-xl:  40px;

  --lh-shadow-card: 0 1px 4px rgba(61,43,31,.08), 0 4px 16px rgba(61,43,31,.08);
  --lh-radius:      10px;
  --lh-ease:        .18s ease;
}

/* ── Reset scope ───────────────────────────────────────────────────────── */
.lh-menu-wrap,
.lh-menu-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.lh-menu-wrap {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--lh-brown);
  background: transparent;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 20px 60px;
}

/* ═══════════════════════════════════════════════════════════════════════
   STICKY CONTROLS  (search + nav)
   ══════════════════════════════════════════════════════════════════════ */
.lh-menu-controls {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--lh-cream);
  /* Bleed background edge-to-edge while wrapper constrains content */
  margin-inline: -20px;
  padding: var(--sp-md) 20px 0;
  border-bottom: 2px solid var(--lh-gold);
  /* Subtle shadow so it lifts above content when scrolling */
  box-shadow: 0 2px 12px rgba(61,43,31,.06);
}

/* ── Search bar ── */
.lh-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto var(--sp-md);
}
.lh-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--lh-gray-mid);
  pointer-events: none;
  /* icon right edge = 16 + 15 = 31px */
}
.lh-search-input {
  width: 100%;
  /* left-pad = 48px: icon ends at 31px + 17px gap = well clear */
  padding: 10px 40px 10px 48px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--lh-gray-mid);
  border-radius: 50px;
  background: var(--lh-white);
  color: var(--lh-brown);
  outline: none;
  transition: border-color var(--lh-ease), box-shadow var(--lh-ease);
  -webkit-appearance: none;
  appearance: none;
}
.lh-search-input::placeholder { color: var(--lh-gray-mid); }
.lh-search-input:focus {
  border-color: var(--lh-red);
  box-shadow: 0 0 0 3px rgba(155,27,27,.10);
}
.lh-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--lh-gray-mid);
  line-height: 1;
  padding: var(--sp-xs);
}
.lh-search-clear:hover { color: var(--lh-gray-text); }

/* ── Nav tabs ──────────────────────────────────────────────────────────
   Desktop: single row, tabs equally spaced, overflow hidden with
   a right fade to hint scrollability if needed.
   We do NOT wrap — wrapping causes the ragged two-row look in the screenshot.
   Instead we scroll horizontally and rely on the fade hint.
   ────────────────────────────────────────────────────────────────────── */
.lh-tabs {
  display: flex;
  flex-wrap: nowrap;          /* SINGLE ROW always */
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
  /* right-fade gradient to show there are more tabs */
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
          mask-image: linear-gradient(to right, black 90%, transparent 100%);
}
.lh-tabs::-webkit-scrollbar { display: none; }

.lh-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 11.5px;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--lh-gray-text);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--lh-ease), border-color var(--lh-ease), background var(--lh-ease);
  line-height: 1;
}
.lh-tab:hover {
  color: var(--lh-brown);
  background: rgba(61,43,31,.04);
}
.lh-tab[aria-selected="true"] {
  color: var(--lh-red);
  border-bottom-color: var(--lh-red);
  background: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION HEADERS  (category + subcategory)
   ══════════════════════════════════════════════════════════════════════ */
.lh-category-divider {
  grid-column: 1 / -1;     /* full grid width */
  display: flex;
  flex-direction: column;   /* category on top, subcategory below */
  gap: 4px;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--lh-gray-mid);
}
/* No extra top margin on the very first divider */
.lh-menu-grid > .lh-category-divider:first-child {
  margin-top: var(--sp-lg);
}

/* Red left rule — now as a left border on the wrapper */
.lh-category-divider {
  padding-left: 14px;
  border-left: 4px solid var(--lh-red);
}

/* Primary name — title case, large serif */
.lh-divider-name {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Georgia', serif;
  color: var(--lh-brown);
  line-height: 1.2;
  letter-spacing: .01em;
}

/* Subcategory — smaller, gold, sans-serif, underneath */
.lh-divider-sub {
  font-size: 11px;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--lh-gold);
  line-height: 1;
}

/* Remove old accent span — we use border-left now */
.lh-divider-accent { display: none; }
.lh-divider-line   { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   GRID
   ══════════════════════════════════════════════════════════════════════ */
.lh-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* fixed 4-col on desktop */
  gap: 20px;
  align-items: stretch;
  margin-top: var(--sp-md);
}

/* 3 col at medium */
@media (max-width: 1024px) {
  .lh-menu-grid { grid-template-columns: repeat(3, 1fr); }
}
/* 2 col at tablet */
@media (max-width: 680px) {
  .lh-menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
/* 1 col at small mobile */
@media (max-width: 380px) {
  .lh-menu-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════════════════════════ */
.lh-card {
  display: flex;
  flex-direction: column;
  height: 100%;              /* equal height within grid row */
  background: var(--lh-white);
  border: 1px solid var(--lh-gray-light);
  border-radius: var(--lh-radius);
  box-shadow: var(--lh-shadow-card);
  overflow: hidden;
  outline: none;
  transition: transform var(--lh-ease), box-shadow var(--lh-ease), border-color var(--lh-ease);
}
.lh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(61,43,31,.14);
  border-color: var(--lh-gray-mid);
}
.lh-card:focus-visible {
  outline: 2px solid var(--lh-gold);
  outline-offset: 2px;
}

/* ── Card image ── */
.lh-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;          /* 5:3 ratio */
  overflow: hidden;
  background: var(--lh-gray-light);
  flex-shrink: 0;
}
.lh-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.lh-card:hover .lh-card-img { transform: scale(1.05); }

.lh-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--lh-gray-mid);
}

/* ── Card body ── */
.lh-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-md);
}

.lh-card-name {
  font-size: 14.5px;
  font-weight: 700;
  font-family: 'Georgia', serif;
  color: var(--lh-brown);
  line-height: 1.35;
}

.lh-card-desc {
  font-size: 12px;
  color: var(--lh-gray-text);
  line-height: 1.55;
  /* No clamping — show the full description */
  flex: 1;
}

/* ── Badges ── */
.lh-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}
.lh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px 3px 5px;
  border-radius: 4px;
  background: rgba(200,146,58,.11);
  color: #7a5518;
  border: 1px solid rgba(200,146,58,.28);
  white-space: nowrap;
}
.lh-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lh-gold);
  flex-shrink: 0;
}
.lh-badge-gs  { background: rgba(58,125,68,.09);   color: #2a5e30; border-color: rgba(58,125,68,.22); }
.lh-badge-gs::before  { background: #4a9a5a; }
.lh-badge-lh  { background: rgba(200,146,58,.11);  color: #7a5518; border-color: rgba(200,146,58,.28); }
.lh-badge-alc { background: rgba(100,50,120,.09);  color: #5a2d7a; border-color: rgba(100,50,120,.22); }
.lh-badge-alc::before { background: #9b59b6; }
.lh-badge-din { background: rgba(61,43,31,.07);    color: var(--lh-brown); border-color: rgba(61,43,31,.18); }
.lh-badge-din::before { background: var(--lh-gray-text); }

/* ── Size selector ── */
.lh-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lh-size-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  font-size: 11px;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid var(--lh-gray-mid);
  border-radius: 6px;
  background: var(--lh-white);
  color: var(--lh-gray-text);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: border-color var(--lh-ease), background var(--lh-ease), color var(--lh-ease);
}
.lh-size-btn:hover {
  border-color: var(--lh-brown);
  color: var(--lh-brown);
  background: var(--lh-gray-light);
}
.lh-size-btn.lh-size-active {
  border-color: var(--lh-red);
  background: var(--lh-red);
  color: var(--lh-white);
}

/* ── Card footer (price + cal) ── */
.lh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md) var(--sp-md);
  border-top: 1px solid var(--lh-gray-light);
  margin-top: auto;
  flex-wrap: wrap;
}
.lh-card-price {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  color: var(--lh-red);
  white-space: nowrap;
}
.lh-price-from {
  font-size: 10px;
  font-weight: 400;
  font-style: italic;
  color: var(--lh-gray-text);
  margin-right: 1px;
}
.lh-card-cal {
  font-size: 11.5px;
  font-family: 'Arial', sans-serif;
  color: var(--lh-gray-text);
  white-space: nowrap;
}

/* ── Calorie change pulse ── */
@keyframes lh-cal-pulse {
  0%   { transform: scale(1);    opacity: 1;  }
  40%  { transform: scale(1.2);  opacity: .8; }
  100% { transform: scale(1);    opacity: 1;  }
}
.lh-cal-pulse { animation: lh-cal-pulse .28s ease-out; display: inline-block; }

/* ── No results ── */
.lh-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--lh-gray-text);
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE OVERRIDES
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .lh-menu-wrap { padding-inline: 12px; }
  .lh-menu-controls { margin-inline: -12px; padding-inline: 12px; }
  .lh-tab { padding: 9px 12px; font-size: 11px; }
  .lh-card-name { font-size: 13px; }
  .lh-divider-name { font-size: 17px; }
}
