/* ===== BASE & RESET ===== */
*, *::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;
}

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

/* ===== NAVIGATION ===== */
.nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
  background: rgba(6, 17, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  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: fadeDown 0.4s ease forwards;
  opacity: 0;
}

#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 fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger */
.menu-line {
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.35s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

.hero-img {
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-img {
  transform: scale(1);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(6, 17, 31, 0.55) 0%,
    rgba(10, 31, 63, 0.65) 40%,
    rgba(10, 31, 63, 0.75) 70%,
    rgba(6, 17, 31, 0.88) 100%
  );
}

.hero-content {
  padding-top: 5rem;
}

/* Hero animations — progressive enhancement via JS */
.hero-eyebrow,
.hero-headline,
.hero-subtitle,
.hero-actions {
  /* Default: visible (no JS) */
}

.hero.animated .hero-eyebrow {
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(24px);
}

.hero.animated .hero-headline {
  animation: fadeUp 0.8s ease 0.4s forwards;
  opacity: 0;
  transform: translateY(32px);
}

.hero.animated .hero-subtitle {
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity: 0;
  transform: translateY(24px);
}

.hero.animated .hero-actions {
  animation: fadeUp 0.8s ease 0.8s forwards;
  opacity: 0;
  transform: translateY(24px);
}

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

/* Scroll indicator */
.hero-scroll {
  opacity: 0.7;
  animation: pulseDown 2s ease-in-out infinite;
}

@keyframes pulseDown {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ===== DIVIDERS ===== */
.divider-line {
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
}

.section-eyebrow {
  /* already defined via Tailwind */
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

/* ===== FEATURE ROWS ===== */
.feature-row {
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  padding-left: 1rem;
  transition: border-color 0.3s ease;
}

.feature-row:hover {
  border-color: rgba(201, 168, 76, 0.6);
}

/* ===== COLLECTION CARDS ===== */
.collection-card {
  cursor: pointer;
}

.collection-card h3 {
  position: relative;
  display: inline-block;
}

.collection-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
}

.collection-card:hover h3::after {
  width: 100%;
}

/* ===== VISIT BLOCKS ===== */
.visit-block {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(10, 31, 63, 0.06);
}

.visit-block:last-child {
  border-bottom: none;
}

/* ===== FORM ===== */
.form-group {
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 0;
  border: none;
  border-bottom: 1px solid rgba(10, 31, 63, 0.15);
  background: transparent;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #0a1f3f;
  transition: border-color 0.3s ease;
  outline: none;
  resize: none;
}

.form-input::placeholder {
  color: rgba(10, 31, 63, 0.3);
  font-weight: 300;
}

.form-input:focus {
  border-color: rgba(201, 168, 76, 0.6);
}

.form-input.error {
  border-color: #c0392b;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  /* Default: fully visible */
}

.reveal-up {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  /* Hidden state — applied by JS */
  .reveal-up.is-hidden,
  .reveal-left.is-hidden,
  .reveal-right.is-hidden {
    opacity: 0;
  }

  .reveal-up.is-hidden {
    transform: translateY(40px);
  }

  .reveal-left.is-hidden {
    transform: translateX(-40px);
  }

  .reveal-right.is-hidden {
    transform: translateX(40px);
  }
}

/* If JS doesn't run, everything is already visible — no changes needed. */

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 4rem;
  }

  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .feature-row {
    padding-left: 0.75rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }
}
