/* ====================================
   RESPONSIVE CONFIGURATION
==================================== */
:root {
    --breakpoint-xl: 1200px;  /* Desktop Large */
    --breakpoint-lg: 992px;   /* Desktop */
    --breakpoint-md: 768px;   /* Tablet */
    --breakpoint-sm: 576px;   /* Mobile Large */
    --breakpoint-xs: 360px;   /* Mobile Small */
    
    --container-xl: 1140px;
    --container-lg: 960px;
    --container-md: 720px;
    --container-sm: 540px;
}

/* Base Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====================================
   DESKTOP LAYOUT (1200px+)
==================================== */
@media screen and (min-width: 1200px) {
    .container {
        max-width: var(--container-xl);
    }

    /* Original Desktop Layout */
    .market-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
    
    .products-carousel {
        max-width: none;
    }

    .products-grid { 
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Company Section Original */
    .company-section {
        padding: 8rem 0;
    }

    .company-story {
        display: block;
        margin-bottom: 4rem;
    }

    .business-models {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: none;
        padding: 0;
    }

    .company-highlights {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Solutions Section Original */
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: none;
    }

    /* Footer Original Layout */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Products Navigation Original */
    .carousel-prev {
        left: -60px;
    }

    .carousel-next {
        right: -60px;
    }

    .carousel-dots {
        justify-content: center;
        width: 100%;
    }

    .partnership-content {
        grid-template-columns: 1fr 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   DESKTOP (992px - 1199px)
==================================== */
@media screen and (max-width: 1199px) {
    .container {
        max-width: var(--container-lg);
    }

    /* Company Section */
    .company-story {
        display: block;
        max-width: 900px;
        margin: 0 auto 3rem;
    }

    .business-models {
        max-width: 900px;
        margin: 0 auto;
        gap: 1.5rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .company-highlights {
        display: none;
    }

    /* Solutions adjustments */
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 100%;
    }

    .solution-card {
        width: 100%; 
        height: 100%; 
    }

    .solution-card-header {
        margin-bottom: 1rem;
    }

    .solution-features {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Products carousel */
    .products-carousel {
        max-width: 1000px;
        margin: 0 auto;
    }

    .carousel-dots {
        justify-content: center;
        width: 100%;
        margin-top: 2rem;
    }

    .nav-links { 
        gap: 3rem; 
    }

    .section-title h2 { 
        font-size: 2.25rem; 
    }

    .hero h1 { 
        font-size: 2.75rem; 
    }
}

/* ====================================
   TABLET AND MOBILE (< 1000px)
==================================== */
@media screen and (max-width: 999px) {
    /* Solutions Section - Tablet and Mobile */
    .solutions-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .solution-card {
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .solution-card-header {
        margin-bottom: 1.5rem;
    }

    .solution-features {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .solution-card-header h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .solution-description {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .solution-features li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

/* ====================================
   TABLET (768px - 991px)
==================================== */
@media screen and (max-width: 991px) {
    .container {
        max-width: var(--container-md);
    }

    .products-carousel {
        max-width: 680px;
    }

    .business-models {
        max-width: 700px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem;
        max-width: 800px; 
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .solution-card {
        width: 100%;
        height: 100%;
        display: flex;
    }

    .solution-features {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
    }

    .solution-card-header {
        margin-bottom: 1.5rem;
    }

    /* Ajusta o título do card */
    .solution-card-header h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Ajusta o espaçamento da descrição */
    .solution-description {
        margin-bottom: 1.5rem;
    }

    .partnership-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        text-align: center;
    }

    .footer-info {
        grid-column: span 2;
    }

    .benefits-grid {
        gap: 1.5rem;
    }

    .section-padding {
        padding: 6rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title {
        margin-bottom: 3rem;
    }
}

/* ====================================
   MOBILE (< 768px)
==================================== */
@media screen and (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .business-models {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 1rem;
    }

    .solutions-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 1rem;
        overflow-y: auto; 
        max-height: none; 
    }

    .solution-card {
        width: 100%;
        height: auto; 
        min-height: fit-content; 
        overflow: visible; 
    }

    .products-carousel {
        max-width: 340px;
    }

    .hero-content-wrapper {
        text-align: center;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .mobile-menu-open .nav-links {
        display: flex;
        flex-direction: column;
    }

    /* Oculta os footer-links */
    .footer-links {
        display: none;
    }

    /* Ajusta o grid do footer-content */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Garante que o footer-info ocupe toda a largura */
    .footer-info {
        grid-column: 1;
        padding-right: 0;
        width: 100%;
    }

    /* Centraliza elementos do footer-info */
    .footer-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ajusta o espaçamento do footer-bottom */
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    /* Ajusta logo e descrição */
    .footer-logo {
        margin-bottom: 1.5rem;
    }

    .footer-description {
        margin-bottom: 1.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ajusta ícones sociais */
    .footer-social {
        justify-content: center;
        margin-bottom: 0;
    }
}

/* ====================================
   MOBILE SMALL (< 576px)
==================================== */
@media screen and (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-info {
        grid-column: span 1;
    }

    .footer-social {
        margin-bottom: 2rem;
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .partnership-form,
    .contact-form {
        padding: 1.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }
}

/* ====================================
   PRODUCT CAROUSEL DOTS
==================================== */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    width: 100%;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 209, 106, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ====================================
   FOOTER CENTERING
==================================== */
.footer-content {
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    justify-content: center;
}

.footer-links {
    text-align: center;
}

.footer-links a::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ====================================
   UTILITIES
==================================== */
@media (hover: hover) {
    .hover-enabled:hover {
        transition: all 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====================================
   ANIMATIONS
==================================== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}