/**
 * ChakraPlus Layout Styles
 * Header, Mega-Menu, Topbar, Sticky Bars, Floating WhatsApp, Scroll-To-Top, Footer
 */

/* 1. Announcement / Assurance Bar */
.cp-assurance-bar {
  background-color: #0E0E0E;
  color: var(--cp-silver);
  font-size: 0.8rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-assurance-bar a {
  color: var(--cp-silver);
  text-decoration: none;
  transition: color var(--cp-transition-standard);
}

.cp-assurance-bar a:hover {
  color: var(--cp-accent);
}

.cp-assurance-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.cp-assurance-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cp-gold-gradient);
  display: inline-block;
  box-shadow: 0 0 6px var(--cp-accent);
}

/* 2. Main Desktop Header */
.cp-header {
  background: rgba(20, 20, 20, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all var(--cp-transition-standard);
  backdrop-filter: blur(14px);
}

.cp-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(229, 178, 39, 0.25);
  background: rgba(14, 14, 14, 0.98);
}

.cp-navbar {
  padding: 0.55rem 0;
}

/* Brand Logo with Official Image */
.cp-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.cp-logo-img {
  height: 48px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform var(--cp-transition-standard);
}

.cp-brand-logo:hover .cp-logo-img {
  transform: scale(1.03);
}

/* Desktop Navbar: Strictly Side-By-Side, Compact Font Size, No Line Wrapping */
.cp-navbar .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.15rem;
  margin: 0 auto;
}

.cp-nav-link {
  color: #E2E2E0 !important;
  font-weight: 600;
  font-size: 0.84rem !important; /* Reduced per user request */
  padding: 0.48rem 0.62rem !important;
  letter-spacing: 0.015em;
  white-space: nowrap !important; /* Strictly prevents unwanted multi-line wrapping */
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  transition: all var(--cp-transition-standard);
  border-radius: var(--cp-radius-xs);
}

.cp-nav-link:hover {
  color: var(--cp-accent) !important;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.cp-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cp-gold-gradient);
  transition: all var(--cp-transition-standard);
  transform: translateX(-50%);
  border-radius: 2px;
}

.cp-nav-link:hover::after,
.cp-nav-link.active::after {
  width: calc(100% - 1rem);
}

.cp-nav-link.active {
  color: var(--cp-accent) !important;
  font-weight: 700;
}

/* Mega Menu */
.has-mega-menu {
  position: static !important;
}

.cp-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #161616;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid var(--cp-accent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  padding: 2.2rem 0;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--cp-transition-standard), transform var(--cp-transition-standard);
  z-index: 1040;
}

.has-mega-menu:hover .cp-mega-menu,
.has-mega-menu:focus-within .cp-mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cp-mega-category-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-accent);
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
}

.cp-mega-item {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--cp-radius-sm);
  color: #E2E2E0;
  transition: all var(--cp-transition-micro);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.cp-mega-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--cp-accent);
  border-left-color: var(--cp-accent);
  transform: translateX(4px);
}

.cp-mega-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-mega-item-desc {
  font-size: 0.74rem;
  color: #999999;
  margin-top: 0.15rem;
}

/* Header Utilities */
.cp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cp-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--cp-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--cp-transition-standard);
  text-decoration: none;
  font-size: 0.95rem;
}

.cp-icon-btn:hover {
  background: rgba(229, 178, 39, 0.18);
  border-color: var(--cp-accent);
  color: var(--cp-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 178, 39, 0.25);
}

.cp-badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--cp-gold-gradient);
  color: #0E0E0E;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 3. Floating Sticky WhatsApp Button (Side Sticky) */
.cp-floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.cp-whatsapp-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--cp-transition-standard);
  position: relative;
}

.cp-whatsapp-bubble::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: cpWaPulse 2s infinite;
}

.cp-floating-whatsapp:hover .cp-whatsapp-bubble {
  transform: scale(1.1) rotate(5deg);
  background: #1ebe5d;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.cp-whatsapp-label {
  background: #181818;
  color: #FFFFFF;
  border: 1px solid rgba(229, 178, 39, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--cp-radius-pill);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--cp-transition-standard);
  pointer-events: none;
}

.cp-floating-whatsapp:hover .cp-whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes cpWaPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* 4. Floating Scroll-To-Top Button */
.cp-scroll-top {
  position: fixed;
  bottom: 6.2rem;
  right: 2.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #181818;
  border: 1.5px solid var(--cp-accent);
  color: var(--cp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--cp-transition-standard);
}

.cp-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cp-scroll-top:hover {
  background: var(--cp-gold-gradient);
  color: #0E0E0E;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(229, 178, 39, 0.4);
}

/* 5. Mobile Drawer */
.cp-mobile-drawer {
  background-color: #141414 !important;
  color: #FFFFFF;
  width: 320px !important;
  max-width: 85vw;
}

.cp-drawer-link {
  color: #E2E2E0;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all var(--cp-transition-micro);
}

.cp-drawer-link:hover, .cp-drawer-link.active {
  color: var(--cp-accent);
  background: rgba(255, 255, 255, 0.04);
}

/* 6. Sticky Mobile Action Bar */
.cp-mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 1rem;
  z-index: 1020;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

/* 7. Footer */
.cp-footer {
  background-color: #0F0F0F;
  color: var(--cp-silver);
  border-top: 3px solid var(--cp-accent);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.cp-footer-title {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.cp-footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cp-gold-gradient);
}

.cp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-footer-links li {
  margin-bottom: 0.65rem;
}

.cp-footer-links a {
  color: #B5B6B4;
  font-size: 0.9rem;
  transition: all var(--cp-transition-micro);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cp-footer-links a:hover {
  color: var(--cp-accent);
  transform: translateX(4px);
}

.cp-footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #888888;
}

/* Cookie Banner */
.cp-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 440px;
  background-color: #181818;
  color: #FFFFFF;
  border: 1px solid rgba(229, 178, 39, 0.4);
  border-radius: var(--cp-radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  z-index: 1090;
  display: none;
}
