/* Reset and Base Styles */
:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --surface-light: #21262d;
    --primary-color: #7bc16c; /* Green from logo */
    --primary-hover: #63a356;
    --primary-glow: rgba(123, 193, 108, 0.4);
    --text-main: #ffffff;
    --text-muted: #c9d1d9;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #128C7E;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography Enhancements */
h1, h2, h3 {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.text-highlight {
    background: linear-gradient(135deg, #7bc16c, #a2e893);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #0d1117;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-secondary:hover {
    background-color: rgba(123, 193, 108, 0.1);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.05);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--surface-light);
}

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

.logo img {
    height: 55px; /* Tamanho equilibrado para a barra */
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(123, 193, 108, 0.15) 0%, transparent 60%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid var(--surface-light);
}

/* Services */
.services {
    padding: 120px 0;
    background-color: var(--surface-color);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--surface-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.service-content {
    padding: 30px;
    text-align: center;
    flex: 1;
}

.service-content .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

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

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(123, 193, 108, 0.15);
    border: 2px solid var(--surface-light);
    filter: grayscale(80%) contrast(1.1) brightness(0.9); /* Tom profissional / cinemático */
    object-fit: cover;
    max-height: 500px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.about-image img:hover {
    filter: grayscale(0%) contrast(1.05) brightness(1); /* Revela a cor original ao passar o mouse */
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(123, 193, 108, 0.3);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
}

/* CTA Banner */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #111a14 0%, var(--bg-color) 100%);
    text-align: center;
    border-top: 1px solid var(--surface-light);
    border-bottom: 1px solid var(--surface-light);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123,193,108,0.05) 0%, transparent 60%);
    z-index: 0;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner .cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 60px;
}

.cta-banner .cta-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .cta-action {
    margin-top: 20px;
}

/* Custom Carousels */
.custom-carousel-wrapper {
    margin: 40px 0;
    position: relative;
    width: 100%;
}

.carousel-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.custom-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px; /* Align items perfectly with padding when snapping */
    gap: 20px;
    padding: 10px;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; /* High performance scrolling iOS */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    min-width: 320px;
    width: 320px;
    max-width: 100%;
    height: 400px;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Ensure it stops on each item */
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--surface-color);
    border: 1px solid var(--surface-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transform: translateZ(0); /* Aceleração de hardware */
    will-change: transform;
}

.carousel-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(123, 193, 108, 0.2);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-item.placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.carousel-btn {
    background-color: var(--surface-light);
    color: var(--text-main);
    border: 1px solid var(--surface-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #0d1117;
    border-color: var(--primary-color);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

/* Contact */
.contact {
    padding: 120px 0;
}

.contact-container {
    display: flex;
    gap: 80px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.15rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.info-list i {
    font-size: 2.2rem;
    color: var(--primary-color);
    background-color: var(--surface-color);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.info-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.info-list a {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.info-list a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    background-color: var(--surface-color);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--surface-light);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #e0e0e0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--surface-light);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 193, 108, 0.2);
}

/* Alerts */
.alert {
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 1.05rem;
}

.alert-success {
    background-color: rgba(123, 193, 108, 0.15);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.alert-error {
    background-color: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid #ff5252;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 80px 0 30px;
    border-top: 1px solid var(--surface-light);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 25px;
}

.footer-logo p {
    color: var(--text-muted);
    max-width: 320px;
    font-size: 1.05rem;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-links a,
.footer-social a {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social a i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--surface-light);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .contact-container {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-container,
    .contact-container {
        flex-direction: column;
    }
    
    .hero {
        padding: 130px 0 80px;
        min-height: auto;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(22, 27, 34, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 30px 20px;
    }
    
    .cta-banner .cta-title {
        font-size: 2rem;
    }
    
    .carousel-item {
        min-width: 100%;
        width: 100%;
        height: 400px;
    }
    
    .carousel-btn {
        display: none;
    }

    .about-image img {
        max-height: 350px;
    }

    .info-list li {
        gap: 15px;
    }

    .info-list i {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .footer-container {
        text-align: center;
        justify-content: center;
    }

    .footer-logo p {
        margin: 0 auto;
    }

    .footer-links, .footer-social {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .carousel-item {
        min-width: 100%;
        width: 100%;
        height: 380px;
    }
    
    .cta-banner .cta-title {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Dynamic Carousel Captions & Partners */
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #fff; padding: 10px; text-align: center; font-size: 14px; font-weight: 500; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.partners { padding: 40px 0; background: #fff; border-top: 1px solid #eee; }
.partner-card:hover { transform: scale(1.05); }

