/* ── Global ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #D4A574;
  color: #0a2118;
}

/* ── Hero Gradient ──────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #04110c 0%,
    #0a2118 20%,
    #103324 40%,
    #184a34 55%,
    #1f5f43 70%,
    #2d7d5a 85%,
    #4fa382 100%
  );
}

.hero-pattern {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(79, 163, 130, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(212, 165, 116, 0.06) 0%, transparent 50%);
}

/* ── About Pattern ─────────────────────────────────── */
.about-pattern {
  background-image:
    radial-gradient(circle at 30% 70%, rgba(212, 165, 116, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(79, 163, 130, 0.15) 0%, transparent 40%);
}

/* ── CTA Pattern ───────────────────────────────────── */
.cta-pattern {
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 60%);
}

/* ── Hero Animations ───────────────────────────────── */
#hero .hero-subtitle {
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

#hero .hero-title {
  animation: fadeInUp 1s ease-out 0.4s both;
}

#hero .hero-desc {
  animation: fadeInUp 1s ease-out 0.6s both;
}

#hero .hero-buttons {
  animation: fadeInUp 1s ease-out 0.8s both;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Reveal (progressive enhancement) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ── Navbar scroll state ───────────────────────────── */
#navbar.scrolled {
  background: rgba(4, 17, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled #nav-logo {
  color: #ffffff;
}

/* ── Mobile menu ───────────────────────────────────── */
#mobile-menu {
  animation: menuSlideIn 0.35s ease-out;
}

#mobile-menu.hidden {
  animation: menuSlideOut 0.3s ease-in forwards;
}

@keyframes menuSlideIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes menuSlideOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.mobile-link {
  animation: mobileLinkIn 0.4s ease-out both;
}

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

@keyframes mobileLinkIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Image hover ───────────────────────────────────── */
.rounded-xl img {
  transition: transform 0.7s ease;
}

/* ── Smooth focus outlines ─────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D4A574;
  outline-offset: 3px;
  border-radius: 4px;
}

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