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

/* ── Navbar ── */
#nav {
  background: rgba(255, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(140, 28, 40, 0.08);
}
#nav.scrolled {
  background: rgba(255, 248, 245, 0.97);
  box-shadow: 0 4px 30px rgba(140, 28, 40, 0.08);
}

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu .menu-line:nth-child(3) { width: 20px; }
body.menu-open { overflow: hidden; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ── Service cards ── */
.service-card { cursor: default; }

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

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Utility ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c0303e;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-link {
  transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-link:hover {
  color: #c0303e;
  transform: scale(1.05);
}

/* ── Mobile menu button animation ── */
#mobile-menu.open ~ header .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open ~ header .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open ~ header .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Hero decorative shapes ── */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
