/* Base rules carried from the original NIRAJA page */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', sans-serif;
  color: #202326;
  background-color: #F4F0E7;
  overflow-x: hidden;
  margin: 0;
}
[id] { scroll-margin-top: 6.5rem; }
.anchor-target { scroll-margin-top: 9rem; }

.hero-element, .section-reveal, .lane-reveal, .value-card, .chapter-block, .matrix-item, .legal-item, .workflow-step {
  opacity: 1;
  transform: none;
}
.bg-arch-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(197, 161, 90, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 161, 90, 0.05) 1px, transparent 1px);
}
.bg-dark-grid {
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
.image-fallback { background: linear-gradient(135deg, #0C1C2C 0%, #142B3D 100%) !important; position: relative; }
.image-fallback::after {
  content: 'NIRAJA • PT. NITI SEJAHTERA JAYA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5A15A;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(12, 28, 44, 0.85);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0C1C2C; }
::-webkit-scrollbar-thumb { background: #C5A15A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #E6D3A3; }
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), 0 8px 10px -6px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 20px 35px -5px rgba(37, 211, 102, 0.6), 0 12px 14px -6px rgba(37, 211, 102, 0.4); }
}
.wa-pulse { animation: subtle-pulse 3s infinite ease-in-out; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #C5A15A;
  outline-offset: 2px;
}
/* Mobile nav drawer sits on the viewport, outside the blurred navbar bar. */
#mobileMenuButton { width: 2.75rem; height: 2.75rem; flex: none; }
#mobileMenuButton svg { position: absolute; inset: 0; margin: auto; }
#menuIconOpen { display: none; }
#siteHeader.is-open { z-index: 60; }
#siteHeader.is-open #menuIconClosed { display: none; }
#siteHeader.is-open #menuIconOpen { display: block; }
.mobile-drawer {
  display: none;
  position: fixed;
  z-index: 1;
  top: 5rem;
  left: 0;
  right: 0;
  height: calc(100vh - 5rem);
  height: calc(100dvh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #0C1C2C;
  border-top: 1px solid rgba(197, 161, 90, 0.2);
  padding: 0.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
}
.mobile-drawer.is-open { display: flex; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.mobile-nav-link.is-active,
.mobile-nav-link:hover { color: #C5A15A; }
.mobile-drawer-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
}
body.nav-open #floatingWa { visibility: hidden; pointer-events: none; }
@media (min-width: 1280px) {
  .mobile-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wa-pulse { animation: none !important; }
}
