/* ===================================================
   Área Fourteen Academia — Custom Styles
   =================================================== */

/* ── Base ── */
body {
  font-family: "Work Sans", sans-serif;
}

/* Remove default details marker */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Linktree Buttons (mobile) ── */
.linktree-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.01em;
}

.linktree-btn:active {
  transform: scale(0.97);
}

.linktree-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* ── Accordion Cards ── */
.accordion-card {
  background: #f5f3f0;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.dark .accordion-card {
  background: #111111;
  border-color: rgba(222, 188, 89, 0.12);
}

.accordion-card[open] {
  box-shadow: 0 4px 20px rgba(222, 188, 89, 0.08);
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  line-height: 1.65;
}

/* ── Gallery Item Hover ── */
.gallery-item .gallery-img {
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

/* ── Service Card ── */
.service-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(222, 188, 89, 0.15);
}

/* ── Back to Top Button ── */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 18px;
  border-radius: 50%;
  background: #f0ede8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

#backToTop .material-symbols-outlined {
  font-size: 18px;
}

.dark #backToTop {
  background: #111111;
}

#backToTop.visible {
  transform: scale(1);
}

#backToTop:hover {
  box-shadow: 0 6px 24px rgba(222, 188, 89, 0.4);
}

#backToTop svg {
  position: absolute;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}

@media screen and (max-width: 640px) {
  #backToTop {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 15px;
  }

  #backToTop .material-symbols-outlined {
    font-size: 16px;
  }
}

/* ── meuWeb.site footer logo ── */
.meuweb-logo {
  filter: grayscale(10%);
  opacity: 0.75;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.meuweb-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Footer social icons ── */
.footer-social-link {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.footer-social-link:hover {
  transform: scale(1.1);
}

.footer-social-stack {
  position: relative;
  display: inline-block;
}

.footer-social-stack img {
  display: block;
}

.footer-social-base,
.footer-social-hover {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

.footer-social-base {
  width: 100%;
  height: 100%;
}

.footer-social-hover {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-social-base {
  opacity: 1;
}

.footer-social-hover {
  opacity: 0;
}

.footer-social-link:hover .footer-social-base {
  opacity: 0;
}

.footer-social-link:hover .footer-social-hover {
  opacity: 1;
}

/* ── Google Maps iframe ── */
.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: block;
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #FDFEFB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dark #preloader {
  background: #000000;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader-inner {
  position: relative;
  width: 8rem;
  height: 8rem;
}

#preloader-inner::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(222, 188, 89, 0.00);
  border-top-color: #DEBC59;
  animation: preloader-spin 1s linear infinite;
}

.preloader-logo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: contain;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* ── Section fade-in on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Header shrink on scroll ── */
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 1.5rem;
}

#lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lb-in 0.2s ease;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
