/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #C1694F;
  color: #FDF9F3;
}

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

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

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

/* Header scroll state */
#site-header.scrolled {
  background: rgba(253, 249, 243, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 43, 31, 0.06);
}

#site-header.scrolled .font-serif {
  color: #3D2B1F;
}

/* Hamburger */
.hamburger-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 50%;
  margin-top: -1px;
}

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

#menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  bottom: 50%;
  margin-bottom: -1px;
}

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

.mobile-link {
  transition: all 0.3s ease;
}

/* ===== HERO BLOBS ===== */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: blob-float 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #FBE5DA;
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #F5E6CC;
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: #F7C9B4;
  top: 50%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left {
  opacity: 0;
  transform: translateY(30px);
  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 {
  transform: translateX(-30px);
}

.reveal-up.revealed,
.reveal-left.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children */
.reveal-up[data-delay="100ms"] { transition-delay: 100ms; }
.reveal-up[data-delay="200ms"] { transition-delay: 200ms; }
.reveal-up[data-delay="300ms"] { transition-delay: 300ms; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 105, 79, 0.35);
}

/* ===== FORM STYLES ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C4033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero-blob { opacity: 0.3; }
}
