/* ── Town Hero — Stars & Stripes Theme ── */
@import url('https://fonts.googleapis.com/css2?family=Jockey+One&family=Inter:wght@400;600;700&display=swap');

:root {
  --red: #BF0A30;
  --blue: #002868;
  --white: #FFFFFF;
  --off-white: #F5F5F0;
  --star-gold: #FFD700;
  --dark-navy: #001540;
  --mid-navy: #003399;
  --light-red: #e8192c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--off-white); color: var(--blue); }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--blue);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--red);
}
.nav-logo {
  font-family: 'Jockey One', sans-serif; font-size: 1.5rem;
  color: var(--white); text-decoration: none; letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo::before { content: '★'; color: var(--star-gold); font-size: 1.2rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--star-gold); }

/* ── Hero Banner ── */
.hero-banner {
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0px, var(--red) 28px,
    var(--white) 28px, var(--white) 56px
  );
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 260px; height: 140px;
  background: var(--blue);
  z-index: 1;
}
/* Stars in canton */
.hero-banner::after {
  content: '★ ★ ★ ★ ★\A★ ★ ★ ★ ★\A★ ★ ★ ★ ★';
  white-space: pre;
  position: absolute; top: 14px; left: 12px;
  color: var(--star-gold); font-size: 1.1rem;
  line-height: 1.9; letter-spacing: 6px;
  z-index: 2;
}
.hero-banner h1 {
  font-family: 'Jockey One', sans-serif; font-size: 3rem;
  color: var(--white); letter-spacing: 4px;
  text-shadow: 3px 3px 0 var(--blue), -1px -1px 0 var(--dark-navy);
  position: relative; z-index: 3;
  background: rgba(0,40,104,0.75);
  display: inline-block; padding: 8px 28px;
  border-radius: 4px;
}
.hero-banner p {
  color: var(--white); font-size: 1rem; margin-top: 0.5rem;
  position: relative; z-index: 3;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  font-weight: 600;
}

/* ── Menu Page ── */
.menu-page { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1rem; }
.menu-section { margin-bottom: 2.5rem; }
.section-title {
  font-family: 'Jockey One', sans-serif; font-size: 1.6rem;
  color: var(--blue); letter-spacing: 1px; margin-bottom: 0.25rem;
  border-left: 5px solid var(--red); padding-left: 12px;
}
.section-desc { font-size: 0.85rem; color: #666; margin-bottom: 1rem; padding-left: 17px; }
.section-sub { font-size: 0.85rem; color: var(--red); margin-bottom: 1rem; padding-left: 17px; font-weight: 600; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.sides-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.menu-item {
  background: var(--white); border: 2px solid #dde4f0;
  border-radius: 10px; padding: 1rem 1.25rem; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.menu-item.has-img { display: flex; align-items: center; gap: 1rem; padding-right: 3.5rem; }
.menu-item .item-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.menu-item .item-info { flex: 1; min-width: 0; }
.menu-item::after {
  content: '+'; position: absolute; top: 50%; right: 14px;
  transform: translateY(-50%); width: 32px; height: 32px;
  background: var(--red); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; line-height: 1; transition: background 0.2s;
}
.menu-item:hover::after { background: var(--light-red); }
.menu-item:hover { border-color: var(--red); box-shadow: 0 3px 12px rgba(191,10,48,0.15); transform: translateY(-2px); }
.menu-item h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 0.25rem; }
.menu-item .item-desc { font-size: 0.82rem; color: #666; margin-bottom: 0.5rem; line-height: 1.3; }
.menu-item .item-price { font-family: 'Jockey One', sans-serif; font-size: 1rem; color: var(--red); }
.menu-item.small-item { padding: 0.75rem 1rem; }
.menu-item.small-item h3 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.menu-item.small-item .item-img { width: 48px; height: 48px; }

@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; }
  .sides-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner h1 { font-size: 2.2rem; }
  .hero-banner { padding: 2.5rem 1rem 2rem; }
}

/* ── Order Type Bar ── */
.order-type-bar { background: var(--blue); border-bottom: 3px solid var(--red); padding: 1.5rem 1rem; }
.otb-inner { max-width: 700px; margin: 0 auto; }
.otb-toggle { display: flex; gap: 0; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,0.2); margin-bottom: 1rem; }
.otb-btn {
  flex: 1; padding: 14px 20px;
  font-family: 'Jockey One', sans-serif; font-size: 1.3rem; letter-spacing: 1.5px;
  border: none; cursor: pointer; transition: all .2s;
  background: var(--dark-navy); color: rgba(255,255,255,0.5);
}
.otb-btn.active { background: var(--red); color: var(--white); }
.otb-btn:hover:not(.active) { background: rgba(255,255,255,0.1); color: var(--white); }
.otb-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }
.otb-locations { display: flex; gap: 12px; }
.otb-loc {
  display: flex; flex-direction: column; flex: 1; padding: 16px;
  background: var(--dark-navy); border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px; cursor: pointer; transition: all .2s;
}
.otb-loc input { display: none; }
.otb-loc.selected { border-color: var(--star-gold); background: rgba(0,21,64,0.9); }
.otb-loc:hover:not(.selected) { border-color: rgba(255,255,255,0.4); }
.otb-loc-name { font-family: 'Jockey One', sans-serif; font-size: 1.1rem; color: var(--white); letter-spacing: 1px; margin-bottom: 4px; }
.otb-loc-addr { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.4; }
.otb-loc-phone { font-size: 0.85rem; color: var(--star-gold); margin-top: 6px; font-weight: 600; }
.otb-addr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.otb-input {
  padding: 12px 14px; background: var(--dark-navy); border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px; color: var(--white); font-size: 0.95rem;
  font-family: 'Inter', sans-serif; flex: 1; min-width: 0;
}
.otb-input:focus { outline: none; border-color: var(--star-gold); }
.otb-input::placeholder { color: rgba(255,255,255,0.4); }
.otb-input-sm { max-width: 160px; }
.otb-input-xs { max-width: 100px; }
@media(max-width:600px) {
  .otb-locations { flex-direction: column; }
  .otb-addr-row { flex-direction: column; }
  .otb-input-sm,.otb-input-xs { max-width: 100%; }
  .otb-btn { font-size: 1.1rem; padding: 12px 16px; }
}

/* ── Tip Section ── */
.tip-section { margin: 16px 0; padding: 16px; background: #eef1f8; border-radius: 10px; border: 1px solid #c8d4e8; }
.tip-header { font-family: 'Jockey One', sans-serif; font-size: 1.1rem; color: var(--blue); margin-bottom: 10px; letter-spacing: 0.5px; }
.tip-buttons { display: flex; gap: 8px; margin-bottom: 10px; }
.tip-btn { flex: 1; padding: 10px 8px; border: 2px solid #c8d4e8; border-radius: 8px; background: var(--white); color: var(--blue); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.tip-btn:hover { border-color: var(--red); color: var(--red); }
.tip-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.tip-custom-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tip-custom-row span { font-weight: 700; font-size: 1.1rem; color: var(--blue); }
.tip-custom-row input { flex: 1; padding: 8px 10px; border: 2px solid #c8d4e8; border-radius: 8px; font-size: 1rem; font-family: 'Inter', sans-serif; }
.tip-custom-row input:focus { outline: none; border-color: var(--red); }
.tip-h4h { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 6px; font-size: 0.9rem; color: var(--blue); }
.tip-h4h input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }
.tip-driver-note { font-size: 0.82rem; color: #555; margin-bottom: 10px; line-height: 1.3; }
.tip-h4h-note { font-size: 0.78rem; color: #777; line-height: 1.3; }

/* ── Merch Section ── */
.merch-section { border-top: 4px solid var(--blue); padding-top: 2rem; margin-top: 2rem; }
.merch-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.merch-item .item-img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.merch-hero-img { text-align: center; margin-bottom: 16px; }
.merch-hero-img img { max-width: 200px; max-height: 200px; border-radius: 12px; object-fit: cover; }
.merch-logo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.merch-logo-opt {
  display: flex; flex-direction: column; align-items: center; padding: 12px;
  border: 2px solid #c8d4e8; border-radius: 12px; cursor: pointer; transition: all 0.2s;
  flex: 1; min-width: 120px; max-width: 180px; background: var(--white);
}
.merch-logo-opt input { display: none; }
.merch-logo-opt:hover { border-color: var(--red); }
.merch-logo-opt.selected { border-color: var(--red); background: #fff5f5; box-shadow: 0 0 0 2px rgba(191,10,48,0.2); }
.merch-logo-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 6px; }
.merch-logo-name { font-size: 0.82rem; font-weight: 700; color: var(--blue); text-align: center; }
@media (max-width: 600px) {
  .merch-grid { grid-template-columns: 1fr 1fr; }
  .merch-logo-opt { min-width: 100px; }
  .merch-logo-img { width: 60px; height: 60px; }
}

/* ── Hours banner ── */
#hours-banner { background: var(--blue) !important; border-bottom: 3px solid var(--red) !important; }
