/* ── Base & Typography ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #1a5c28;
  color: #faf8f4;
}

/* ── Navigation ── */
.nav-link {
  position: relative;
  color: #1a3c2a;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

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

.nav-link:hover {
  opacity: 1;
}

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

#navbar.scrolled .nav-logo-text {
  color: #1a3c2a;
}

#navbar.scrolled .nav-link {
  color: #1a3c2a;
}

/* ── Hero Animations ── */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}

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

.hero-subtext {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-cta-arrow {
  transition: transform 0.3s ease;
}

.hero-cta-primary:hover .hero-cta-arrow {
  transform: translateX(4px);
}

.hero-cta-secondary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1.05s;
}

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

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

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

.section-header.visible .section-eyebrow,
.section-header.visible .section-title {
  opacity: 1;
  transform: translateY(0);
}

/* ── Category Cards ── */
.category-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.category-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-card:nth-child(2).visible { transition-delay: 0.1s; }
.category-card:nth-child(3).visible { transition-delay: 0.2s; }
.category-card:nth-child(4).visible { transition-delay: 0.3s; }

/* ── Feature Cards ── */
.feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2).visible { transition-delay: 0.1s; }
.feature-card:nth-child(3).visible { transition-delay: 0.2s; }

/* ── Stats ── */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:nth-child(2).visible { transition-delay: 0.1s; }
.stat-item:nth-child(3).visible { transition-delay: 0.2s; }

/* ── Contact Info ── */
.contact-info-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.contact-info-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-info-item:nth-child(2).visible { transition-delay: 0.1s; }
.contact-info-item:nth-child(3).visible { transition-delay: 0.2s; }

/* ── Mobile Menu ── */
.mobile-menu-link {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.4s ease;
}

.mobile-menu.visible .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.visible .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.visible .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.visible .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4a84b, #c9943f);
  z-index: 100;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}

/* ── Back to Top ── */
.back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 3rem;
  }

  .hero-headline br {
    display: none;
  }

  .hero-headline span {
    display: block;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-headline {
    font-size: 4.5rem;
  }
}
