/* ==========================================================================
   SAFESTOPHELIX - LAYOUT, NAVIGATION & FOOTER
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER & FLOATING NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px -4px rgba(18, 20, 26, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo svg, .brand-logo img {
  width: 34px;
  height: 34px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover svg {
  transform: rotate(15deg) scale(1.05);
}

.brand-logo .logo-accent {
  color: var(--helix-blue);
  font-weight: 700;
}

/* Primary Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-link svg.chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   MEGA DROPDOWN PANELS
   -------------------------------------------------------------------------- */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-dropdown.w-product {
  width: 680px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mega-dropdown.w-solutions {
  width: 540px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mega-dropdown.w-simple {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-card:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--helix-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-card:hover .dropdown-icon {
  background: var(--helix-blue);
  color: #FFFFFF;
}

.dropdown-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.dropdown-info p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 10px;
  cursor: pointer;
  z-index: 1200;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1050;
  padding: 6rem 2rem 3rem;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-section {
  margin-bottom: 2rem;
}

.mobile-menu-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   FOOTER SECTION
   -------------------------------------------------------------------------- */
.site-footer {
  background: #111317;
  color: #E2E8F0;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4.5rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9375rem;
  max-width: 320px;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94A3B8;
  font-size: 0.9375rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-office-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.footer-office-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: 2rem;
  align-items: center;
}

.footer-office-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.footer-office-address {
  color: #94A3B8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-contacts-list a {
  color: var(--helix-blue-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748B;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94A3B8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-office-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
