/* 
   RISSE CHARCUTARIA - PREMIUM STYLESHEET
   Cores: Preto Ônix (#0D0D0D), Dourado Bronze (#A87A42), Marfim (#F1E9DC), Borgonha (#6E1F1C)
*/

:root {
    --primary: #A87A42;
    --primary-dark: #8a6335;
    --primary-light: #c29f6a;
    --bg-dark: #0D0D0D;
    --bg-accent: #1a1a1a;
    --text-light: #F1E9DC;
    --text-muted: #b8b1a5;
    --accent: #6E1F1C;
    --wood: #382418;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
}

.section-tag {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(168, 122, 66, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 10px 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero_bg.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Fixar para evitar desaparecimento no scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,13,13,0.7), rgba(13,13,13,0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
}

.hero-subtitle {
    font-size: 2.5rem;
    color: var(--text-light);
    margin: 20px 0;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px; /* Aumentar margem para evitar sobreposição com indicador */
}

.btn {
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Scroll indicator removed */

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.img-wrapper {
    position: relative;
    padding: 20px;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 2px solid var(--primary);
    z-index: 1;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.5);
}

/* Products Section */
.products-section {
    padding: 120px 0;
    background: var(--bg-accent);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h3 {
    font-size: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg-dark);
    border: 1px solid rgba(168, 122, 66, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
}

.product-img {
    height: 300px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-info {
    padding: 30px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(110, 31, 28, 0.9), rgba(110, 31, 28, 0.9)), url('../images/hero_bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
}

.cta-content h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 40px;
    font-size: 1.4rem;
}

.btn-large {
    font-size: 1.1rem;
    padding: 20px 50px;
}

/* Footer */
.footer {
    padding: 80px 0 30px 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(168, 122, 66, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--primary);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(168, 122, 66, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    background: #1DA851;
}

.tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    white-space: nowrap;
}

.whatsapp-widget:hover .tooltip {
    opacity: 1;
}

/* Animations */
.animate-entrance {
    opacity: 0;
    transform: scale(0.8);
    animation: entrance 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes entrance {
    to { opacity: 1; transform: scale(1); }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: up 1s ease forwards 0.5s;
}

.animate-up-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: up 1s ease forwards 0.8s;
}

.animate-up-delay-more {
    opacity: 0;
    transform: translateY(30px);
    animation: up 1s ease forwards 1.1s;
}

@keyframes up {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-features {
        justify-content: center;
    }
    .img-wrapper::before {
        display: none;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
    .section-header h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    .hero-btns {
        flex-direction: column;
    }
    .cta-content h3 {
        font-size: 2rem;
    }
}
