/*
Theme Name:  Joe Boos
Theme URI:   https://joeboos.com
Description: Custom theme for Joe Boos Kosher Catering. Sticky white header, clean footer with admin-editable links, and seamless integration with the Joe Boos Page Editor plugin.
Version:     1.0.0
Author:      Joe Boos
License:     GPL2
Text Domain: joeboos
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #0a0a0a;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ─── STICKY HEADER ─── */
#jb-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
  /* Force header to always span full viewport, never constrained by WP theme */
  width: 100vw;
  margin-left: 0 !important;
}
#jb-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

.jb-header-inner {
  /* 3-column layout: logo | hamburger | action buttons */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  height: 72px;
}

/* RIGHT ACTIONS GROUP */
.jb-header-actions {
  display: flex; align-items: center; gap: 2px; justify-self: end;
}

/* LOGO — left column */
.jb-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  letter-spacing: 0.08em; color: #0a0a0a;
  text-decoration: none; flex-shrink: 0;
  justify-self: start;
}
.jb-logo img { height: 48px; width: auto; }

/* HAMBURGER — center column, always visible on all screen sizes */
.jb-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
  justify-self: center;
}
.jb-hamburger span {
  display: block; width: 26px; height: 2px;
  background: #0a0a0a; transition: all 0.3s;
}
.jb-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.jb-hamburger.open span:nth-child(2) { opacity: 0; }
.jb-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Hide the old desktop nav — hamburger replaces it on all screens */
.jb-nav { display: none !important; }

/* BOOK NOW BUTTON — right column */
.jb-book-btn {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #ffffff;
  background: #0a0a0a; padding: 13px 28px;
  text-decoration: none; border: 1px solid #0a0a0a;
  transition: background 0.3s; white-space: nowrap;
  display: inline-block; flex-shrink: 0;
}
.jb-book-btn:hover { background: #333333; color: #fff; }

/* ORDER FOOD BUTTON */
.jb-order-btn {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #ffffff;
  background: #0a0a0a; padding: 13px 28px;
  text-decoration: none; border: 1px solid #0a0a0a;
  transition: all 0.3s; white-space: nowrap; flex-shrink: 0;
  display: inline-block;
}
.jb-order-btn:hover { background: #333333; color: #ffffff; }

/* SLIDE-OUT DRAWER — full-width, slides down from header */
.jb-mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 9998;
  padding: 0;
  flex-direction: column;
  /* Slide animation */
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.jb-mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Nav items in drawer */
.jb-mobile-menu ul {
  list-style: none; margin: 0; padding: 0;
}
.jb-mobile-menu li {
  border-bottom: 1px solid #f0f0f0;
}
.jb-mobile-menu li:last-child { border-bottom: none; }
.jb-mobile-menu a:not(.jb-book-btn) {
  display: block;
  padding: 18px 48px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: #0a0a0a;
  text-decoration: none;
  transition: background 0.2s;
}
.jb-mobile-menu a:not(.jb-book-btn):hover { background: #f7f7f5; }
.jb-mobile-menu .jb-book-btn {
  margin: 24px 48px; text-align: center; display: block;
}

/* CONTENT AREA — push down below fixed header */
#jb-content { padding-top: 72px; }
/* Pages that use full-bleed hero: the hero itself handles the overlap */
body.has-hero #jb-content { padding-top: 0; }

/* ─── FOOTER ─── */
#jb-footer {
  background: #0a0a0a;
  padding: 72px 48px 36px;
}
.jb-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
}

.jb-footer-brand {}
.jb-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600;
  color: #ffffff; margin-bottom: 14px; letter-spacing: 0.06em;
  display: block; text-decoration: none;
}
.jb-footer-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.jb-footer-tagline {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.35); line-height: 1.8; margin-bottom: 24px;
}
.jb-footer-contact p {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.jb-footer-contact a { color: #ffffff; text-decoration: none; }
.jb-footer-contact a:hover { text-decoration: underline; }
.jb-footer-social { display: flex; gap: 14px; margin-top: 20px; }
.jb-footer-social a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.3s;
}
.jb-footer-social a:hover { color: #ffffff; }

.jb-footer-col h5 {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px; font-weight: 600;
}
.jb-footer-col ul { list-style: none; padding: 0; margin: 0; }
.jb-footer-col li { margin-bottom: 12px; }
.jb-footer-col a {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.3s;
}
.jb-footer-col a:hover { color: #ffffff; }

.jb-footer-bottom {
  max-width: 1280px; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.05em;
}
.jb-kosher-badge {
  border: 1px solid rgba(255,255,255,0.15); padding: 6px 16px;
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .jb-header-inner { padding: 0 24px; }
  .jb-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  #jb-footer { padding: 56px 24px 32px; }
  .jb-mobile-menu a:not(.jb-book-btn) { padding: 16px 24px; }
  .jb-mobile-menu .jb-book-btn { margin: 20px 24px; }
}
@media (max-width: 600px) {
  .jb-footer-inner { grid-template-columns: 1fr; }
  .jb-footer-bottom { flex-direction: column; text-align: center; }
}
