/* ===== RESPONSIVE DESIGN SYSTEM ===== */

/* Breakpoints */
:root {
    --breakpoint-xs: 320px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* Grid System Responsivo */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Grid Flexível */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4-cols {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Tipografia Responsiva */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
    }
}

/* Espaçamento Responsivo */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0 !important;
    }

    .container {
        padding: 0 1rem !important;
    }
}

/* Melhorias para Mobile */
@media (max-width: 768px) {

    /* Melhor área de toque para elementos clicáveis */
    button,
    .btn,
    a.btn,
    input[type="submit"] {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    /* Ajuste de imagens */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ajustes de navegação */
    .nav__menu {
        padding: 1rem;
    }

    /* Ajuste de grids */
    .grid {
        gap: 1rem;
    }

    /* Cards responsivos */
    .card {
        padding: 1rem;
    }
}

/* Utilidades Responsivas */
.hide-on-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-on-desktop {
        display: none !important;
    }

    .hide-on-mobile {
        display: initial !important;
    }
}

/* Ajustes para Hero Sections */
@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 3rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center !important;
        gap: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__text h1 {
        font-size: 2rem;
        /* Better size for mobile */
        margin-bottom: 1rem;
    }

    .hero__text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }

    .hero__image {
        order: -1;
        /* Image on top for mobile */
        margin-bottom: 1rem;
    }

    .hero__image-placeholder i {
        font-size: 4rem !important;
        /* Smaller icon */
    }
}

/* Ajustes para Grids (Problem, Methodology, Services) */
@media (max-width: 768px) {

    .problem__grid,
    .methodology__grid,
    .services__grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 1.5rem;
    }

    .problem__card,
    .methodology__item,
    .service__card {
        padding: 1.5rem;
    }
}

/* Ajustes para Features e Cards */
@media (max-width: 768px) {

    .features__grid,
    .benefits__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature__card,
    .benefit__card,
    .testimonial__card {
        padding: 1.5rem;
    }
}

/* Melhorias de Performance para Mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .smooth-scroll {
        scroll-behavior: smooth;
    }
}