/* ── 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 {
  background-color: #FDFBF7;
  color: #2C2825;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background-color: #D94F24;
  color: #FDFBF7;
}

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

.animate-fade-up {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.scroll-line {
  animation: scrollLine 1.6s ease-in-out infinite;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  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; }

/* ── Navigation ── */
#nav {
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(184, 176, 168, 0.3);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #2C2825 !important;
}

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

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

.mobile-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.menu-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: #2C2825;
  transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .menu-line:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Custom select arrow ── */
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='%23B8B0A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* ── Focus styles ── */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.1;
  }
}

@media (min-width: 768px) {
  /* Subtle parallax-like feel on hero image */
  #hero .relative.overflow-hidden {
    will-change: transform;
  }
}

/* ── Print ── */
@media print {
  #nav, #mobile-menu, .scroll-indicator {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
