/* Botão WhatsApp flutuante */
#whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
}

@media (min-width: 768px) {
    #whatsapp-float {
        right: 1.25rem;
        bottom: 1.25rem;
    }
}
/* Espaçamento mínimo entre imagens Quem Somos no mobile */
.images-column img:first-child {
    margin-bottom: 0.35rem;
}
@media (min-width: 768px) {
    .images-column img:first-child {
        margin-bottom: 0;
    }
}
@media (min-width: 768px) {
    #home .container > div:first-child {
        margin-left: 3.5rem;
        align-items: flex-end;
        text-align: right;
    }
}
.home-fachada-circle img {
    transition: width 0.2s, height 0.2s;
}
@media (min-width: 768px) {
    #home .container {
        gap: 2.5rem !important;
    }
    .home-fachada-circle img {
        width: 26rem;
        height: 26rem;
    }
}
/* Background da seção home com overlay */
#home {
    background-color: var(--color-beige);
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23eadfcf"/><ellipse cx="20" cy="20" rx="18" ry="8" fill="%23fdf8f2" fill-opacity="0.5"/></svg>');
    background-size: 120px 120px;
    background-repeat: repeat;
    position: relative;
}

.home-fachada-circle {
    box-shadow: 0 8px 32px 0 rgba(161,107,86,0.18), 0 1.5px 6px 0 rgba(161,107,86,0.10);
}
:root {
    --color-primary: #A16B56;
    --color-dark-brown: #4A2C2A;
    --color-beige: #EADFCF;
    --color-cream: #FDF8F2;
}

body {
    background-color: var(--color-cream);
    color: var(--color-dark-brown);
}

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

.font-body {
    font-family: 'Montserrat', sans-serif;
}

.bg-primary { background-color: var(--color-primary); }
.bg-dark-brown { background-color: var(--color-dark-brown); }
.bg-beige { background-color: var(--color-beige); }
.bg-cream { background-color: var(--color-cream); }
.text-primary { color: var(--color-primary); }
.text-dark-brown { color: var(--color-dark-brown); }
.text-cream { color: var(--color-cream); }
.border-beige { border-color: var(--color-beige); }
.bg-cream\/80 { background-color: rgba(253, 248, 242, 0.8); }
.bg-cream\/95 { background-color: rgba(253, 248, 242, 0.95); }
.bg-primary\/90 { background-color: rgba(161, 107, 86, 0.9); }
.text-cream\/70 { color: rgba(253, 248, 242, 0.7); }

#header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
}

#map .leaflet-popup-content-wrapper,
#map .leaflet-popup-tip {
    background-color: var(--color-dark-brown);
    color: var(--color-cream);
    font-family: 'Montserrat', sans-serif;
}

#map a.leaflet-popup-close-button {
    color: var(--color-cream) !important;
}

/* Header logo sizing */
.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: inline-block;
    transform-origin: left center;
    transform: scale(3.2); /* visually larger without increasing layout box */
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .site-logo {
        width: 56px;
        height: 56px;
    transform: scale(2.6);
    }
}

/* Centered header title (visual only) */
.header-center-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    pointer-events: auto; /* allow click */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 70; /* ensure above header controls */
    text-decoration: none;
}

@media (min-width: 768px) {
    .header-center-title {
        font-size: 1.4rem;
    }
}

/* Hide the centered title on small screens to avoid overlap */
@media (max-width: 767px) {
    .header-center-title { display: none; }
}

/* Ensure the header container provides a positioning context for the absolute title */
#header .container { position: relative; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery styles for Bolos e Doces */
#bolos-gallery img.gallery-item {
    width: 100%;
    height: 10rem; /* fallback height */
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Thumbnails scaling and spacing for Quem Somos images */
.images-column { margin-right: 0.5rem; gap: 0.75rem; display:flex; align-items:center; }
.images-column img { margin-right: 0.5rem; }
.thumb-scale {
    display: inline-block;
    object-fit: cover;
    transform-origin: center center;
    transform: scale(1.2); /* visually larger without changing layout height */
    transition: transform 0.15s ease;
    margin: 0; /* reset any browser default margins */
}

@media (min-width: 768px) {
    .thumb-scale { transform: scale(1.4); }
    .images-column img { margin-right: 0.75rem; }
}

#bolos-gallery img.gallery-item:hover {
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.02);
}

/* Lightbox overlay (hidden by default, toggled via JS by removing .hidden) */
#lightbox {
    display: none; /* we'll use flex via JS when active */
}

#lightbox.show {
    display: flex;
}

#lightbox img {
    border-radius: 0.5rem;
}

#lightbox-close {
    background: transparent;
    border: none;
    cursor: pointer;
}
