/**
 * Linekern marketing platform layer (not overwritten by extract-mockups).
 * Mobile nav, logo lockup, footer readability.
 */

.nav-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header logo: show mark + wordmark, readable size */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Dark nav (e.g. Kernset): show white mark only; light nav: dark mark only */
.nav-logo-mark--light {
  display: none;
}
.site-nav.dark .nav-logo-mark--dark {
  display: none;
}
.site-nav.dark .nav-logo-mark--light {
  display: block;
}

.nav-logo-img {
  height: clamp(22px, 3vw, 28px) !important;
  width: auto !important;
  max-width: min(260px, 58vw) !important;
  object-fit: contain;
}

/* Burger */
.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 8px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-burger {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-burger::before,
.nav-burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-burger::before {
  top: -6px;
}

.nav-burger::after {
  top: 6px;
}

.site-nav.dark .nav-menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-nav.dark .nav-burger,
.site-nav.dark .nav-burger::before,
.site-nav.dark .nav-burger::after {
  background: #fff;
}

.site-nav.is-open .nav-burger {
  background: transparent;
}

.site-nav.is-open .nav-burger::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-burger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 899px) {
  .site-nav.is-open {
    z-index: 100;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(66px + 10px);
    z-index: 90;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--gray-200);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    max-height: min(70vh, 560px);
    overflow: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    font-weight: 600;
    background: var(--gray-50);
    color: var(--ink);
  }

  .site-nav.dark.is-open .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .site-nav.is-open .nav-links {
    display: flex !important;
  }

  .site-nav.dark.is-open .nav-links {
    background: #0c1628;
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  }

  .site-nav.dark.is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 8, 16, 0.72);
    pointer-events: none;
  }

  .site-nav.dark.is-open .nav-links a {
    color: rgba(255, 255, 255, 0.86);
  }

  .site-nav.dark.is-open .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .nav-cta-btn,
  .nav-circle-cta {
    display: none;
  }
}

body.nav-drawer-open {
  overflow: hidden;
}
/* When the mobile nav drawer is open, hide the FAB so it doesn't peek through the menu */
body.nav-drawer-open .fab-contact {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 150ms, opacity 150ms;
}

.contact-form-card .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-card .status {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid;
  font-size: 0.9375rem;
}

.contact-form-card .status strong {
  display: block;
  margin-bottom: 4px;
}

.contact-form-card .status p {
  margin: 0;
}

.contact-form-card .status-success {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.contact-form-card .status-error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
