:root {
    /* Color Palette: Editorial Minimalist */
    --bg-cream: #FDFBF7;
    --text-charcoal: #2A2A2A;
    --text-muted: #666666;
    --moss-green: #3B5341;
    --moss-green-light: #4A6B53;
    
    --border-light: rgba(42, 42, 42, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    
    font-size: 16px;
}

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

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

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, .highlight-serif {
    font-family: 'Lora', serif;
    color: var(--moss-green);
    font-weight: 500;
}

.highlight-serif {
    font-style: italic;
    color: var(--moss-green-light);
}

p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    padding-left: 8%; /* Push everything a bit more to the center/right on large screens */
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    padding-left: 8%;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-charcoal);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-charcoal);
}

/* Button */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--moss-green);
    color: var(--bg-cream);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--moss-green);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--moss-green);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 140px 5% 4rem;
}

.editorial-panel {
    max-width: 600px;
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--moss-green-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-image-container {
    height: 80vh;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

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

/* Manifesto Section */
.manifesto {
    padding: 8rem 5%;
    background-color: var(--moss-green);
    color: var(--bg-cream);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.manifesto-image-container {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

.editorial-box {
    text-align: left;
}

.manifesto h2 {
    font-size: 3.5rem;
    color: var(--bg-cream);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.manifesto-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(253, 251, 247, 0.9);
}

/* Pilares */
.pilares {
    padding: 8rem 5%;
    background-image: linear-gradient(rgba(42, 42, 42, 0.6), rgba(42, 42, 42, 0.6)), url('pilares_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-cream);
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--bg-cream);
}

.section-header p {
    color: rgba(253, 251, 247, 0.9);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pilar-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(253, 251, 247, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.pilar-card:hover {
    transform: translateY(-5px);
    background: rgba(253, 251, 247, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--bg-cream);    
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.card-icon i {
    width: 32px;
    height: 32px;
}

.pilar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bg-cream);
}

.pilar-card p {
    font-size: 1rem;
    color: rgba(253, 251, 247, 0.9);
}

/* Produtos Section */
.produtos {
    padding: 4rem 5% 10rem;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.produto-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.produto-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.produto-card:hover .produto-img {
    transform: scale(1.05);
}

.produto-info {
    text-align: left;
}

.produto-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.produto-info p {
    font-size: 0.95rem;
}

.produto-preco {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--bg-cream);
    color: var(--moss-green);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    font-family: 'Lora', serif;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Contactos Section */
.contactos {
    padding: 6rem 5%;
    background-color: var(--bg-cream);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-cream);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--moss-green);
    box-shadow: 0 0 0 3px rgba(59, 83, 65, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--border-light);
    background: var(--bg-cream);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
}


@media (max-width: 992px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
    }
    .manifesto-image-container {
        height: 400px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
        gap: 2rem;
    }
    
    .editorial-panel {
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-image-container {
        height: 50vh;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-cream);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

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

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Logo and Nav Adjustments --- */
.brand-logo-main {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.brand-logo-footer {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.brand-text, .brand-text-footer {
    display: none; /* Hide the text if we truly want the logo to shine */
}

.nav-cabazes-btn {
    font-weight: 600 !important;
    color: var(--moss-green) !important;
    border-bottom: 2px solid transparent;
}
.nav-cabazes-btn:hover {
    border-bottom: 2px solid var(--moss-green);
}

.navbar.scrolled .brand-logo-main {
    height: 50px; /* shrink slightly when scrolled */
}


/* --- Logo Visibility Fix --- */
.brand-logo-main {
    height: 110px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-logo-footer {
    height: 120px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.2);
}

.navbar.scrolled .brand-logo-main {
    height: 80px;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: #fff;
    color: var(--text-charcoal);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    border-left: 4px solid var(--moss-green);
    animation: slideInRight 0.3s ease forwards;
    transition: opacity 0.3s ease;
}

.toast.hiding {
    opacity: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- WhatsApp Specific --- */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #25D366;
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    transform: translateY(-3px);
}

.whatsapp-float span {
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-float span {
        display: inline;
    }
}

