/* =============================================
   Brazilian Greens - Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --green-dark: #1a5d1a;
    --green-primary: #2e7d32;
    --green-light: #4caf50;
    --green-pale: #e8f5e9;
    --yellow-accent: #ffd54f;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #9e9e9e;
    --gray-dark: #333333;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-small: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3 {
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--green-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn-outline:hover {
    background-color: var(--green-pale);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: var(--green-dark);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    padding: 60px 0;
    background-color: var(--white);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-medium);
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--green-pale);
}

.product-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 20px;
}

.product-name {
    color: var(--green-dark);
    margin-bottom: 8px;
}

.product-description {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
}

.product-weight {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.product-card .btn {
    width: 100%;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--white);
    text-align: center;
}

.contact h2 {
    color: var(--white);
}

.contact > .container > p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-medium);
    transition: var(--transition);
}

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

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-content h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
}

.modal-product {
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-form {
    margin: 20px 0;
}

.modal-form input[type="email"],
.modal-form input[type="text"],
.modal-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-small);
    font-size: 1rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.modal-form input[type="email"]:focus,
.modal-form input[type="text"]:focus,
.modal-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--green-primary);
}

.modal-form .btn {
    width: 100%;
}

.modal-divider {
    color: var(--gray-medium);
    margin: 20px 0;
    position: relative;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--gray-light);
}

.modal-divider::before {
    left: 0;
}

.modal-divider::after {
    right: 0;
}

.modal-contact {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-contact .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-contact {
        flex-direction: column;
    }
}

/* Stats Counter (for admin reference) */
.stats-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--green-dark);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    display: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}
