/* Northspan Commercial - layout chrome */

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

.wrapper {
  position: relative;
  z-index: var(--z-wrapper);
  background-color: var(--c-bg);
  margin-bottom: 100vh;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
  min-height: 60vh;
}

.wrapper--plain {
  margin-bottom: 0;
  box-shadow: none;
  padding-bottom: calc(var(--bottom-nav-h) + 2rem);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem;
  mix-blend-mode: difference;
  color: #fff;
}

@media (min-width: 768px) {
  .site-header {
    padding: 1.5rem 3rem;
  }
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: var(--tracking-tight);
  color: #fff;
}

.site-header__brand:hover {
  color: #fff;
}

.site-header__nav {
  display: none;
  gap: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #d4d4d4;
}

.site-header__nav a:hover {
  color: #fff;
}

.site-header__nav a.is-active {
  color: #fff;
}

.site-header__cta {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-header__cta:hover {
  background: #fff;
  color: #000;
}

.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
}

@media (min-width: 900px) {
  .site-header__nav,
  .site-header__cta {
    display: flex;
  }
  .site-header__menu-btn {
    display: none;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100%;
  background: var(--c-charcoal);
  color: #fff;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  align-self: flex-end;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer__links a {
  padding: 0.85rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: var(--tracking-tight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer__links a.is-active {
  color: #a3a3a3;
}

.drawer__meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: #a3a3a3;
  line-height: 1.7;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-bottom-nav);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem;
  color: #a3a3a3;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bottom-nav a.is-active,
.bottom-nav a:hover {
  color: #fff;
}

@media (min-width: 900px) {
  .bottom-nav {
    display: none;
  }
}

/* Footer reveal */
.footer-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: var(--z-footer);
  background: var(--c-charcoal);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer {
  background: var(--c-charcoal);
  color: #fff;
  padding: 4rem 1.5rem calc(5rem + var(--bottom-nav-h));
}

@media (min-width: 900px) {
  .site-footer {
    padding: 5rem 3rem 4rem;
  }
}

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.footer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #737373;
  margin-bottom: 1.25rem;
}

.footer-phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: #d4d4d4;
}

.footer-note {
  color: #a3a3a3;
  font-weight: 300;
}

.footer-office-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 500px) {
  .footer-office-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-office-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-office-body {
  font-size: 0.875rem;
  color: #a3a3a3;
  font-weight: 300;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
  }
  .footer-socials {
    justify-content: flex-end;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
  background: #fff;
  color: #000;
}

.footer-legal {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-legal-mono {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #525252;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.65rem;
  color: #525252;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  max-width: 42rem;
}

.page-shell {
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: 4rem;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.container--wide {
  max-width: var(--max-w-wide);
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.toast-host {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 1rem);
  right: 1rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 900px) {
  .toast-host {
    bottom: 1.5rem;
  }
}

.toast {
  background: var(--c-charcoal);
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.35s var(--ease-out);
  max-width: 22rem;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
