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

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

body {
  margin: 0;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

.nav-link {
  position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

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

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

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

/* ── Hero ── */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-image-wrap {
  opacity: 0;
  animation: fadeIn 1.2s ease 0.5s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Scroll Line ── */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Menu Section ── */
.menu-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

.menu-title {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.1s;
}

.menu-desc {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.2s;
}

.menu-category {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.menu-footer {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.menu-category.visible,
.menu-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Space Images ── */
.space-img {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.space-img.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Contact Form ── */
.form-input:focus {
  border-bottom-color: #f08060 !important;
}

.form-input::placeholder {
  color: rgba(107, 101, 96, 0.5);
}

/* ── Selection ── */
::selection {
  background: #f08060;
  color: #fff;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #f08060;
  outline-offset: 2px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta,
  .hero-image-wrap {
    opacity: 1;
    animation: none;
  }
}

/* ── Small Screens ── */
@media (max-width: 360px) {
  .font-serif.text-5xl {
    font-size: 2.5rem;
  }
}
