/* ============================================
   Jimmy's House of Pizza - Public Website
   Mobile-first, responsive design
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --gold: #FFD700;
  --gold-dark: #B8960B;
  --black: #111111;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #888888;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Shared Headings ---------- */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 5px;
}

.heading-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 25px;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
  overflow: hidden;
  padding: 30px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(204, 0, 0, 0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px 10px;
  max-width: 600px;
}

.hero-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 30px rgba(204, 0, 0, 0.4), 0 0 0 3px var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  text-shadow: 2px 2px 10px rgba(204, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-width: 140px;
  text-align: center;
}

.btn-order {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  animation: pulse-order 2s ease-in-out infinite;
}

.btn-order:hover, .btn-order:active {
  background: var(--gold-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

@keyframes pulse-order {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.7); }
}

.hero-order-note {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.btn-call {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}

.btn-call:hover, .btn-call:active {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.5);
}

.btn-menu {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-menu:hover, .btn-menu:active {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ---------- Info Bar ---------- */
.info-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 14px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

.info-item a {
  color: var(--gold);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.info-icon {
  font-size: 1.1rem;
}

/* ---------- About & Hours ---------- */
.about-hours {
  padding: 45px 20px;
  background: #0d0d0d;
  border-bottom: 1px solid #222;
}

.about-hours-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about p {
  color: #ccc;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.about p:last-child {
  margin-bottom: 0;
}

.hours-table {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 5px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-table td:first-child {
  color: var(--white);
  font-weight: 600;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--gold);
  font-weight: 600;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr.closed td:last-child {
  color: var(--gray);
}

/* ---------- Location / Map ---------- */
.location {
  padding: 45px 20px;
  background: var(--black);
  border-bottom: 1px solid #222;
}

.map-wrapper {
  max-width: 800px;
  margin: 0 auto 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #222;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 250px;
}

.location-address {
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 15px;
}

/* ---------- Menu Section Wrapper ---------- */
.menu-section-wrapper {
  padding: 45px 0 0;
  background: #0d0d0d;
}

/* ---------- Category Navigation ---------- */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 2px solid var(--red);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Fade hints for horizontal scroll */
  mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav-inner {
  display: flex;
  padding: 0 10px;
  min-width: max-content;
}

.category-tab {
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.category-tab:hover {
  color: var(--white);
}

.category-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Menu Container ---------- */
.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 10px 30px;
  min-height: 40vh;
}

.menu-loading {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray);
}

.menu-loading.hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #333;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Menu Sections ---------- */
.menu-section {
  margin-bottom: 30px;
  display: none;
}

.menu-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 5px;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 15px;
  border-radius: 2px;
}

/* Size labels row */
.size-labels {
  display: flex;
  justify-content: flex-end;
  padding: 0 5px 6px;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.size-label {
  width: 60px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Menu Items ---------- */
.menu-items {
  max-width: 700px;
  margin: 0 auto;
}

.menu-item {
  display: flex;
  align-items: baseline;
  padding: 9px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.menu-item:last-child {
  border-bottom: none;
}

.item-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 0;
}

.item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
  margin: 0 6px;
  min-width: 10px;
  align-self: center;
}

.item-price {
  width: 60px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.item-price.no-price {
  color: #555;
}

.item-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

.badge-special {
  background: #FF4444;
  color: white;
}

.badge-new {
  background: #00CC44;
  color: white;
}

.badge-unavailable {
  background: #666;
  color: #CCC;
}

/* ---------- Tax Note ---------- */
.tax-note {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  padding: 12px;
  letter-spacing: 1px;
  opacity: 0.8;
  background: #0d0d0d;
}

/* ---------- Footer ---------- */
.footer {
  background: #0a0a0a;
  border-top: 1px solid #222;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 35px 20px;
  text-align: center;
}

.footer-col h3 {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-col p {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col a {
  color: var(--gold);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 18px 15px;
  border-top: 1px solid #1a1a1a;
  font-size: 0.75rem;
  color: #555;
}

.footer-bottom p + p {
  margin-top: 4px;
  color: var(--gold);
  opacity: 0.5;
}

/* ============================================
   Responsive — tablet and up
   ============================================ */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .info-bar {
    flex-direction: row;
    gap: 30px;
  }

  .item-name {
    font-size: 0.9rem;
  }

  .item-price {
    width: 65px;
    font-size: 0.9rem;
  }

  .size-label {
    width: 65px;
    font-size: 0.7rem;
  }

  .category-tab {
    padding: 13px 16px;
    font-size: 0.8rem;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }

  .hero-logo {
    width: 250px;
  }

  .btn {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .info-bar {
    gap: 40px;
  }

  .info-item {
    font-size: 0.95rem;
  }

  .section-heading {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .about-hours-inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .about .section-heading,
  .hours .section-heading {
    text-align: left;
  }

  .about .heading-divider,
  .hours .heading-divider {
    margin-left: 0;
  }

  .about p {
    font-size: 1.05rem;
  }

  .hours-table {
    margin: 0;
  }

  .hours-table td {
    font-size: 1rem;
    padding: 10px 0;
  }

  .map-wrapper iframe {
    height: 350px;
  }

  .category-tab {
    padding: 16px 24px;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .category-nav {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .menu-container {
    padding: 20px 15px 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .menu-item {
    padding: 11px 15px;
  }

  .item-name {
    font-size: 1rem;
  }

  .item-price {
    width: 70px;
    font-size: 1rem;
  }

  .size-label {
    width: 70px;
    font-size: 0.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .category-nav-inner {
    justify-content: center;
  }

  .hero h1 {
    font-size: 3.2rem;
  }
}
