/* ============================================================
   public/assets/css/app.css
   Estilos customizados — complementam o Tailwind CDN
   ============================================================ */

/* ── Fontes base ──────────────────────────────────────────── */
body {
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3,
.font-display {
    font-family: 'Playfair Display', serif;
}

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

/* ── Animação de entrada (hero) ───────────────────────────── */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in-up .7s ease both;
}

/* ── Swiper customizado ───────────────────────────────────── */
.swiper-pagination-bullet {
    background: #c9933a !important;
    opacity: .4;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 20px !important;
    border-radius: 4px !important;
    transition: width .3s ease;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }

.lightbox-swiper {
    width: 100vw;
    height: 100vh;
}
.lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-swiper img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: fixed;
    top: 16px; right: 16px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    border: none; cursor: pointer;
    border-radius: 50%;
    color: #fff; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1001;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-counter {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    z-index: 1001;
}

/* ── Lazy loading placeholder ─────────────────────────────── */
img[data-src] {
    background: #f1f5f9;
    min-height: 60px;
}

/* ── Botão WhatsApp — pulso ───────────────────────────────── */
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-pulse {
    animation: wa-pulse 2.5s infinite;
}

/* ── Grid masonry simples ─────────────────────────────────── */
.masonry-grid {
    columns: 2;
    column-gap: 12px;
}
@media (min-width: 640px) { .masonry-grid { columns: 3; } }
@media (min-width: 1024px) { .masonry-grid { columns: 4; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
}

/* ── Line clamp ───────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Scrollbar fina (desktop) ─────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
