/* ─── Base & Utilities ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #E86A5A;
  color: #fff;
}

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ─── Hero Animations ─── */
.hero-badge {
  animation: fadeUp 0.8s 0.2s both cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-headline {
  animation: fadeUp 0.8s 0.4s both cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-sub {
  animation: fadeUp 0.8s 0.6s both cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta {
  animation: fadeUp 0.8s 0.8s both cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Navbar ─── */
.nav-link {
  position: relative;
}

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

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

.nav-logo-text {
  transition: color 0.3s ease;
}

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

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Hamburger animation */
#hamburger span {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#hamburger.active span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

#hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#hamburger.active span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
  width: 1.5rem;
}

/* ─── Product Card Hover ─── */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

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

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

::-webkit-scrollbar-thumb {
  background: #c4c6cc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a5b0;
}

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

/* ─── Responsive Tweaks ─── */
@media (max-width: 640px) {
  .font-display {
    word-break: keep-all;
  }
}

/* ─── Print Styles ─── */
@media print {
  nav, #contact, footer {
    display: none;
  }
}
