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

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

/* Typography & Buttons */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    color: #0056b3;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    color: #222;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0056b3;
    /* Main Blue */
    color: #fff;
    border: 2px solid #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: #fff;
    color: #0056b3;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Top Bar */
.top-bar {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    color: #fff;
    margin-right: 20px;
    font-size: 13px;
}

.top-contact a:hover {
    color: #e0e0e0;
}

.top-contact i {
    margin-right: 5px;
}

.top-social a {
    color: #fff;
    margin-left: 15px;
}

.top-social a:hover {
    color: #e0e0e0;
}



.btn-whatsapp-cta {
    background-color: #25d366;
    color: #fff;
    border: 2px solid #25d366;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp-cta:hover {
    background-color: #1ebc51;
    border-color: #1ebc51;
    color: #fff;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    /* Remove padding to let logo dictate height if needed, or keep it small */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 80px;
    /* Fixed height to ensure logo has space */
}



.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo a {
    display: flex;
    /* Remove block to avoid extra height issues if any */
    align-items: center;
}

.logo-img {
    height: 70px;
    /* Reduced to fit in 80px header with some breathing room */
    width: auto;
    /* Removed absolute/relative positioning hacks */
    z-index: 10;
}



/* Nav */
.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style: none;
}

.nav-list li a {
    text-decoration: none;
    font-weight: 500;
    color: #444;
    font-size: 15px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active-link {
    color: #0056b3;
}

/* Underline Selector */
.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #0056b3;
    /* Or the green #7ab800 if preferred, using blue for now to match theme */
    transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li a.active-link::after {
    width: 100%;
}

/* Remove underline from CTA button */
.nav-list li a.btn-whatsapp-cta::after {
    display: none;
}

.btn-contact {
    background-color: #0056b3;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: #004494;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('img/banner.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

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

.hero-content h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h2 span {
    color: #0056b3;
    /* Accent Cyan */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 80px 0;
}

/* About Us */
.about {
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: #0056b3;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
}

.about-list i {
    color: #0056b3;
    margin-right: 10px;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    border-radius: 8px;
    font-size: 18px;
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Statistics */
.stats {
    background-color: #004494;
    /* Slightly darker blue for contrast */
    color: #fff;
    padding: 30px 0;
    /* Reduced padding */
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    /* Reduced max-width */
    margin: 0 auto;
    padding: 20px 0;
    /* Reduced padding */
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Reduced gap */
    flex: 1;
}

.stats-column.left {
    text-align: right;
    align-items: flex-end;
}

.stats-column.right {
    text-align: left;
    align-items: flex-start;
}

.stats-image {
    flex: 0 0 250px;
    /* Reduced image width */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    margin: 0 10px;
}

.stats-image img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Background Shape (House-like) - Now White/Subtle */
.image-bg-shape {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    /* Reduced size */
    height: 280px;
    /* Reduced size */
    background: rgba(255, 255, 255, 0.1);
    /* Subtle white overlay instead of colored gradient */
    clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
    z-index: 1;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Added subtle border */
}

.stat-item {
    position: relative;
    z-index: 2;
}

.stat-item h3 {
    font-size: 32px;
    /* Reduced font size */
    font-weight: 700;
    color: #fff;
    /* White text */
    margin-bottom: 5px;
}

/* Make Vendas count distinct if needed, or keep uniform */
.stats-column.right .stat-item:first-child h3 {
    color: #fff;
    /* White text */
}

.stat-item p {
    font-size: 14px;
    /* Reduced font size */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    /* Off-white text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Separator line style */
.stat-item::after {
    content: '';
    display: block;
    width: 40px;
    /* Reduced width */
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    /* Subtle white line */
    margin-top: 8px;
}

.stats-column.left .stat-item::after {
    margin-left: auto;
    /* Align right */
}

.stats-column.right .stat-item::after {
    margin-right: auto;
    /* Align left */
}


/* Responsive */
@media (max-width: 900px) {
    .stats-container {
        flex-direction: column;
        gap: 40px;
    }

    .stats-column {
        gap: 30px;
        width: 100%;
        text-align: center !important;
        align-items: center !important;
    }

    .stats-column.left .stat-item::after,
    .stats-column.right .stat-item::after {
        margin: 10px auto 0;
        /* Center lines on mobile */
    }

    .image-bg-shape {
        width: 280px;
        height: 320px;
    }

    .stats-image {
        flex: 0 0 auto;
        width: 300px;
        order: -1;
        /* Move image to top on mobile if desired, or keep in middle */
    }
}

/* Products */
.products {
    background-color: #f4f9fc;
    /* Very light blue bg */
}

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

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom-color: #0056b3;
}

.card-icon {
    font-size: 40px;
    color: #0056b3;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-cta {
    margin-top: auto;
    font-weight: 600;
    color: #0056b3;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #f0f8ff;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.card:hover .card-cta {
    background-color: #e6f0fa;
}

/* Services */
.services {
    background-color: #0056b3;
    color: #fff;
}

.services .section-header h2 {
    color: #fff;
}

.services .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.services .section-header h3 {
    color: #0056b3;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    width: 30%;
    min-width: 280px;
    text-align: center;
    transition: 0.3s;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.service-item i {
    font-size: 36px;
    color: #0056b3;
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Brands */
.brands {
    background-color: #f4f9fc;
    /* Light Blue to alternate */
}

.brands-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.brands-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    gap: 50px;
    /* Space between items */
}

.brand-item {
    flex: 0 0 auto;
    width: 150px;
    /* Fixed width for better control */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    transition: filter 0.3s;
}

.brand-item:hover {
    opacity: 1;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
        /* Move half the width (since we have 2 sets) - ADJUST IF NEEDED depending on gap */
        /* Better calculation: translateX(-50%) of the track width if it contains exactly 2 copies? 
           Actually, the track is flex. The total width is (itemWidth + gap) * numItems.
           With 2 sets, we want to move by the width of 1 set.
           Let's try standard percentage.
        */
        transform: translateX(calc(-200px * 8));
        /* Approximate width of set. Better to verify visual */
    }
}

/* More robust keyframe if widths are fluid */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * (150px + 50px) * 8));
        /* Item width + gap * number of unique items */
    }
}

/* Testimonials */
.testimonials {
    background-color: #fff;
    /* White to alternate */
}

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

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 60px;
    color: #e0e0e0;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info strong {
    display: block;
    color: #222;
}

.client-info span {
    font-size: 12px;
    color: #888;
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: #0056b3;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info p {
    color: #666;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: #e6f0fa;
    color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.info-item h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 14px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 18px;
}

.social-icons a:hover {
    color: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 12px;
}

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

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Modal Product Grid System */
.modal-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.modal-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    height: 100%;
}

.modal-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-image {
    width: 100%;
    height: 140px;
    background-color: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #bbb;
}

.modal-product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.modal-product-details {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.modal-product-btn {
    width: 100%;
    background-color: #25d366;
    color: white;
    padding: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
    margin-top: auto;
}

.modal-product-btn:hover {
    background-color: #128c7e;
    color: white;
}


.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 10px;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        /* Hide off-screen */
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        padding: 80px 30px;
        transition: left 0.4s ease;
        z-index: 1001;
        align-items: flex-start;
    }

    .nav-list.active {
        left: 0;
        /* Slide in */
    }

    .nav-list li {
        margin-bottom: 15px;
    }

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

    .hero-content h2 {
        font-size: 36px;
    }

    .about-container {
        flex-direction: column;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Fix: Hero Buttons Stacking */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        margin-left: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Fix: Catalog Button Spacing */
    #produtos-preview .full-width {
        margin-top: 20px;
    }

    /* Fix: Contact Section Top Gap */
    #contato {
        padding-top: 20px;
    }
}

/* Product Modal - Added Fix */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background-color: #fefefe;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    animation: slideUp 0.3s forwards;
    position: relative;
    padding: 0;
}

@keyframes slideUp {
    to {
        transform: scale(1);
    }
}

.modal-header {
    background: #0056b3;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.modal-body {
    padding: 20px;
}

/* Ensure product items look good in modal */
.modal-body .product-list {
    display: block !important;
    /* Force show in modal */
    margin-top: 0;
    border-top: none;
}

.modal-body .product-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.modal-body .product-item:last-child {
    border-bottom: none;
}

/* Hide product list in card always */
.card .product-list {
    display: none !important;
}

/* Testimonials Carousel */
.testimonials-carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-testimonials 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    flex: 0 0 350px;
    white-space: normal;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 60px;
    color: #e0e0e0;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    z-index: 0;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
}

.client-info strong {
    display: block;
    color: #222;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 13px;
    color: #888;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
    }
}