/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; }

/* ── Nav ── */
.nav-scrolled {
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav-scrolled .nav-title { color: #1B4332; }
.nav-scrolled .nav-link { color: #1B4332; }
.nav-scrolled .nav-link:hover { color: #D4A843; }
.nav-scrolled .menu-line { background: #1B4332; }

header:not(.nav-scrolled) .nav-title { color: #FDFCF8; }
header:not(.nav-scrolled) .nav-link { color: rgba(253, 252, 248, 0.8); }
header:not(.nav-scrolled) .nav-link:hover { color: #D4A843; }
header:not(.nav-scrolled) .menu-line { background: #FDFCF8; }
header:not(.nav-scrolled) .nav-accent { fill: #FDFCF8; }

.nav-link {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4A843;
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  transition: color 0.3s, transform 0.3s;
}
.mobile-link:hover {
  transform: scale(1.05);
}

/* Hamburger */
.menu-line {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #1B4332;
  border-radius: 2px;
  transition: all 0.3s;
  transform: translateX(-50%);
}
#menu-btn.active .menu-line:nth-child(1) {
  top: 5px;
  transform: translateX(-50%) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  top: 5px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ── Hero ── */
.hero-eyebrow {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.hero-title {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.hero-cta {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ── Section ── */
.eyebrow {
  letter-spacing: 0.25em;
}

.section-title {
  margin-bottom: 0.5rem;
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #D4A843;
  transition: height 0.4s ease;
}
.service-card:hover::before {
  height: 100%;
}

/* ── Capability Items ── */
.capability-item {
  border-left: 2px solid #d5e8db;
  padding-left: 1.5rem;
  transition: border-color 0.3s;
}
.capability-item:hover {
  border-left-color: #D4A843;
}

/* ── Industry Tags ── */
.industry-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(253, 252, 248, 0.1);
  border: 1px solid rgba(253, 252, 248, 0.2);
  color: #FDFCF8;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.industry-tag:hover {
  background: #D4A843;
  border-color: #D4A843;
  color: #1B4332;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-cta {
    opacity: 1;
  }
}

/* ── Focus ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #D4A843;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection {
  background: rgba(27, 67, 50, 0.2);
  color: #1B4332;
}
