/* =========================================================
   Casamento dos Sonhos — estilos e animações
   (extraído fielmente do site HTML original)
   ========================================================= */

html { scroll-behavior: smooth; }

.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .hero-parallax { background-attachment: scroll; }
}

.floral-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C35 15, 45 20, 50 30 C45 40, 35 45, 30 55 C25 45, 15 40, 10 30 C15 20, 25 15, 30 5Z' fill='%23C9A9A6' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Animação de revelação ao rolar a página */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Cards que sobem ao passar o mouse */
.hover-lift {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(44, 36, 32, 0.15);
}

/* Zoom suave nas imagens */
.image-zoom { overflow: hidden; }

.image-zoom img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.image-zoom:hover img { transform: scale(1.08); }

/* Blur da navbar ao rolar */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.divider-floral::after {
    content: '\2766';
    display: block;
    text-align: center;
    color: #C9A9A6;
    font-size: 1.5rem;
    margin: 2rem auto;
}

/* Linha superior animada dos cards de categoria */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4847C, transparent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover::before { transform: scaleX(1); }

/* Aspas decorativas dos depoimentos */
.testimonial-quote { position: relative; }

.testimonial-quote::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    color: #C9A9A6;
    opacity: 0.3;
    position: absolute;
    top: -2rem;
    left: -1rem;
    line-height: 1;
}

/* Flutuação suave */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation { animation: float 4s ease-in-out infinite; }

/* Textura de grão sobre a página */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.025;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #FAF7F2; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #C9A9A6; border-radius: 3px; }

.vendor-card-overlay {
    background: linear-gradient(to top, rgba(44,36,32,0.8) 0%, rgba(44,36,32,0.3) 50%, transparent 100%);
}

/* Respeitar preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .float-animation { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== Autocomplete da busca (plugin CDS Busca) ===== */
.cds-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(201,169,166,0.25);
    border-top: none;
    z-index: 60;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 20px 40px -12px rgba(44,36,32,0.15);
}
.cds-autocomplete a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: #2C2420;
    transition: background 0.2s;
}
.cds-autocomplete a:hover { background: #FAF7F2; color: #D4847C; }
.cds-autocomplete .cds-ac-group {
    padding: 0.4rem 1rem 0.2rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8A8279;
}
