/* ===================================
   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 — FILTER BUTTONS ===== */
.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid #b4cfea;
  color: #1d5590;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: #1d5590;
  color: #fff;
  border-color: #1d5590;
}

/* ===== GALLERY — CARDS GRID ===== */
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .gallery-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .gallery-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-cards-grid { grid-template-columns: 1fr; } }

.gallery-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-card.hidden-card {
  display: none;
}
.gallery-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  aspect-ratio: 4/3;
  display: block;
}
.gallery-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-card-inner:hover img { transform: scale(1.08); }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 54, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.gallery-card-inner:hover .gallery-card-overlay { background: rgba(11, 30, 54, 0.45); }
.gallery-card-overlay i { opacity: 0; transform: scale(0.5); transition: all 0.3s ease; }
.gallery-card-inner:hover .gallery-card-overlay i { opacity: 1; transform: scale(1); }

.gallery-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(11,30,54,0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}
.gallery-card-name {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
  flex: 1;
  text-align: right;
}

/* ===== GALLERY — TAGS ===== */
.gallery-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-religioso  { background: #7c3aed; color: #fff; }
.tag-hospedagem { background: #1d5590; color: #fff; }
.tag-alimentacao{ background: #b45309; color: #fff; }
.tag-esporte    { background: #047857; color: #fff; }
.tag-estrutura  { background: #374151; color: #fff; }

/* ===== GALLERY — LIGHTBOX ===== */
.gallery-lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.gallery-lightbox-backdrop.active { display: flex !important; }
.gallery-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: none;
}
.gallery-lightbox-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.gallery-lightbox-tag-label {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #1d5590;
  color: #fff;
}
.gallery-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.30); }
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-lightbox-nav:hover { background: rgba(255,255,255,0.30); }
.gallery-lightbox-prev { left: 1.25rem; }
.gallery-lightbox-next { right: 1.25rem; }

/* ===== 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;
}
