/* ============================================
   FONTES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   BASE
   ============================================ */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.text-gold { color: #d4af37; }
.bg-gold   { background-color: #d4af37; }

.nav-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fbbf24;
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* ============================================
   1. PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050507;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}
#preloader .preloader-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: #fbbf24;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
#preloader .preloader-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}
#preloader .preloader-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: preloader-grow 1.6s ease forwards;
}
@keyframes preloader-grow {
    to { width: 180px; }
}

/* ============================================
   2. BARRA DE PROGRESSO DE SCROLL
   ============================================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #fbbf24);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* ============================================
   3. MENU HAMBURGUER (mobile)
   ============================================ */
#hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
}
#hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fbbf24;
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}
#hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
#hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: rgba(5, 5, 7, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
#mobile-menu a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
}
#mobile-menu a:hover {
    color: #fbbf24;
    transform: translateX(6px);
}
#mobile-menu .mobile-divider {
    width: 40px;
    height: 1px;
    background: rgba(251,191,36,0.3);
}

@media (max-width: 767px) {
    #hamburger { display: flex; }
    nav ul     { display: none !important; }
}

/* ============================================
   4. ANIMAÇÕES DE SCROLL
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.10s; }
.animate-delay-2 { transition-delay: 0.20s; }
.animate-delay-3 { transition-delay: 0.30s; }
.animate-delay-4 { transition-delay: 0.40s; }

/* ============================================
   5. GALERIA — zoom + cursor
   ============================================ */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}
.gallery-image {
    display: block;
    width: 100%;
    transition: transform 0.45s ease;
}
.gallery-item:hover .gallery-image {
    transform: scale(1.09);
}

/* ============================================
   6. LIGHTBOX
   ============================================ */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox-img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.8);
    transition: opacity 0.25s ease;
}
#lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.4rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
#lightbox-close:hover { background: rgba(255,255,255,0.18); }
#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
#lightbox-prev { left: 1.25rem; }
#lightbox-next { right: 1.25rem; }
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(255,255,255,0.18); }
#lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ============================================
   CARDS DO CARDÁPIO
   ============================================ */
.menu-card {
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.menu-card:hover {
    border-color: rgba(251,191,36,0.45) !important;
    box-shadow: 0 0 28px rgba(251,191,36,0.08);
    transform: translateY(-3px);
}
.menu-card .card-img {
    transition: transform 0.45s ease;
}
.menu-card:hover .card-img { transform: scale(1.05); }

/* ============================================
   FORMULÁRIO — labels flutuantes
   ============================================ */
.floating-field { position: relative; }
.floating-field input,
.floating-field textarea,
.floating-field select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.375rem;
    padding: 1.5rem 1rem 0.5rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
}
.floating-field input:focus,
.floating-field textarea:focus,
.floating-field select:focus { border-color: #fbbf24; }
.floating-field label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}
.floating-field input:focus ~ label,
.floating-field textarea:focus ~ label,
.floating-field input:not(:placeholder-shown) ~ label,
.floating-field textarea:not(:placeholder-shown) ~ label {
    top: 0.4rem;
    font-size: 0.62rem;
    color: #fbbf24;
}

/* ============================================
   CARROSSEL DE DEPOIMENTOS
   ============================================ */
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 calc(33.333% - 0.667rem);
    margin-right: 1rem;
}
@media (max-width: 768px) {
    .carousel-slide { flex: 0 0 calc(100% - 1rem); }
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 1rem;
}
.carousel-btn:hover {
    background: rgba(251,191,36,0.2);
    border-color: #fbbf24;
}
.carousel-btn-prev { left: -1.25rem; }
.carousel-btn-next { right: -1.25rem; }
.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: #fbbf24;
    transform: scale(1.4);
}

/* ============================================
   BANNER SLIDESHOW
   ============================================ */
.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s ease-in-out;
}
.banner-slide.active  { opacity: 0.5; }
.banner-slide.inactive { opacity: 0; }
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.banner-dot.active {
    background: #fbbf24;
    transform: scale(1.35);
}

/* ============================================
   7. WHATSAPP FLUTUANTE
   ============================================ */
#whatsapp-btn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9000;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
#whatsapp-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #fff;
}
/* Pulso sutil */
#whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37,211,102,0.25);
    animation: whatsapp-pulse 2.5s ease infinite;
}
@keyframes whatsapp-pulse {
    0%,100% { transform: scale(1);   opacity: 0.6; }
    50%      { transform: scale(1.3); opacity: 0; }
}

/* ============================================
   SIDEBAR ADMIN
   ============================================ */
.sidebar-link.active {
    background-color: #374151;
    color: #fbbf24;
}
.menu-category-btn {
    transition: background-color 0.2s ease, color 0.2s ease;
}