/* layout.css — layout utilities that cannot be expressed as Tailwind utility classes. */

/* Glass navigation / header
   backdrop-filter and -webkit-backdrop-filter have no Tailwind equivalent. */
.glass-header,
.glass-nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Navbar scrolled state — JS adds .is-scrolled to #main-nav */
#main-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 1px 0 rgba(0, 109, 67, 0.08), 0 8px 32px rgba(0, 0, 0, 0.07);
}

/* Navbar inner — padding shrinks on scroll */
.nav-inner {
  transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}
#main-nav.is-scrolled .nav-inner {
  padding-top: 0.875rem !important;
  padding-bottom: 0.875rem !important;
}

/* Active nav indicator — animated slide */
.nav-link-active-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: #006d43;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Perspective grid — subtle emerald line grid with a radial fade-out mask. */
.perspective-grid {
  background-image:
    linear-gradient(to right, rgba(0, 109, 67, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 109, 67, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Emerald glow background — radial gradient overlay for hero sections. */
.emerald-glow-bg {
  background: radial-gradient(ellipse at 60% 50%, rgba(0, 168, 107, 0.09) 0%, transparent 70%);
}

/* Asymmetric editorial grid — 1fr / 2fr two-column layout. */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
