/* ════════════════════════════════════════════
   Bletaria — Custom Styles & Animations
   ════════════════════════════════════════════ */

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ─── Card Hover ─── */
.card-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
  box-shadow: 0 0 0 2px #D4A844, 0 8px 24px rgba(212, 168, 68, 0.15);
  transform: translateY(-4px);
}
/* ─── CTA Button ─── */
.btn-cta {
  transition: box-shadow 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}
.btn-cta:hover {
  box-shadow: 0 0 0 4px rgba(232, 114, 42, 0.3);
  transform: translateY(-2px);
}
.btn-cta:active {
  transform: translateY(0);
}

/* ─── Navbar ─── */
.nav-pill {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* Elevated nav links with underline */
.nav-link {
  position: relative;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 65%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #E8722A, #D4A844);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.nav-link:hover {
  transform: translateY(-2px);
  background-color: rgba(212, 168, 68, 0.1);
  box-shadow: 0 4px 14px rgba(212, 168, 68, 0.22);
  color: #E8722A;
}
.nav-link.active {
  color: #E8722A;
  transform: translateY(-2px);
  background-color: rgba(212, 168, 68, 0.1);
  box-shadow: 0 4px 14px rgba(212, 168, 68, 0.22);
}
.nav-link.active::after,
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ─── Card Honeycomb Overlay ─── */
.honeycomb-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23D4A844' stroke-width='0.8' opacity='0.25'/%3E%3C/svg%3E");
}

/* ─── Hero Decorative Honeycomb ─── */
.honeycomb-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23D4A844' stroke-width='0.8' opacity='0.35'/%3E%3C/svg%3E");
}
/* ─── Section Divider (honey drip) ─── */
.honey-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #E8722A, #D4A844);
  border-radius: 2px;
}

/* ─── Gallery Auto-Scroll ─── */
.gallery-track {
  width: max-content;
  animation: gallery-scroll 38s linear infinite;
  align-items: stretch;
}
.gallery-outer:hover .gallery-track {
  animation-play-state: paused;
}
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Lightbox ─── */
#lightbox {
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(0px, 3vw, 40px);
}
#lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 20;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  transition: background 0.15s;
}
#lightbox-close:hover {
  background: rgba(0,0,0,0.85);
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#lightbox img {
  cursor: default;
  animation: lightbox-scale 0.25s ease;
}
@keyframes lightbox-scale {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ─── Team Photos ─── */
.team-photo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 168, 68, 0.3);
}

/* ─── Feature Icons ─── */
.feature-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.feature-icon:hover {
  transform: scale(1.1);
}

/* ─── Form Focus ─── */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: #E8722A;
  box-shadow: 0 0 0 3px rgba(232, 114, 42, 0.15);
  outline: none;
}
/* ─── Decorative Bee Float Animation ─── */
@keyframes float-bee {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(4px) rotate(-2deg); }
}
.float-bee {
  animation: float-bee 6s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

/* ─── Parallax: JS translateY handles all devices ─── */

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-bee, .float-slow, .gallery-track { animation: none; }
  .card-hover, .btn-cta, .team-photo, .feature-icon {
    transition: none;
  }
}

/* ─── Mobile top bar offset for body ─── */
@media (max-width: 767px) {
  main > section:first-child {
    padding-top: 52px;
  }
}

/* ─── Mobile Menu dropdown ─── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
  background: #D4A844;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E8722A;
}
