#navbar{}

#navbar .brand-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: 520px !important;
}

#navbar .brand-text {
  display: none !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  line-height: 1.08 !important;
  min-width: 0 !important;
  max-width: 280px !important;
  transform: none !important;
}

@media (min-width: 768px) {
  #navbar .brand-text {
    display: flex !important;
  }
}

html[dir="rtl"] #navbar .brand-text {
  align-items: flex-start !important;
  text-align: right !important;
}

#navbar .brand-company-name,
#navbar .brand-company-subtitle {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

#navbar .brand-company-name {
  color: #f5f5f0 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}

#navbar .brand-company-subtitle {
  color: #d4af37 !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

#navbar .brand-link:hover .brand-text,
#navbar .brand-link:focus-visible .brand-text {
  transform: none !important;
}

#partners.sika-section {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#partners .sika-showcase,
#partners .sika-showcase-row {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#gpco-tech {
  scroll-margin-top: 76px !important;
}

#gpco-tech.tech-section {
  min-height: 0 !important;
  display: block !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 64px !important;
}

#gpco-tech .tech-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transform: none !important;
}

#gpco-tech .tech-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 28px !important;
  transform: none !important;
}

#gpco-tech .section-badge {
  margin-top: 0 !important;
}

#gpco-tech .tech-binary-canvas {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#gpco-tech .tech-gridlines {
  opacity: 0.08 !important;
}

#gpco-tech .tech-orbit {
  opacity: 0.22 !important;
}

#gpco-tech.tech-section::before {
  background: linear-gradient(180deg, rgba(9,15,30,0.60), rgba(9,15,30,0.78)) !important;
}

#gpco-tech.tech-section::after {
  background: linear-gradient(90deg, rgba(9,15,30,0.18), transparent 30%, transparent 70%, rgba(9,15,30,0.18)) !important;
}

/* Mobile drawer: fix collapsed inline links and keep the menu premium. */
#navbar + div.xl\:hidden {
  position: fixed !important;
  top: 104px !important;
  left: 10px !important;
  right: 10px !important;
  z-index: 60 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(10,15,30,0.98), rgba(7,12,26,0.96)) !important;
  border: 1px solid rgba(201,168,76,0.16) !important;
  box-shadow: 0 22px 48px rgba(0,0,0,0.34) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

#navbar + div.xl\:hidden .mobile-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  color: #f5f5f0 !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 14px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

#navbar + div.xl\:hidden .mobile-link:hover,
#navbar + div.xl\:hidden .mobile-link:focus-visible {
  color: #d4af37 !important;
  background: rgba(201,168,76,0.12) !important;
  border-color: rgba(201,168,76,0.28) !important;
}

@media (max-width: 767px) {
  #navbar .brand-text {
    display: none !important;
  }

  #navbar .brand-link {
    max-width: none !important;
    gap: 8px !important;
  }

  .floating-whatsapp-v2 {
    width: 56px !important;
    height: 56px !important;
    right: 16px !important;
    left: auto !important;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    z-index: 45 !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.08) !important;
  }

  html[dir="rtl"] .floating-whatsapp-v2 {
    right: auto !important;
    left: 16px !important;
  }

  .floating-whatsapp-v2 .floating-wa-text {
    display: none !important;
  }

  .floating-whatsapp-v2 .floating-wa-icon {
    width: 100% !important;
    height: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 27px !important;
  }

  #gpco-dev-credit {
    display: block !important;
    max-width: 92vw !important;
    padding-inline: 18px !important;
    padding-bottom: 96px !important;
    line-height: 1.9 !important;
  }
}

@media (max-width: 640px) {
  #gpco-tech {
    scroll-margin-top: 68px !important;
  }

  #gpco-tech.tech-section {
    padding-top: 0 !important;
    padding-bottom: 48px !important;
  }

  #gpco-tech .tech-header {
    margin-bottom: 22px !important;
  }

  #navbar + div.xl\:hidden {
    top: 96px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #navbar + div.xl\:hidden .mobile-link {
    min-height: 44px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 380px) {
  #navbar + div.xl\:hidden {
    grid-template-columns: 1fr !important;
  }
}

/* Final mobile fixes targeting the real DOM structure. */
#navbar > div.xl\:hidden {
  position: fixed !important;
  top: 98px !important;
  left: 12px !important;
  right: 12px !important;
  z-index: 65 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(201, 168, 76, 0.18) !important;
  background: linear-gradient(145deg, rgba(10, 15, 30, 0.99), rgba(7, 12, 26, 0.97)) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

#navbar > div.xl\:hidden .mobile-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #f7f5ec !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-spacing: normal !important;
  overflow-wrap: anywhere !important;
}

html[dir="rtl"] #navbar > div.xl\:hidden .mobile-link {
  direction: rtl !important;
}

#navbar > div.xl\:hidden .mobile-link:hover,
#navbar > div.xl\:hidden .mobile-link:focus-visible {
  color: #d7b659 !important;
  border-color: rgba(215, 182, 89, 0.32) !important;
  background: rgba(215, 182, 89, 0.12) !important;
}

@media (max-width: 420px) {
  #navbar > div.xl\:hidden {
    grid-template-columns: 1fr !important;
    top: 94px !important;
    max-height: calc(100vh - 112px) !important;
    overflow-y: auto !important;
  }
}

/* Center odd trust item on mobile, including the last Global Quality card. */
@media (max-width: 767px) {
  .trust-grid .trust-item:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: min(100%, 320px) !important;
    text-align: center !important;
  }

  .trust-grid .trust-item:last-child:nth-child(odd) > div {
    text-align: center !important;
  }
}

/* Restore a balanced gap between Partners and GPCO Tech. */
#partners.sika-section {
  padding-bottom: 1.5rem !important;
}

#gpco-tech.tech-section {
  padding-top: 4.25rem !important;
}

@media (max-width: 640px) {
  #partners.sika-section {
    padding-bottom: 1.85rem !important;
  }

  #gpco-tech.tech-section {
    padding-top: 3.75rem !important;
  }
}

/* Final centering for the single odd trust card on mobile. */
@media (max-width: 767px) {
  .trust-grid .trust-item:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: min(100%, 360px) !important;
    min-height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 24px 18px !important;
    text-align: center !important;
  }

  .trust-grid .trust-item:last-child:nth-child(odd) > i {
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
  }

  .trust-grid .trust-item:last-child:nth-child(odd) > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    text-align: center !important;
  }

  .trust-grid .trust-item:last-child:nth-child(odd) strong,
  .trust-grid .trust-item:last-child:nth-child(odd) span {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
}
