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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #D4AF6A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0603A; }

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(45, 36, 32, 0.08);
}

/* ── Nav links underline animation ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C0603A;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile menu ── */
.mobile-link {
  position: relative;
}
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}
#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ── Menu lines animation ── */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Service cards ── */
.service-card {
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ── Testimonial cards ── */
.testimonial-card {
  transform: translateY(0);
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  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; }

/* ── Scroll indicator animation ── */
@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}
.animate-scroll-down {
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ── Hero image subtle float ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating {
  animation: float 4s ease-in-out infinite;
}

/* ── Geometric shape rotation ── */
@keyframes slowRotate {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
.rotate-slow {
  animation: slowRotate 20s linear infinite;
}

/* ── Pulse dot ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ── Input focus glow ── */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

/* ── Button hover glow ── */
button:hover, a:hover {
  transition: all 0.2s ease;
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .font-display { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .service-card:hover {
    transform: translateY(-2px);
  }
}

/* ── Print styles ── */
@media print {
  #navbar, #mobileMenu, .animate-scroll-down { display: none; }
  body { background: white; }
}
