/* ===================================================
   Dom Luan Barbearia — 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: #111113;
  border-color: rgba(231, 180, 39, 0.12);
}
.accordion-card[open] {
  box-shadow: 0 4px 20px rgba(231, 180, 39, 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(231, 180, 39, 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: #ECE9E9;
  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: #1a1a1b;
}
#backToTop.visible {
  transform: scale(1);
}
#backToTop:hover {
  box-shadow: 0 6px 24px rgba(231, 180, 39, 0.4);
}
#backToTop svg {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  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: 0.9;
}

/* ── 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: #ECE9E9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.dark #preloader {
  background: #0C0C0D;
}
#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(231, 180, 39, 0.15);
  border-top-color: #f5f3f0;
  animation: preloader-spin 1s linear infinite;
}
.preloader-logo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
}
@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); }
}
