:root {
    --primary-green: #065f46;      /* Deep Teal/Green */
    --accent-green: #10b981;       /* Vibrant Green for CTAs */
    --accent-light: #ecfdf5;       /* Very light mint */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --white: #ffffff;
    --primary-blue: #1e3a8a;       /* Brand Blue */
    --secondary-blue: #3b82f6;     /* Lighter Blue */
    --primary-orange: #f97316;     /* Brand Orange */
    --footer-bg: #111827;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-dark);
}

h2.with-line::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--primary-orange);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

/* Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 100px 10% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

#hero {
    opacity: 1 !important;
    transform: none !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(6, 95, 70, 0.6), rgba(6, 95, 70, 0.7)), 
                url('images/hero_bg.jpg') center/cover;
    color: white;
    text-align: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--accent-green);
    color: white;
    border: none;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Institutional Cards */
.institutional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Products Section */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    color: var(--primary-blue);
}

.category-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.badge.orange { background: var(--primary-orange); }
.badge.blue { background: var(--secondary-blue); }
.badge.accent { background: var(--accent-green); }
.badge.green { background: var(--primary-green); }

.product-image {
    height: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-image i {
    width: 48px;
    height: 48px;
    opacity: 0.2;
    color: var(--primary-blue);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

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

.view-details {
    display: inline-block;
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.view-details:hover {
    padding-left: 5px;
}

.tech-spec {
    display: none; /* Hide for now to match the clean mockup look */
}

/* Bottom CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(6, 95, 70, 0.95), rgba(6, 95, 70, 0.95)), 
                url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&q=80') center/cover;
    color: white;
    text-align: center;
    padding: 6rem 10%;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

input, textarea {
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(243, 146, 93, 0.1);
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 10% 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

@media (max-width: 992px) {
    section {
        padding: 60px 5% 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    #institucional div, 
    #equipe div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    footer div {
        grid-template-columns: 1fr 1.5fr !important;
    }
}

@media (max-width: 576px) {
    footer div {
        grid-template-columns: 1fr !important;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.modal-body-image {
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-body-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-body-info {
    padding: 3rem; /* Reverting to original padding as we'll fix the badge itself */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-body-info .badge {
    position: static;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: fit-content;
}

.modal-body-info h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.modal-body-info .subtitle {
    font-weight: 700;
    color: #db2777; /* Rose for highlight as in image */
    font-size: 1.1rem;
}

.modal-body-info p {
    color: var(--text-muted);
    line-height: 1.8;
}

.modal-body-info .highlight {
    font-weight: 700;
    color: #db2777;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    width: fit-content;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body-info {
        padding: 2rem;
    }
}
