/* === CUSTOM STYLES === */

:root {
  --burgundy: #7B2D3B;
  --burgundy-light: #943848;
  --blush: #E8B4B8;
  --cream: #FDF8F4;
  --dark: #1A0F12;
  --sand: #F5E6D3;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--burgundy);
  color: var(--cream);
}

/* === NAVBAR === */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blush);
  transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(26, 15, 18, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(253, 248, 244, 0.06);
}

/* === MOBILE MENU === */
.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
body.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5px;
}

/* === SCROLL REVEAL === */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  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: translate(0, 0);
}

/* === BUTTON HOVER EFFECTS === */
button[type="submit"],
a[href="#products"],
a[href="#contact"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before,
a[href="#products"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s ease;
}

button[type="submit"]:hover::before,
a[href="#products"]:hover::before {
  left: 100%;
}

/* === FORM INPUTS === */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.15);
}

/* === IMAGE PLACEHOLDERS === */
img {
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu-line {
    transition: none;
  }
  img {
    transition: none;
  }
  .group:hover img {
    transform: none;
  }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .font-serif {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }
}
