/* =====================================================
   OHC Labs — Shared Navbar + Footer Styles
   Used by all public pages (not dashboard/portals)
   ===================================================== */

/* ─── TOP BAR ─── */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar-link {
  color: #fff;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: rgba(204,20,20,0.5);
  transition: var(--ease);
}
.topbar-link:hover { background: var(--accent); }
@media(max-width:768px) { .topbar { display:none; } }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(27,46,107,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--ease);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.navbar.scrolled {
  background: rgba(17,30,74,0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
/* OHC Logo image in navbar */
.brand-logo-img {
  height: 46px;
  width: auto;
  background: white;
  border-radius: 12px;
  padding: 5px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #FF4444);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(204,20,20,0.4);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}
/* ─── MOBILE NAVBAR: prevent overlap ─── */
@media (max-width: 640px) {
  .brand-text { display: none; }
  #navSignIn { display: none !important; }
  .nav-actions .btn-accent { font-size: 0.78rem; padding: 7px 12px; }
  .nav-actions .btn-accent i { display: none; }
}
@media (max-width: 480px) {
  .brand-logo-img { height: 36px; padding: 3px 7px; border-radius: 9px; }
  .nav-actions .btn-accent { font-size: 0.74rem; padding: 6px 10px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .brand-text { display: none; }
  .brand-logo-img { height: 40px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--r-md);
  transition: var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255,255,255,0.2); }
.btn-icon svg { width: 18px; height: 18px; }

.mobile-menu-btn { display: none; }

@media(max-width:900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(17,30,74,0.99);
    padding: 12px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
  }
}

/* ─── ICON UTILS ─── */
.icon-xs { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }

/* ─── FOOTER ─── */
.footer { background: var(--primary-dark); color: white; }
.footer-top { padding: var(--sp-3xl) 0 var(--sp-2xl); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
}
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: var(--sp-md); line-height: 1.7; }

.app-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  padding: 8px 14px;
  color: white;
  transition: var(--ease);
  text-decoration: none;
}
.app-badge:hover { background: rgba(255,255,255,0.15); }
.app-badge svg { width: 20px; height: 20px; }
.app-badge .text-xs { font-size: 0.65rem; color: rgba(255,255,255,0.6); display: block; }
.app-badge strong { font-size: 0.82rem; display: block; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--sp-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--ease-fast);
  text-decoration: none;
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-lg) 0;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.82rem; }

.cert-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}
.cert-tag svg { width: 12px; height: 12px; }

@media(max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }
}
@media(max-width:768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom .flex-between { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── FAB WHATSAPP ─── */
.fab-whatsapp {
  position: fixed;
  bottom: 84px; /* above bottom-nav on mobile */
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 90;
  transition: var(--ease);
  animation: float 3s ease-in-out infinite;
  text-decoration: none;
}
.fab-whatsapp:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
@media(min-width:641px) { .fab-whatsapp { bottom: 24px; right: 24px; width: 56px; height: 56px; } }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  padding: 10px 0 4px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: white; font-weight: 600; }

/* ─── FLOATING CART BTN ─── */
.floating-cart-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-full);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(150px) scale(0.8);
  opacity: 0;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}
.floating-cart-btn.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.floating-cart-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: var(--primary-dark);
}
.fc-badge {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .floating-cart-btn {
    bottom: 90px; /* Above whatsapp */
  }
}
