/* ==========================================================================
   Carla Bolos - Modern Gourmet Bakery Stylesheet
   ========================================================================== */

/* Design Tokens */
:root {
    --primary: #c88d76;          /* Terracota Doce / Rosa Queimado */
    --primary-hover: #b57a63;
    --secondary: #634832;        /* Chocolate Nobre */
    --accent: #d4af37;           /* Dourado Sutil */
    --bg-cream: #faf7f2;         /* Creme Pastel / Fundo Geral */
    --bg-card: #ffffff;
    --text-main: #3a322c;
    --text-muted: #73675c;
    --whatsapp: #25d366;
    --whatsapp-hover: #20bd5a;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 4px 12px rgba(99, 72, 50, 0.05);
    --shadow-md: 0 10px 30px rgba(99, 72, 50, 0.08);
    --shadow-lg: 0 20px 40px rgba(99, 72, 50, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Layout Utilities */
.section {
    padding: 5rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
    font-style: italic;
}

.section-tagline {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.rounded-img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
}

.shadow {
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.05rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(199, 141, 118, 0.15);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(199, 141, 118, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(60, 40, 25, 0.75) 0%, rgba(40, 25, 15, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features */
.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(199, 141, 118, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Confeiteira Section */
.confeiteira-section {
    background-color: #ffffff;
}

.confeiteira-images-mosaic {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.mosaic-main {
    width: 82%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mosaic-secondary {
    position: absolute;
    bottom: -2.5rem;
    right: 0;
    width: 50%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 6px solid #ffffff;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
    .confeiteira-images-mosaic {
        max-width: 360px;
        margin-bottom: 3rem;
    }
}

/* Acervo Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 340px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background-color: #ffffff;
    border: 1px solid rgba(199, 141, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    background: #ffffff;
    transition: transform 0.5s ease;
}
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 72, 50, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.acervo-cta {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.acervo-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-contact h4 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-contact-link:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--whatsapp);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-hover);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Instagram Carousel Styles */
.instagram-section {
    background-color: #ffffff;
    border-top: 1px solid rgba(199, 141, 118, 0.15);
}

.insta-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.insta-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
}

.insta-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.insta-card {
    flex: 0 0 240px;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.insta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 72, 50, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: var(--transition);
}

.insta-card:hover img {
    transform: scale(1.1);
}

.insta-card:hover .insta-card-overlay {
    opacity: 1;
}

.insta-prev, .insta-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--secondary);
    border: 1px solid rgba(199, 141, 118, 0.3);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.insta-prev { left: -22px; }
.insta-next { right: -22px; }

.insta-prev:hover, .insta-next:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Cardápio Section */
.cardapio-section {
    background-color: var(--bg-cream);
}

.cardapio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cardapio-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(199, 141, 118, 0.2);
}

.cardapio-card.span-2 {
    grid-column: 1 / -1;
}

.cardapio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(199, 141, 118, 0.2);
}

.cardapio-header i {
    font-size: 1.75rem;
    color: var(--primary);
}

.cardapio-header h3 {
    font-size: 1.85rem;
    margin: 0;
}

.cardapio-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cardapio-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.05rem;
    border-bottom: 1px dashed rgba(115, 103, 92, 0.15);
    padding-bottom: 0.5rem;
    gap: 1rem;
}

.cardapio-list li span {
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
}

.cardapio-list li strong {
    color: var(--primary);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cardapio-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(199, 141, 118, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.recheios-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sub-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.simple-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simple-list li {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
}

.simple-list li::before {
    content: "♥";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.adicionais-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.retirada-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: rgba(99, 72, 50, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.95rem;

}

.retirada-box p {
    margin-bottom: 0.5rem;
}

.retirada-box i {
    color: var(--primary);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .cardapio-grid, .recheios-subgrid, .adicionais-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: #ffffff !important;
}

.float-whatsapp:hover {
    background-color: #1eaa53;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.6rem 0;
    }

    .header-actions .btn-primary {
        display: none; /* Esconde no topo fixo no celular para não encavalar com o ícone hambúrguer */
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        background-color: rgba(199, 141, 118, 0.18);
        border: 1px solid rgba(199, 141, 118, 0.35);
        cursor: pointer;
        padding: 0;
    }

    .hamburger-bar {
        display: block;
        width: 22px;
        height: 3px;
        background-color: #634832;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background-color: var(--bg-cream);
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid rgba(199, 141, 118, 0.2);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-menu.active {
        clip-path: circle(140% at 100% 0);
    }

    .nav-link {
        font-size: 1.05rem;
        text-align: center;
        padding: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: flex !important;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        font-size: 0.95rem;
        padding: 0.9rem 1.25rem;
        line-height: 1.3;
    }

    .acervo-cta {
        padding: 1.75rem 1.25rem;
    }

    /* Galeria no Celular idêntica e proporcional */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 280px;
    }

    .gallery-item img {
        padding: 0.5rem;
    }
}
