/* ========================================
   LB LAB — Custom Styles
   ======================================== */

:root {
  --beige: #E8DDD3;
  --sage: #8B9A6B;
  --terra: #B8704B;
  --cream: #F5F0EB;
  --bark: #5C5347;
  --bark-light: #7A6F63;
}

/* ── Base ── */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

::selection {
  background: var(--sage);
  color: var(--cream);
}

/* ── Hero gradient + grain ── */

.hero-gradient {
  background: linear-gradient(170deg, var(--cream) 0%, var(--beige) 60%, #DED3C7 100%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* ── Navigation ── */

#navbar {
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

#navbar.scrolled {
  background: rgba(245, 240, 235, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(92, 83, 71, 0.06);
}

#navbar.scrolled nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.nav-link {
  position: relative;
  color: var(--bark);
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terra);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--terra);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav-link {
  color: var(--bark);
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: var(--terra);
}

/* ── Mobile menu toggle animation ── */

.menu-open .menu-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-bar:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-4px) rotate(-45deg);
}

/* ── Section labels ── */

.section-label {
  letter-spacing: 0.3em;
}

.section-line {
  transition: width 0.6s ease;
}

/* ── Service cards expand on mobile (click) ── */

@media (max-width: 767px) {
  .service-card .service-details {
    transition: max-height 0.5s ease, opacity 0.4s ease;
  }

  .service-card.expanded .service-details {
    max-height: 300px;
    opacity: 1;
  }
}

/* ── Process section ── */

.process-step {
  position: relative;
}

/* ── Package cards ── */

.package-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

/* ── FAQ ── */

.faq-item {
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: rgba(139, 154, 107, 0.35);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-trigger {
  color: var(--terra);
}

.faq-content {
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Parallax decorative elements ── */

.hero-deco {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ── Why section cards ── */

.why-card {
  opacity: 0;
  transform: translateY(30px);
}

.why-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ── Audience cards ── */

.audience-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(92, 83, 71, 0.08);
}

/* ── Scroll indicator ── */

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Reveal animation helpers (GSAP sets these) ── */

.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
}

/* ── Smooth scrollbar ── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--bark-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bark);
}

/* ── Focus styles for accessibility ── */

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-deco {
    display: none;
  }
}

/* ── Print ── */

@media print {
  #navbar,
  .scroll-indicator,
  .hero-deco {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  section {
    page-break-inside: avoid;
  }
}
