/* ============================================================
   Jungle Land redesign — layout: topbar, header/nav, drawer,
   ticker, page hero shell, footer.
   ============================================================ */

/* ---- top info bar ---- */
.topbar {
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  min-height: 40px;
  padding: 6px var(--pad-x);
  color: var(--topbar-tint);
  font-size: 13px;
  font-weight: 700;
}
.topbar .sep { color: #5E7D5A; }
.topbar a { color: var(--sun); font-weight: 700; }
.topbar a:hover { color: #fff; }

@media (max-width: 720px) {
  .topbar .topbar-item { display: none; }
  .topbar .topbar-item:first-child, .topbar a { display: inline; }
  .topbar .sep { display: none; }
  .topbar { gap: 6px 16px; }
}

/* ---- sticky header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--sh-header); }

/* The logo hangs over the header edge: the wrapper reserves a small slot
   (so the bar stays compact), the image overflows below the bar. */
.site-logo {
  display: block;
  flex: none;
  position: relative;
  width: 170px;
  height: 56px;
}
.site-logo img {
  position: absolute;
  left: 0;
  top: -35px;
  height: 128px;
  width: auto;
  max-width: none; /* opt out of the global img cap so the logo never squishes */
  transition: height .3s, top .3s;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
  z-index: 2;
}
/* when the bar sticks to the viewport top there is no room above it */
.site-header.is-scrolled .site-logo img { height: 88px; top: 2px; }

.site-nav {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 12px;
}
.site-nav a { color: var(--cream-92); }
.site-nav a:hover { color: var(--sun); }
.site-nav a.is-active { color: var(--sun); }

.header-cta { display: flex; gap: 10px; align-items: center; flex: none; }
.header-cta .btn { font-size: 14px; }

/* cart button (rendered only while the session cart has items) */
.btn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: rgba(253, 249, 237, .12);
  color: var(--cream);
  transition: background .2s;
}
.btn-cart:hover { background: rgba(253, 249, 237, .24); color: var(--sun); }
.btn-cart .cart-n {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

/* 8 nav items: tighten a notch before the burger breakpoint */
@media (max-width: 1420px) {
  .site-nav { font-size: 14px; gap: 8px 15px; }
}

/* hamburger */
.nav-burger {
  display: none;
  flex: none;
  background: none;
  border: 0;
  width: 46px; height: 42px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-burger span {
  display: block;
  height: 3.5px;
  border-radius: 4px;
  background: var(--cream);
  transition: transform .25s, opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 1180px) {
  .site-nav { display: none; }
  .nav-burger { display: flex; }
  .header-cta .btn-ghost { display: none; }
  .site-logo { width: 128px; height: 50px; }
  .site-logo img { height: 96px; }
  .site-header.is-scrolled .site-logo img { height: 72px; }
}
@media (max-width: 420px) {
  .header-cta .btn { padding: 10px 14px; font-size: 13px; }
  .site-logo { width: 100px; height: 46px; }
  .site-logo img { height: 78px; }
  .site-header.is-scrolled .site-logo img { height: 62px; }
}

/* ---- mobile drawer ---- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 30, 16, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(320px, 88vw);
  background: var(--ink);
  padding: 64px 24px 26px;
  transform: translateX(105%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  border: 2px solid rgba(253, 249, 237, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .2s;
}
.drawer-close:hover { border-color: var(--sun); color: var(--sun); transform: rotate(90deg); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

.drawer a.drawer-link {
  color: var(--cream-92);
  font-weight: 700;
  font-size: 17px;
  padding: 11px 6px;
  border-bottom: 1px solid rgba(253, 249, 237, .08);
}
.drawer a.drawer-link:hover, .drawer a.drawer-link.is-active { color: var(--sun); }
.drawer .drawer-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.drawer .drawer-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--sun);
  margin-top: 16px;
  text-align: center;
}

/* ---- ticker (marquee) ---- */
.ticker {
  background: var(--accent);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  padding-right: 36px;
  animation: marquee 28s linear infinite;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track .star { color: #FFD9A8; }
@media (prefers-reduced-motion: reduce) {
  .ticker { display: none; }
}

/* ---- page hero shell (inner pages) ---- */
.page-hero {
  position: relative;
  background-color: var(--sand);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: clamp(64px, 10vw, 120px) var(--pad-x);
  text-align: center;
}
.page-hero .eyebrow {
  background: rgba(23, 66, 31, .88);
  color: var(--topbar-tint);
  box-shadow: 0 6px 18px rgba(23, 66, 31, .3);
}
.page-hero .eyebrow.eyebrow-sun { color: var(--sun); }
.page-hero h1 {
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(253, 249, 237, .95), 0 0 46px rgba(253, 249, 237, .85);
  margin: 16px 0 0;
}
.page-hero .sub {
  color: #33402C;
  text-shadow: 0 1px 12px rgba(253, 249, 237, .95), 0 0 30px rgba(253, 249, 237, .9);
  max-width: 640px;
  margin: 14px auto 0;
  font-size: clamp(15px, 2.2vw, 18px);
}
.page-hero hero-fx {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero > * { position: relative; }

/* ---- footer ---- */
.site-footer { background: var(--ink-deep); margin-top: 70px; }
.site-footer .footer-grid {
  max-width: calc(var(--w-content) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 44px var(--pad-x) 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .footer-logo img { height: 120px; width: auto; }
.site-footer .footer-addr {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--footer-dim);
  margin: 12px 0 0;
  line-height: 1.7;
}
.site-footer .footer-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--sun);
  margin: 8px 0 0;
}
.site-footer .footer-phone:hover { color: #fff; }
.site-footer .footer-rating {
  margin: 10px 0 0;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--footer-dim);
}
.site-footer .footer-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
}
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0 0;
}
.site-footer .footer-links a {
  color: var(--on-dark-dim);
  font-weight: 600;
  font-size: 14px;
}
.site-footer .footer-links a:hover, .site-footer .footer-links a.is-active { color: var(--sun); }
.site-footer .footer-note {
  margin: 16px 0 0;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--footer-dim);
  line-height: 1.6;
}
.site-footer .footer-legal {
  border-top: 1px solid rgba(253, 249, 237, .1);
  padding: 16px var(--pad-x);
  text-align: center;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--footer-faint);
}

@media (max-width: 980px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.site-footer .footer-credit {
  padding: 0 var(--pad-x) 16px;
  text-align: center;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--footer-faint);
}
.site-footer .footer-credit a { color: inherit; }
.site-footer .footer-credit a:hover { color: var(--sun); }
