/* =============================================================
   GELCAM — Layout: top bar, header/nav, mobile menu, footer
   ============================================================= */

/* ---------- ANNOUNCEMENT BAR ---------- */
.topbar {
  background: var(--hero-to);
  color: rgba(255,255,255,0.7);
  font-size: var(--t-xs);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__in {
  max-width: var(--content); margin: 0 auto;
  padding: 9px var(--s-6);
  display: flex; align-items: center; gap: var(--s-5);
}
.topbar a { color: rgba(255,255,255,0.7); transition: color 140ms; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ic { width: 14px; height: 14px; color: var(--g-red); }
.topbar .socials { margin-left: auto; display: flex; gap: var(--s-4); }
.topbar .socials a { display: grid; place-items: center; }
.topbar .socials .ic { width: 15px; height: 15px; color: rgba(255,255,255,0.7); }
.topbar .socials a:hover .ic { color: var(--g-red); }
@media (max-width: 820px) { .topbar .tb-hide { display: none; } }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background-color 320ms var(--ease), border-color 320ms;
}
.nav {
  max-width: var(--content); margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--s-6);
  display: flex; align-items: center; gap: var(--s-6);
}
.nav__links {
  display: flex; align-items: center; gap: var(--s-2);
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color 140ms var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.active { color: var(--text); }
.nav__link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--g-red); border-radius: 2px;
  box-shadow: 0 0 10px var(--g-red);
}

/* dropdown */
.nav__dd { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.nav__dd:hover .nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__panel a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font-sans); font-weight: 500;
}
.nav__panel a:hover { background: var(--surface-2); }
.nav__panel a small { color: var(--text-muted); font-size: var(--t-xs); }

.nav__actions { display: flex; align-items: center; gap: var(--s-3); }

/* theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; color: var(--text);
  transition: border-color 160ms, color 160ms, background 160ms;
}
.theme-toggle:hover { border-color: var(--g-red); color: var(--g-red); }
.theme-toggle .ic { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* cart button */
.cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--g-red); color: #fff; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 12px var(--g-red);
  transform: scale(0); transition: transform 220ms var(--ease);
}
.cart-btn.has .count { transform: scale(1); }

/* burger */
.burger { display: none; width: 42px; height: 42px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  place-items: center; }
.burger .ic { width: 20px; height: 20px; }

/* ---------- LOGO ---------- */
.logo { display: inline-flex; align-items: center; gap: 0; }
.logo svg { height: 30px; width: auto; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: var(--s-6);
  transform: translateX(100%); transition: transform 360ms var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu__top { display: flex; align-items: center; margin-bottom: var(--s-7); }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.01em;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--border); color: var(--text);
}
.mobile-menu a:active { color: var(--g-red); }
.mobile-menu .sub { font-size: 1rem; padding-left: var(--s-4); color: var(--text-muted); text-transform: none; }

@media (max-width: 940px) {
  .nav__links, .nav__dd { display: none; }
  .burger { display: grid; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--hero-to); color: rgba(255,255,255,0.62);
  position: relative; overflow: hidden;
}
.site-footer .grid-bg { mask-image: linear-gradient(180deg,#000,transparent); }
.footer-cta {
  position: relative; z-index: 1;
  background: var(--g-red);
}
.footer-cta .eyebrow { color: #fff !important; }
.footer-cta .eyebrow::before { background: #fff; }
.footer-cta h2 { color: #fff; }
.footer-cta p { color: rgba(255,255,255,0.88) !important; }
.footer-cta .btn--onred { background: #fff; color: var(--g-red); }
.footer-cta .btn--onred:hover { background: var(--hero-to); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5); }
.footer-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.55) !important; }
.footer-cta .btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff !important; color: #fff; }
.footer-main {
  position: relative; z-index: 1;
  max-width: var(--content); margin: 0 auto;
  padding: var(--s-9) var(--s-6) var(--s-7);
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: var(--s-8);
}
.footer-main h5 {
  color: #fff; font-size: var(--t-sm); text-transform: uppercase;
  letter-spacing: var(--track-eyebrow); font-family: var(--font-mono); font-weight: 500;
  margin-bottom: var(--s-5);
}
.footer-main a { color: rgba(255,255,255,0.62); display: block; padding: 6px 0; transition: color 140ms; }
.footer-main a:hover { color: var(--g-red-bright); }
.footer-about p { color: rgba(255,255,255,0.55); font-size: var(--t-sm); max-width: 38ch; }
.footer-contact .line { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; font-size: var(--t-sm); }
.footer-contact .ic { width: 16px; height: 16px; color: var(--g-red); flex: none; margin-top: 3px; }
.footer-bottom {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-5) var(--s-6);
  max-width: var(--content); margin: 0 auto;
  display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center;
  font-size: var(--t-xs); color: rgba(255,255,255,0.4);
}
@media (max-width: 820px) { .footer-main { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--g-red-deep), var(--g-red-bright));
  z-index: 200; box-shadow: 0 0 12px var(--g-red);
}

/* ---------- FLOATING WHATSAPP ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6);
  transition: transform 200ms var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .ic { width: 28px; height: 28px; }
.wa-fab.shift { bottom: 88px; }
