/* ═══════════════════════════════════════════════════════════════
   CRAZY JOE'S — NAV SYSTEM  v2.0
   Hamburger visible on ALL screen sizes (desktop + mobile).
   Desktop: logo left · nav links centre · phone + quote + hamburger right
   Mobile:  logo left · hamburger right  (links hidden behind drawer)
   ═══════════════════════════════════════════════════════════════ */

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

/* ── UTILITY BAR ─────────────────────────────────────────── */
.cj-utility {
  background: #1a1a1a;
  color: #b0a99a;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 36px;
  position: relative;
  z-index: 1000;
}
.cj-utility a { color: #b0a99a; text-decoration: none; }
.cj-utility a:hover { color: #fff; }
.cj-utility-left  { display: flex; align-items: center; gap: 20px; }
.cj-utility-right { display: flex; align-items: center; gap: 20px; }
.cj-utility-sep   { color: #3a3a3a; }

/* ── MAIN NAV BAR ────────────────────────────────────────── */
.cj-nav {
  background: #fff;
  border-bottom: 1px solid #e8e2da;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .2s;
}
.cj-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.cj-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  gap: 0;
}

/* ── LOGO ────────────────────────────────────────────────── */
.cj-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 1px;
  flex-shrink: 0;
  z-index: 2;
}
.cj-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: .05em;
  line-height: 1;
}
.cj-logo-sub {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #8a7f74;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ── DESKTOP NAV LINKS (centre) ──────────────────────────── */
.cj-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 72px;
  flex: 1;
  justify-content: center;
}
.cj-nav-links > li {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
}
.cj-nav-links > li > a {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #2a2520;
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.cj-nav-links > li > a:hover,
.cj-nav-links > li.active > a {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
}
.cj-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
  flex-shrink: 0;
}
.cj-nav-links > li:hover .cj-chevron {
  transform: rotate(225deg) translateY(2px);
}

/* ── RIGHT CTAs + HAMBURGER ──────────────────────────────── */
.cj-nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}
.cj-nav-phone {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
}
.cj-nav-phone:hover { color: #8a6a3e; }

.cj-btn-quote {
  background: #0a0a0a;
  color: #fff;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
  white-space: nowrap;
}
.cj-btn-quote:hover { background: #8a6a3e; }

/* ── HAMBURGER — visible on ALL screen sizes ─────────────── */
.cj-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: 1.5px solid #d8d2ca;
  border-radius: 3px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.cj-hamburger:hover {
  border-color: #0a0a0a;
  background: #f7f4f0;
}
.cj-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0a0a0a;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.cj-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cj-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cj-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MEGA MENU (desktop hover) ───────────────────────────── */
.cj-mega {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-top: 2px solid #0a0a0a;
  border-bottom: 1px solid #e8e2da;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  min-width: 760px;
  padding: 36px 40px 40px;
  display: none;
  z-index: 998;
  gap: 48px;
}
.cj-nav-links > li:hover .cj-mega { display: flex; }

.cj-mega-col { flex: 1; }
.cj-mega-label {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a7f74;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0ece6;
}
.cj-mega ul { list-style: none; padding: 0; margin: 0; }
.cj-mega ul li { margin-bottom: 10px; }
.cj-mega ul li a {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #3a3530;
  text-decoration: none;
  transition: color .12s;
  letter-spacing: .02em;
}
.cj-mega ul li a:hover { color: #0a0a0a; }
.cj-mega ul li a strong { font-weight: 600; color: #0a0a0a; }

.cj-mega-promo {
  flex: 0 0 220px;
  background: #f7f4f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}
.cj-mega-promo img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  margin-bottom: 16px;
}
.cj-mega-promo-label {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a7f74;
  margin-bottom: 6px;
}
.cj-mega-promo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.3;
  margin-bottom: 12px;
}
.cj-mega-promo-link {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0a0a0a;
}
.cj-mega-promo-link::after { content: ' →'; }

/* Simple dropdown */
.cj-dropdown {
  position: absolute;
  top: 72px;
  left: 0;
  background: #fff;
  border-top: 2px solid #0a0a0a;
  border-bottom: 1px solid #e8e2da;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  min-width: 240px;
  padding: 20px 0;
  display: none;
  z-index: 998;
}
.cj-nav-links > li:hover .cj-dropdown { display: block; }
.cj-dropdown li a {
  display: block;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 12px;
  color: #3a3530;
  text-decoration: none;
  padding: 9px 24px;
  letter-spacing: .02em;
  transition: background .1s, color .1s;
}
.cj-dropdown li a:hover { background: #f7f4f0; color: #0a0a0a; }

/* ══════════════════════════════════════════════════════════
   SLIDE-DOWN DRAWER MENU
   Works on BOTH desktop (hamburger click) and mobile.
   Key fix: NO display:none — use max-height animation only.
   ══════════════════════════════════════════════════════════ */
.cj-mobile-menu {
  background: #fff;
  border-top: 2px solid #0a0a0a;
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.cj-mobile-menu.open {
  max-height: 80vh;
  overflow-y: auto;
}

.cj-mobile-menu a {
  display: block;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 13px;
  color: #2a2520;
  text-decoration: none;
  padding: 14px 28px;
  border-bottom: 1px solid #f0ece6;
  letter-spacing: .03em;
  transition: background .1s, color .1s;
}
.cj-mobile-menu a:hover { background: #f7f4f0; color: #0a0a0a; }
.cj-mobile-menu a.cj-mobile-parent {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a7f74;
  background: #f7f4f0;
  padding: 12px 28px;
}
.cj-mobile-cta {
  display: block;
  background: #0a0a0a !important;
  color: #fff !important;
  text-align: center;
  padding: 16px 28px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  font-size: 11px !important;
  border: none !important;
  margin: 16px 24px 22px;
  transition: background .15s !important;
}
.cj-mobile-cta:hover { background: #8a6a3e !important; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
/* Hide centre nav links on ALL screen sizes — hamburger only */
.cj-nav-links { display: none !important; }

/* Tablets: tighten padding + hide phone number */
@media (max-width: 1100px) {
  .cj-nav-phone { display: none; }
  .cj-nav-inner { padding: 0 20px; }
  .cj-utility   { padding: 0 20px; font-size: 10px; }
}
/* Small mobile: hide quote button, simplify utility */
@media (max-width: 600px) {
  .cj-btn-quote    { display: none; }
  .cj-utility-left { display: none; }
  .cj-utility      { justify-content: center; }
}
