/* ═══════════════════════════════════════════════════════════
   SNPJ Lodge 245 — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

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

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 249, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-link {
  position: relative;
}

/* ── Hero Geometric Shapes ── */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 500px;
  height: 500px;
  border: 2px solid rgba(252, 227, 216, 0.15);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(232, 85, 42, 0.12);
  border-radius: 50%;
  bottom: 15%;
  right: 35%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(244, 207, 116, 0.1);
  border-radius: 20px;
  top: 25%;
  right: 10%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.shape-rect-2 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(244, 207, 116, 0.2);
  border-radius: 12px;
  bottom: 25%;
  left: 5%;
  transform: rotate(20deg);
  animation: float 7s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(232, 85, 42, 0.08);
  top: 40%;
  left: 2%;
  animation: spin-slow 25s linear infinite;
}

.shape-dots {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(252, 227, 216, 0.2) 2px, transparent 2px);
  background-size: 15px 15px;
  bottom: 10%;
  right: 5%;
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

  /* Stagger children */
  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
  background: #e8552a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cc3a1e;
}

/* ── Selection ── */
::selection {
  background: #e8552a;
  color: #fff;
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid #e8552a;
  outline-offset: 2px;
}

/* ── Utility ── */
@media (max-width: 767px) {
  .shape-circle-1 {
    width: 300px;
    height: 300px;
  }
  .shape-rect-1 {
    width: 60px;
    height: 60px;
  }
  .shape-triangle {
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 52px;
  }
}
