/* ===================================
   LAR LUTERANO BELÉM - Custom Styles
   =================================== */

/* Root & Scrollbar */
:root {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b1e36;
}
::-webkit-scrollbar-thumb {
  background: #2a6fad;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a8bc6;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(11, 30, 54, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

/* ===== FLOATING PARTICLES ===== */
@keyframes float-leaf {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 50% 0 50%;
  animation: float-leaf linear infinite;
  pointer-events: none;
}

.leaf-1 { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.leaf-2 { left: 25%; animation-duration: 12s; animation-delay: 2s; width: 14px; height: 14px; }
.leaf-3 { left: 55%; animation-duration: 10s; animation-delay: 4s; width: 18px; height: 18px; }
.leaf-4 { left: 75%; animation-duration: 14s; animation-delay: 1s; width: 12px; height: 12px; }
.leaf-5 { left: 90%; animation-duration: 9s; animation-delay: 3s; width: 16px; height: 16px; }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fade-up"]   { transform: translateY(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(0, 0, 0, 0.4); }
.gallery-overlay i { opacity: 0; transform: scale(0.5); transition: all 0.3s ease; }
.gallery-item:hover .gallery-overlay i { opacity: 1; transform: scale(1); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item-large { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/7; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-large { grid-column: span 1; aspect-ratio: 16/9; }
}

/* ===== LIGHTBOX ===== */
#lightbox { animation: fadeIn 0.2s ease; }
#lightbox.active { display: flex !important; }

/* ===== BACK TO TOP ===== */
#back-to-top.visible { opacity: 1; transform: translateY(0); }

/* ===== SECTION ===== */
section { position: relative; }

/* ===== FOCUS ===== */
input:focus, textarea:focus, select:focus { outline: none; }

/* ===== NAV ACTIVE ===== */
.nav-link.active { color: #b8d4ef !important; }

/* ===== STRUCTURE CARD HOVER ===== */
.structure-card:hover { border-color: rgba(74, 139, 198, 0.5) !important; }

/* ===== MOBILE MENU ===== */
#mobile-menu { transition: all 0.3s ease; }
#mobile-menu.open { display: block !important; animation: fadeInDown 0.3s ease; }

/* ===== STAT DIVIDERS ===== */
.stat-item:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 768px) {
  .stat-item:not(:last-child) { border-right: none; border-bottom: none; }
}

/* ===== IMAGES ===== */
img { transition: transform 0.7s ease; }

/* ===== FOOTER FIX ===== */
footer {
  background-color: #0b1e36 !important;
  color: #ffffff;
}
footer a:hover { text-decoration: none; }

/* ===== FORM ===== */
input::placeholder, textarea::placeholder { color: #9ca3af; }

/* ===== ACTIVITY CARD ===== */
.activity-card:hover { transform: translateY(-4px); }

/* ===== QUOTE SECTION (azul escuro) ===== */
.quote-section {
  background-color: #1d5590 !important;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(42, 111, 173, 0.3);
  color: #0b1e36;
}
