@import url('https://fonts.googleapis.com/css2?family=Candara:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Candara Bold', sans-serif;
    line-height: 1.6;
    color: #673703; 
    background-color: #f8f8f8;
    overflow-x: hidden; 
}

:root {
    --malbec: #673703; 
    --greenery: #8BC34A;
    --chili-pepper: #B71C1C;
    --cherry-marrogany: #65000B;
    --hazelnut: #7B3F00; 
    --potters-clay: #673703;
    --cacau-orange: #8BC34A;
    --whatsapp-green: #25D366;
    --black-white-bg: #E0E0E0;
    --black-white-text: #333;
    --text-dark: #333;
    --text-light: #f8f8f8;
}

h1, h2, h3 {
    color: var(--malbec); 
    margin-bottom: 1rem;
    font-weight: bold; 
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

a {
    color: var(--potters-clay);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cacau-orange);
}

.header {
    background-color: transparent; 
    padding: 1rem 0;
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; 
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease; 
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(1000px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px; 
}

.logo {
    display: flex;
    align-items: flex-end;
    font-family: 'Satisfy';
    font-size: 0.8 rem;
}

.logo img {
    height: 60px; 
    width: auto;
}

.navbar {
    display: flex; 
    flex-grow: 1; 
    justify-content: flex-end;
    align-items: center;
}

.navbar a {
    color: var(--malbec);
    margin-left: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative; 
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--cacau-orange);
    left: 0;
    bottom: -5px;
    transition: width 0.4s ease; /* Animação do sublinhado */
}

.navbar a:hover::after {
    width: 100%; 
}

.hamburger-menu {
    display: none; 
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--malbec);
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar.active {
    display: flex; 
    flex-direction: column;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
    gap: 15px; 
}

.hero-section {
    position: relative;
    height: 100vh;    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden; 
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255); 
    z-index: -1;
}

.hero-content {
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #673703;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #673703;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.whatsapp-buy-btn {
    display: inline-block;
    background-color: var(--whatsapp-green); 
    color: white;
    padding: 15px 30px;
    border-radius: 50px; 
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.whatsapp-buy-btn:hover {
    animation: vibrateAndFlashBW 2s infinite alternate; 
}

@keyframes vibrateAndFlashBW {
    0% { 
        transform: translateX(0) scale(1.02); 
        background-color: var(--whatsapp-green); 
        color: white;
    }
    25% { 
        transform: translateX(-1px) scale(1.03); 
        background-color: var(--black-white-bg); 
        color: var(--black-white-text); 
    }
    50% { 
        transform: translateX(0) scale(1.04); 
        background-color: var(--whatsapp-green); 
        color: white;
    }
    75% { 
        transform: translateX(1px) scale(1.03); 
        background-color: var(--black-white-bg); 
        color: var(--black-white-text);
    }
    100% { 
        transform: translateX(0) scale(1.02); 
        background-color: var(--whatsapp-green); 
        color: white;
    }
}

.whatsapp-buy-btn i {
    margin-left: 10px;
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section h2 {
    text-shadow: 2px 2px 2px rgba(255, 252, 252, 0.874);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: justify;
}

.products-section h2 {
    text-shadow: 2px 2px 2px rgba(255, 252, 252, 0.874);
}

.products-section {
    background-color: var(--cacau-orange); 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 10px;
    margin-top: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
}

.product-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 80%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card h3 {
    color: var(--malbec);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-card p {
    color: #555;
    font-size: 0.95rem;
}

.product-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--chili-pepper);
    opacity: 0; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-icon {
    opacity: 1; 
    animation: pulse 1s infinite; 
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cafe-section h2 {
    text-shadow: 2px 2px 2px rgba(255, 252, 252, 0.874);
}

.cafe-section {
    background-color: #ffe0b2; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cafe-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 30px;
}

.cafe-content img {
    max-width: 30%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 0px rgba(0, 0, 0, 0.1);
}

.cafe-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.location-section h2 {
    text-shadow: 2px 2px 2px rgba(255, 252, 252, 0.874);
}

.map-container {
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.directions-btn {
    display: inline-block;
    background-color: var(--potters-clay);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.directions-btn:hover {
    background-color: var(--hazelnut);
}

.footer {
    background-color: var(--malbec);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--bright-yellow);
}

.footer-links {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--greenery);
}

.social-buttons-fixed-page {
    position: fixed;
    bottom: 75px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    background-color: var(--potters-clay);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.whatsapp-btn-fixed {
    background-color: #25D366; 
}

.social-btn.instagram-btn-fixed {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); /* Gradiente do Instagram */
}

#backToTopBtn {
    display: none; 
    position: fixed;
    bottom: 140px; 
    right: 20px;
    background-color: var(--cacau-orange);
    color: white;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#backToTopBtn:hover {
    background-color: var(--bright-yellow);
    transform: scale(1.1);
}


@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }

    .navbar {
        display: flex;
    }

    .header-content {
        max-width: none;
        padding: 0 40px;
    }

    .logo {
        margin-right: auto; 
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content p {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr); 
    }

    .cafe-content {
        flex-direction: row; 
        text-align: left;
    }

    .cafe-content img {
        width: 50%;
        margin-right: 30px;
    }

    .cafe-content p {
        width: 50%;
        text-align: left;
    }
    
    #backToTopBtn {
        bottom: 20px;
    }

    .social-buttons-fixed-page {
        display: flex;
    }
}

@media (max-width: 767px) {
    .navbar {
        display: none;
    }

    .hamburger-menu {
        display: flex; 
    }

    .header-content {
        padding: 0 15px; 
    }

    .logo img {
        height: 40px; 
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .whatsapp-buy-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    section {
        padding: 50px 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr; 
    }

    .cafe-content img {
        margin-bottom: 20px;
    }

    .footer-links a {
        display: block;
        margin-bottom: 10px;
    }
}