/* Furnichrr — global site chrome (header, footer, WhatsApp button, language banners).
   Loaded together with shared/site-chrome.js on every page that opts in. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  background: #FAF3E8;
  color: #1A0A0E;
  margin: 0;
}
::selection { background: #C4862A; color: #fff; }

/* Reserve room for the fixed-top chrome (call-bar mobile-only + banner + nav).
   Real heights are set by the React chrome at runtime via --site-chrome-h; this
   is a sane starting value so layout doesn't jump too much before mount. */
:root { --site-chrome-h: 110px; }
body.site-chrome-ready { padding-top: var(--site-chrome-h); }
@media (min-width: 768px) { :root { --site-chrome-h: 95px; } }

/* Per-page styles on legacy pages still set `main { padding-top: calc(var(--bar-h) + var(--nav-h)) }`
   from when each page rendered its own fixed navbar. The shared chrome now reserves that space on
   <body>, so the per-page rule double-pads and leaves a large gap below the navbar. Zero it out. */
body.site-chrome-ready main { padding-top: 24px !important; }
@media (min-width: 768px) { body.site-chrome-ready main { padding-top: 32px !important; } }

/* WhatsApp button pulse + lang tutorial fade-in (used by inline animations) */
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}
@keyframes lang-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile bottom nav (mirrors index.html) */
@media (max-width: 767px) {
  body { padding-bottom: 64px !important; }
  .mob-nav { display: flex !important; }
}
.mob-nav {
  display: none;
  position: fixed;
  top: auto; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: #1A0A0E;
  
  z-index: 9999;
  align-items: stretch;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
}
.mob-nav a, .mob-nav button {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  background: none; border: none;
  color: #FAF3E8;
  text-decoration: none;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav a.active { color: #C4862A; }
.mob-nav a:active { color: #D9A24E; }
.mob-nav svg { width: 22px; height: 22px; flex-shrink: 0; }
