/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.nav.scrolled {
  background: rgba(253, 252, 248, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  position: relative;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.1);
  transition: color 0.2s ease;
}

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

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

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

.hero-img {
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-headline {
  animation: headlineIn 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

.hero-content > div > div:first-child > * {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content > div > div:first-child > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > div > div:first-child > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > div > div:first-child > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > div > div:first-child > *:nth-child(4) { animation-delay: 0.8s; }

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

/* ===== STAT CARDS ===== */
.stat-card {
  animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 1.5s; }
.stat-card:nth-child(3) { animation-delay: 3s; }
.stat-card:nth-child(4) { animation-delay: 4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ===== BUTTONS ===== */
.btn-primary {
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  transition: color 0.3s ease;
}

/* ===== MENU TABS ===== */
.menu-tab {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.menu-tab.active {
  background: white;
  color: #1B4332 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 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; }
  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
  }

  .stat-card {
    display: none !important;
  }

  .font-serif.text-4xl,
  .font-serif.text-5xl,
  .font-serif.text-6xl {
    font-size: 2rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 3.5rem !important;
  }
}
