/* =========================================================
   XPATEC 2.0
   RESPONSIVIDADE
========================================================= */


/* =========================================================
   NOTEBOOKS E TELAS MENORES
========================================================= */

@media (max-width: 1100px) {

    :root {
        --container-width: 960px;
    }

    .main-navigation ul {
        gap: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        gap: 35px;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 5vw, 4.4rem);
    }

    .hero-visual {
        transform: scale(0.88);
    }

    .about-container {
        gap: 55px;
    }

}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {

    .site-header {
        min-height: 72px;
    }

    .header-container {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .button-header {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--color-white);
        border-bottom: 1px solid transparent;
        box-shadow: 0 20px 35px rgba(20, 40, 80, 0.12);
        transition:
            max-height 0.35s ease,
            border-color 0.35s ease;
    }

    .main-navigation.is-open {
        max-height: 420px;
        border-color: var(--color-border);
    }

    .main-navigation ul {
        width: min(100% - 40px, 760px);
        margin: 0 auto;
        padding: 24px 0 30px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: 14px 5px;
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation a::after {
        display: none;
    }

    .hero {
        padding: 75px 0 55px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-content {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h1 span {
        display: inline;
    }

    .hero-text,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 500px;
        transform: scale(0.92);
    }

    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        min-height: 410px;
    }

    .about-content {
        max-width: 760px;
        margin: 0 auto;
        text-align: center;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .number-card:nth-child(2) {
        border-right: 0;
    }

    .number-card:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content h2,
    .contact-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-actions {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 640px) {

    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .brand-name {
        font-size: 1.45rem;
    }

    .brand-description {
        font-size: 0.58rem;
    }

    .hero {
        padding: 60px 0 30px;
    }

    .hero-content h1 {
        margin-bottom: 22px;
        font-size: clamp(2.45rem, 12vw, 3.6rem);
        line-height: 1.02;
    }

    .hero-text {
        font-size: 1.08rem;
    }

    .hero-description {
        font-size: 0.96rem;
    }

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

    .hero-actions .button {
        width: 100%;
    }

   .hero-visual {
    min-height: 330px;
    margin: 30px 0 0;
    transform: none;
    overflow: hidden;
}

.hero-visual .orbit,
.hero-visual .segment-card {
    display: none;
}

.technology-core {
    width: 210px;
    height: 210px;
    border-width: 10px;
}

.technology-core span {
    font-size: 1.9rem;
}

.technology-core small {
    font-size: 0.72rem;
}
    .manifesto-section,
    .methodology-section,
    .platforms-section,
    .about-section {
        padding: 80px 0;
    }

    .manifesto-container h2 {
        font-size: clamp(2.05rem, 10vw, 3rem);
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .methodology-card {
        min-height: auto;
    }

    .methodology-message {
        padding: 24px 20px;
    }

    .platform-card {
        min-height: auto;
        padding: 28px 24px 28px 30px;
    }

    .platform-card-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .platform-card h3 {
        font-size: 1.75rem;
    }

    .about-visual {
        min-height: 340px;
        transform: scale(0.82);
        margin: -25px 0;
    }

    .about-content h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .number-card {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .number-card:nth-child(2) {
        border-right: 0;
    }

    .number-card:last-child {
        border-bottom: 0;
    }

    .contact-section {
        padding: 75px 0;
    }

    .contact-content h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* =========================================================
   CELULARES MUITO PEQUENOS
========================================================= */

@media (max-width: 420px) {

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

    .hero-visual {
    min-height: 285px;
    margin: 20px 0 0;
    transform: none;
}

.technology-core {
    width: 185px;
    height: 185px;
}

    .section-label {
        font-size: 0.72rem;
    }

    .button {
        padding-left: 18px;
        padding-right: 18px;
    }

}

