/* ===== MARTY'S PIZZA — SITE STYLESHEET ===== */
/* Font loading lives in fonts.css (see that file to switch to self-hosted) */

:root {
  --red:     #c0302a;
  --red-dark:#8e1f1a;
  --gold:    #d4a843;
  --cream:   #fdf6ec;
  --white:   #ffffff;
  --dark:    #1a1a1a;
  --gray:    #555555;
  --light:   #f5f0e8;
  --border:  #e2d9cc;
  --nav-h:   72px;
}

/* ——— RESET ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ——— TOP BAR ——— */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .03em;
}
.top-bar a { color: var(--gold); }

/* ——— NAV ——— */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.nav-logo img { height: 52px; }
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 11px;
  border-radius: 3px;
  color: var(--dark);
  transition: background .18s, color .18s;
}
.nav-links a:hover,
.nav-links a.active { background: var(--red); color: var(--white); }
.nav-links .order-btn a {
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
}
.nav-links .order-btn a:hover { background: var(--red-dark); }

/* ——— OPEN/CLOSED BADGE (lives next to nav logo) ——— */
.nav-status {
  display: none; /* hidden until JS populates it */
}
.nav-status.populated { display: inline-flex; align-items: center; gap: 10px; }
.hours-today {
  color: var(--gray);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.hours-status.open  { background: #e6f4ea; color: #2e7d32; }
.hours-status.closed { background: #fdecea; color: #c62828; }
.hours-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
.hours-status.open::before  { background: #2e7d32; }
.hours-status.closed::before { background: #c62828; animation: none; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.35); }
}

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: .25s; display: block; }
.mobile-menu { display: none; }

/* Social row inside mobile nav — cancel red hover/active styles */
.nav-social-row a,
.nav-social-row a:hover,
.nav-social-row a.active {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--red) !important;
}

/* ——— PAGE HERO (inner pages) ——— */
.page-hero {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03) 0px,
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 20px
  );
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  position: relative;
}
.page-hero p {
  max-width: 640px;
  margin: 12px auto 0;
  opacity: .9;
  position: relative;
}

/* ——— SECTION TITLES ——— */
.section-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-title span { color: var(--red); }
.section-sub {
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 36px;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 10px 0 20px;
  border-radius: 2px;
}

/* ——— BUTTONS ——— */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: 'Lato', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 4px;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #b8922d; transform: translateY(-1px); }

/* ——— WRAPPER ——— */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

/* ——— MENU GRID ——— */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.menu-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.menu-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.menu-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.menu-card-body h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.menu-card-body p { color: var(--gray); font-size: .93rem; flex: 1; }
.menu-card-price {
  display: inline-block;
  margin-top: 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  padding: 3px 10px;
  border-radius: 12px;
}

/* ——— CATEGORY CARDS (menu index) ——— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.cat-card img { width: 100%; height: 160px; object-fit: cover; }
.cat-card-label {
  padding: 14px 12px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dark);
}
.cat-card-desc { padding: 0 12px 14px; color: var(--gray); font-size: .85rem; }

/* ——— MENU SIDEBAR LAYOUT ——— */
.menu-layout { display: flex; gap: 36px; align-items: flex-start; }
.menu-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.menu-sidebar h3 {
  background: var(--red);
  color: var(--white);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  padding: 14px 18px;
  font-size: 1rem;
}
.menu-sidebar ul { list-style: none; padding: 8px 0; }
.menu-sidebar ul li a {
  display: block;
  padding: 9px 18px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  transition: background .15s, color .15s;
}
.menu-sidebar ul li a:hover,
.menu-sidebar ul li a.active { background: var(--light); color: var(--red); }
.menu-main { flex: 1; min-width: 0; }

/* ——— INFO GRID (hours/contact) ——— */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.info-box {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.info-box h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--red);
}
.info-box p { color: var(--gray); line-height: 1.8; }

/* ——— COUPON CARDS ——— */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.coupon-card {
  background: var(--white);
  border: 2px dashed var(--red);
  border-radius: 10px;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.coupon-card .coupon-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.coupon-card .coupon-discount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  margin: 4px 0;
}
.coupon-card .coupon-meta { color: var(--gray); font-size: .88rem; margin-bottom: 12px; }
.coupon-card .coupon-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 14px;
}
.coupon-card .coupon-code:hover { background: var(--border); }
.coupon-card .coupon-code .copy-icon { font-size: .8rem; color: var(--gray); }
.coupon-card .coupon-note { font-size: .8rem; color: var(--gray); font-style: italic; }
.coupon-scissors {
  position: absolute;
  top: -14px; left: 16px;
  font-size: 1.3rem;
  background: var(--cream);
  padding: 0 4px;
}

/* ——— FAQ ——— */
.faq-step {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.faq-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.faq-step-img { width: 100%; max-width: 580px; border-radius: 6px; margin-top: 12px; border: 1px solid var(--border); }

/* ——— CONTACT FORM ——— */
.contact-form {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  max-width: 680px;
}
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
  color: var(--dark);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: 'Lato', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--cream);
  margin-bottom: 18px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ——— GENERAL INFO PAGE ——— */
.info-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 12px;
}
.info-section-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.info-section-card h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.info-section-card ul { list-style: none; }
.info-section-card ul li {
  padding: 5px 0;
  color: var(--gray);
  font-size: .95rem;
}
.info-section-card ul li::before { content: '✓ '; color: var(--red); font-weight: 700; }

/* ——— FOOTER ——— */
footer {
  background: var(--dark);
  color: #bbb;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links li { font-size: .92rem; }
.footer-links li a {
  color: #bbb;
  transition: color .15s, padding-left .15s;
  display: inline-block;
}
.footer-links li a:hover { color: var(--gold); padding-left: 4px; }
footer h4 {
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
footer p, footer li { font-size: .9rem; line-height: 1.85; }
footer ul { list-style: none; }
footer ul li a { color: #bbb; transition: color .15s; }
footer ul li a:hover { color: var(--gold); }
footer .footer-logo-link {
  display: inline-block;
  background: var(--white);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  line-height: 0;
}
footer img.footer-logo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #bbb;
  font-size: .85rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--gold); color: var(--dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #888;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--gold); }

/* ——— MAP ——— */
.map-embed {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 8px;
  margin-top: 24px;
}

/* ——— NOTICE BOXES ——— */
.notice {
  background: var(--light);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 14px 20px;
  color: var(--gray);
  font-size: .92rem;
  margin-bottom: 24px;
}
.notice strong { color: var(--dark); }

/* ——— CATERING PAGE ——— */
.catering-details {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.catering-details h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--red);
}

/* ——— LEGAL PAGES ——— */
.legal-content {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  color: var(--red);
  margin: 24px 0 6px;
}
.legal-content p { color: var(--gray); margin-bottom: 10px; }

/* ——— UTILITY ——— */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-32 { margin-bottom: 32px; }
.red   { color: var(--red); }

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-top: 2px solid var(--red);
    padding: 16px;
    gap: 2px;
    z-index: 998;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-h));
  }
  .nav-toggle { display: flex; }
  .hours-today { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .menu-layout { flex-direction: column; }
  .menu-sidebar { width: 100%; position: static; }
}
@media (max-width: 600px) {
  nav { padding: 0 12px; }
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  .contact-form { padding: 24px; }
  /* Compact badge for narrow phones */
  .nav-status.populated { gap: 6px; }
  .hours-status {
    font-size: .66rem;
    padding: 3px 9px;
    letter-spacing: .06em;
  }
  .nav-left { gap: 8px; }
  .nav-logo img { height: 44px; }
}
