/* --- Design System --- */
:root {
    --primary-color: #4A3728; /* Espresso */
    --secondary-color: #7C8470; /* Sage Green */
    --accent-color: #D4A373; /* Golden Bread */
    --bg-color: #F9F7F2; /* Cream/Off-white */
    --white: #FFFFFF;
    --text-color: #2D241E;
    --text-muted: #6B5E55;
    
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(74, 55, 40, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.serif {
    font-family: var(--serif-font);
}

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

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

ul {
    list-style: none;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo h1 {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo h1, .logo h1 span {
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .logo h1 {
    color: var(--primary-color);
}

.logo h1 span {
    font-size: 0.7rem;
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2px;
    color: #D4B483;
}

header.scrolled .logo h1 span {
    color: #D4B483;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

header.scrolled .nav-links a {
    color: var(--text-muted);
}

header.scrolled .nav-links a::after {
    background-color: var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 55, 40, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%), rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Features Section --- */
.features {
    padding: 6rem 2rem;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    background-color: var(--white);
    border: 1px solid rgba(74, 55, 40, 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(74, 55, 40, 0.08);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(10deg);
}

.feature-icon i {
    width: 24px;
    height: 24px;
}

.feature-text h3 {
    font-family: var(--serif-font);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* --- About Section --- */
.about {
    padding: 8rem 0;
    background-color: var(--white);
}

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

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

.about-visual {
    position: relative;
}

.visual-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 30px 30px 0 var(--bg-color);
}

/* --- Products Section --- */
.products {
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
}

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

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-family: var(--serif-font);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- Location Section --- */
.location {
    padding: 8rem 0;
    background-color: var(--white);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(74, 55, 40, 0.1);
}

.map-container iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.1);
}

/* --- Footer --- */
footer {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Aumentado para ficar mais visível como pedido */
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color) 0%, rgba(74, 55, 40, 0.8) 100%);
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.footer-brand h2 span {
    display: block;
    font-size: 0.8rem;
    color: #D4B483;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.logo-link {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 247, 242, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

.close-menu i {
    width: 32px;
    height: 32px;
}

.mobile-nav {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-nav-links {
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
}

.mobile-menu-footer {
    margin-top: 1rem;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features, .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo h1 span {
        font-size: 0.6rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .about-visual {
        margin-bottom: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .features, .product-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 3rem;
    }
    .about-text h2, .section-header h2 {
        font-size: 2.2rem;
    }
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.bread-info-icon {
    width: 20px;
    height: 20px;
    margin-bottom: -2px; /* Fine-tune alignment with text */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

.modal-text {
    padding: 3rem;
}

.modal-text h2 {
    margin: 1rem 0 1.5rem;
}

.modal-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-text {
        padding: 2rem;
    }
}
