/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(196, 112, 75, 0.25);
  color: #5e2f1f;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5EDE4;
}
::-webkit-scrollbar-thumb {
  background: #C4A57A;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A88655;
}

/* ===== NAVBAR ===== */
.nav-logo-text {
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

/* Scrolled navbar state */
.navbar-scrolled {
  background: rgba(253, 251, 247, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(94, 47, 31, 0.08);
}

.navbar-scrolled .nav-logo-text {
  color: #59452C;
}

.navbar-scrolled .nav-link {
  color: #6E5535;
}

.navbar-scrolled .nav-link:hover {
  color: #C4704B;
}

/* ===== HERO ===== */
.hero-badge {
  animation: fadeInDown 0.8s ease both;
}

#hero h1 {
  animation: fadeInUp 0.8s ease 0.2s both;
}

#hero p {
  animation: fadeInUp 0.8s ease 0.4s both;
}

#hero .flex.flex-col {
  animation: fadeInUp 0.8s ease 0.6s both;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* These are progressive enhancement — if JS runs, they start hidden and animate in.
   If JS doesn't run, they remain visible (default state). */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ===== GALLERY SCROLL ===== */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(196, 165, 122, 0.15);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

#mobile-menu.menu-open {
  translate: 0;
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.menu-closed {
  translate: 0 -10px;
  opacity: 0;
  pointer-events: none;
}

/* ===== BUTTON FOCUS ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C4704B;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.2;
  }
}
