/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 164, 78, 0.2);
  color: #0f1c3f;
}

/* ── Scroll Reveal (progressive enhancement — content visible by default) ── */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease, background-color 0.5s ease;
  }

  .service-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger service cards */
  .service-card:nth-child(1) { transition-delay: 0s; }
  .service-card:nth-child(2) { transition-delay: 0.1s; }
  .service-card:nth-child(3) { transition-delay: 0.2s; }
  .service-card:nth-child(4) { transition-delay: 0.3s; }
  .service-card:nth-child(5) { transition-delay: 0.4s; }
  .service-card:nth-child(6) { transition-delay: 0.5s; }
}

/* ── Navbar ── */
#navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 28, 63, 0.06);
}

#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(15, 28, 63, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c8a44e;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line {
  transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(2px, 2px);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ── Buttons ── */
button, a {
  cursor: pointer;
}

/* ── Form ── */
input:focus, textarea:focus {
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: rgba(15, 28, 63, 0.15);
}

/* ── Mobile link hover ── */
.mobile-link {
  position: relative;
}

/* ── Image hover ── */
section img {
  transition: transform 0.6s ease;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 28, 63, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 28, 63, 0.3);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
