/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Scroll Reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Divider Line */
.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192, 118, 91, 0.25), transparent);
}

/* Navbar */
.nav {
  background: rgba(253, 252, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 118, 91, 0.1);
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(94, 51, 38, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle .line {
  width: 22px;
  height: 1.5px;
  background: #713d2d;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active .line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .line:nth-child(2) {
  opacity: 0;
}

.mobile-menu {
  border-top: 1px solid rgba(192, 118, 91, 0.1);
  background: rgba(253, 252, 249, 0.98);
  backdrop-filter: blur(12px);
}

.mobile-link {
  border-bottom: 1px solid rgba(192, 118, 91, 0.08);
  padding-bottom: 12px;
  transition: color 0.3s ease;
}

/* Hero */
.hero {
  background: url('https://images.pexels.com/photos/6309756/pexels-photo-6309756.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(62, 35, 26, 0.55) 0%,
    rgba(62, 35, 26, 0.65) 100%
  );
}

.hero-content {
  padding-top: 80px;
}

.hero-eyebrow {
  animation: fadeDown 1s 0.2s both;
}

.hero-headline {
  animation: fadeUp 1s 0.4s both;
}

.hero-sub {
  animation: fadeUp 1s 0.6s both;
}

.hero-cta {
  animation: fadeUp 1s 0.8s both;
}

.hero-scroll {
  animation: bounce 2.5s infinite;
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, 8px);
  }
  60% {
    transform: translate(-50%, 4px);
  }
}

/* Eyebrow */
.eyebrow {
  letter-spacing: 0.3em;
}

/* Input Fields */
.input-field {
  border: none;
  border-bottom: 1px solid rgba(192, 118, 91, 0.25);
  padding: 12px 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #5e3326;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-field::placeholder {
  color: #d2b488;
}

.input-field:focus {
  border-bottom-color: #c0765b;
}

/* Primary Button */
.btn-primary {
  background: #c0765b;
  color: #fdfcf9;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  background: #a85d43;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 93, 67, 0.25);
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Image hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Selection */
::selection {
  background: rgba(192, 118, 91, 0.2);
  color: #5e3326;
}
