﻿:root {
    --blue: #002B5B;
    --green: #00B14F;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #64748b;
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, .logo-container {
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.header {
    background: var(--blue);
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo-full { height: 45px; width: auto; }
.logo-mobile-icon { display: none; height: 38px; width: auto; }

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
}

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

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, var(--blue), #004085);
    color: var(--white);
    padding: 8rem 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.hero-home {
    min-height: 85vh;
    text-align: left;
    align-items: flex-start;
    background: linear-gradient(rgba(0,43,91,0.85), rgba(0,43,91,0.85)), url('assets/ribeirao-preto.png') center/cover;
}

.history-tag {
    background: var(--green);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 2rem;
    display: inline-block;
}

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

.hero h1 span { color: var(--green); }

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.9;
    font-weight: 300;
}

/* Sections */
section { padding: 8rem 10%; }

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--blue);
    font-weight: 900;
}

.section-title h2 span { color: var(--green); }

.divider {
    width: 60px;
    height: 5px;
    background: var(--green);
    margin: 1.5rem auto 0;
    border-radius: 5px;
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

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

/* Commercial Argument Section */
.commercial-argument { background: #f8fafc; }

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

/* Buttons */
.cta-button, .contact-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.contact-button {
    background: linear-gradient(135deg, var(--green), #00a046);
    color: var(--white);
    border-radius: 12px;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(0, 177, 79, 0.2);
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 177, 79, 0.3);
    filter: brightness(1.1);
}

/* Contact Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    padding: 6rem 10%;
    align-items: stretch;
}

.contact-form-card {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fcfdfe;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 177, 79, 0.1);
}

/* Map */
.map-section { padding: 0 !important; height: 450px; overflow: hidden; }
.map-section iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.2) contrast(1.1); }

/* Footer */
.footer {
    background: #020b16;
    color: var(--white);
    padding: 6rem 10% 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer h3 {
    color: var(--green);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover { opacity: 1; color: var(--green); padding-left: 10px; }

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Floatings */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--blue);
    z-index: 999;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid var(--green);
}

.contact-bar-item {
    padding: 0.8rem;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.contact-bar-item i { font-size: 1.2rem; color: var(--green); }

/* Mobile Responsive */
@media (max-width: 1024px) {
    .menu-btn { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1500;
    }
    .nav.open { right: 0; }
    .logo-full { display: none; }
    .logo-mobile-icon { display: block; }
    
    section { padding: 4rem 6% !important; }
    .hero { padding: 6rem 6% !important; height: auto !important; min-height: 45vh; }
    .hero h1 { font-size: 2.5rem !important; }
    .grid-3, .footer-grid, .company-grid, .contact-container { grid-template-columns: 1fr !important; gap: 3rem !important; }
    
    .footer-grid { text-align: center; }
    .mobile-contact-bar { display: grid; }
    .whatsapp-float { bottom: 80px; width: 50px; height: 50px; font-size: 25px; }
    .footer { padding-bottom: 8rem; }
    
    .form-group[style*="display: grid"] { grid-template-columns: 1fr !important; gap: 1rem !important; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Catalog Specific */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--white);
    border: 1px solid rgba(0,43,91,0.1);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 800;
    color: var(--blue);
    transition: var(--transition);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-btn.active, .category-btn:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 43, 91, 0.2);
}

.product-section {
    display: none;
    animation: fadeInUp 0.6s ease;
    margin-bottom: 4rem;
}

.product-section.active {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item-v {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.product-item-v:hover { transform: translateY(-8px); }

.product-item-v img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info { padding: 1.5rem; }
.product-info h4 { color: var(--blue); margin-bottom: 0.5rem; font-size: 1.1rem; }
.product-examples { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* FINAL POLISHES */
.header {
    position: fixed !important; /* Force fixed at top */
    width: 100%;
    top: 0;
}

body {
    padding-top: 70px; /* Offset for fixed header */
}

/* Search Bar Mobile Fix */
@media (max-width: 768px) {
    .search-container i {
        right: 25px !important;
        font-size: 0.9rem;
    }
    
    #productSearch {
        padding: 1rem 3rem 1rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Contact Card Centering */
.contact-container {
    justify-content: center;
}

.contact-form-card {
    align-self: center;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 5% !important;
    }
}
