/**
 * Site chrome fixes (header, mobile nav drawer, footer) — 2026-10-25.
 * Loaded after order-reference.css. Presentation only.
 */

/* ── Footer: a single brand logo on every page ── */
.site-footer .footer-mascot { display: none !important; }

/* ── Footer: identical on every page (2026-10-26) ──
   The homepage footer (home-reference.css) is the reference. The same layout,
   text and alignment are applied to every page (cream/md pages, WooCommerce,
   configurator), overriding the per-page variants from header-footer.css,
   order-reference.css (cart) and the earlier non-home single-column rules. */
body[class] footer.site-footer { background: #050706; color: #c8ccc8; border-top: 1px solid #283329; padding: 18px 0 0; text-align: start; }
body[class] footer.site-footer .footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px 24px; grid-template-columns: none; max-width: 1200px; text-align: start;
}
body[class] footer.site-footer .footer-brand { flex: 1 1 250px; max-width: 320px; grid-column: auto; text-align: start; }
body[class] footer.site-footer .footer-brand .logo-row { font-size: 18px; font-weight: 700; letter-spacing: 2px; color: #f5f5f0; margin: 0; padding: 0; }
body[class] footer.site-footer .footer-brand .foodie-brand-picture { margin: 0; padding: 0; }
body[class] footer.site-footer .footer-brand .foodie-brand-image { height: 75px !important; width: auto !important; object-position: center; }
body[class] footer.site-footer .footer-socials { display: flex; margin: 7px 0 0; gap: 10px; grid-column: auto; }
body[class] footer.site-footer .footer-socials a { display: block; color: #f7f5ef; font-size: 16px; line-height: 24px; }
body[class] footer.site-footer a { color: #f7f5ef; }
body[class] footer.site-footer .footer-socials svg { display: inline; vertical-align: baseline; width: 17px; height: 17px; }
body[class] footer.site-footer .footer-col { flex: 0 1 auto; min-width: 90px; text-align: start; }
body[class] footer.site-footer .footer-col h4 {
  margin: 0 0 7px; padding: 0; font-size: 10px; font-weight: 600; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
body[class] footer.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
body[class] footer.site-footer .footer-col li { margin: 0 0 5px; padding: 0; font-size: 11px; line-height: 1.5; color: #c8ccc8; }
body[class] footer.site-footer .footer-col a { color: #f7f5ef; font-size: 11px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
body[class] footer.site-footer .footer-col a:hover { color: #fff; }
body[class] footer.site-footer .footer-badges { margin-top: 10px; padding: 6px 0; }
body[class] footer.site-footer .footer-badges .container { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
body[class] footer.site-footer .footer-badges img { height: 25px; width: auto; }
body[class] footer.site-footer .footer-bottom { margin-top: 6px; padding: 10px 0; font-size: 10px; line-height: 1.5; text-align: center; color: #bfc4ba; border-top: 1px solid rgba(255, 255, 255, 0.08); }
body[class] footer.site-footer .footer-bottom p { margin: 10px 0; font-size: inherit; line-height: inherit; color: inherit; }
@media (max-width: 1024px) {
  body[class] footer.site-footer .footer-inner { gap: 16px; }
  body[class] footer.site-footer .footer-brand {
    flex-basis: 100%; max-width: none; display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  }
  body[class] footer.site-footer .footer-socials { margin: 0; }
  body[class] footer.site-footer .footer-col { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  body[class] footer.site-footer { padding-top: 14px; }
  body[class] footer.site-footer .footer-inner { gap: 12px 16px; }
  body[class] footer.site-footer .footer-brand { grid-template-columns: 1fr auto; gap: 6px; }
  body[class] footer.site-footer .footer-col { flex: 1 1 calc(50% - 16px); min-width: 0; }
  body[class] footer.site-footer .footer-col ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  body[class] footer.site-footer .footer-col li { margin: 0; }
  body[class] footer.site-footer .footer-col h4 { margin-bottom: 5px; }
  body[class] footer.site-footer .footer-badges .container { gap: 8px; }
  body[class] footer.site-footer .footer-badges img { height: 23px; }
}

/* ── Header: dark bar on all pages (same shade as cart/checkout) ── */
body:not(.home):not(.woocommerce-checkout) .top-bar {
  background: #080c0a;
  border-bottom: 1px solid #303730;
}
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-nav a,
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-icon,
body:not(.home):not(.woocommerce-checkout) .top-bar .city-selector { color: #f5f5f2; }
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-nav a:hover { color: #fff; }
body:not(.home):not(.woocommerce-checkout) .top-bar .city-selector { background: rgba(255,255,255,0.06); }
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-icon:hover { background: rgba(255,255,255,0.06); }
body:not(.home):not(.woocommerce-checkout) .top-bar .burger { color: #fff; }

/* ── Header: logo fits inside the bar ── */
body:not(.home):not(.woocommerce-checkout) .top-bar { height: 64px; }
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: auto !important; width: auto; min-width: 0 !important;
}
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-logo .foodie-brand-image { height: 52px !important; }
@media (max-width: 768px) {
  body:not(.home):not(.woocommerce-checkout) .top-bar { height: 60px; }
  body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-logo .foodie-brand-image { height: 48px !important; }
}

/* ── Mobile nav drawer: dark ── */
.nav-overlay .nav-drawer { background: #080c0a; border-right: 1px solid #303730; }
.nav-drawer .drawer-close { color: #fff; }
.nav-drawer .drawer-close:hover { color: #ff790c; }
.nav-drawer .drawer-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-drawer .drawer-links a { color: #fff; transition: color 0.2s; }
.nav-drawer .drawer-links a:hover,
.nav-drawer .drawer-links a:focus-visible,
.nav-drawer .drawer-links a:active,
.nav-drawer .drawer-links a.is-current { color: #ff790c; }

/* Anchor the centred logo to the bar itself, not to the sticky .top-bar,
   so it stays inside the bar even if .top-bar is not positioned. */
body:not(.home):not(.woocommerce-checkout) .top-bar .top-bar-inner { position: relative; }
