/* ==========================================
   LAEF — RESPONSIVIDADE
   Desktop, tablet e dispositivos móveis
========================================== */


/* ==========================================
   TABLETS E COMPUTADORES MENORES
========================================== */

@media (max-width: 1200px) {

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 11px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1.1fr)
                               minmax(0, .9fr);
        gap: 30px;
    }

    .about-grid {
        gap: 50px;
    }

}


/* ==========================================
   MENU MOBILE
========================================== */

@media (max-width: 1050px) {

    .header-content {
        min-height: 75px;
        gap: 15px;
    }

    .brand {
        min-width: 0;
        gap: 10px;
    }

    .brand-logo {
        flex-shrink: 0;
    }

    .brand-logo img {
        display: block;
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text span {
        font-size: 9px;
        white-space: normal;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        gap: 6px;
        padding: 12px;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--navy);
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        max-height: 75vh;
        overflow-y: auto;

        padding: 25px 5%;
        background: var(--white);
        border-bottom: 1px solid var(--border);

        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        z-index: 200;
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 13px;
        border-bottom: 1px solid var(--border);
    }

    .navigation a:last-child {
        border-bottom: none;
    }

}


/* ==========================================
   TABLETS MENORES E CELULARES
========================================== */

@media (max-width: 760px) {

    .container {
        width: 90%;
        max-width: 100%;
        min-width: 0;
    }

    .section-padding {
        padding: 60px 0;
    }


    /* ======================================
       CABEÇALHO
    ====================================== */

    .header-content {
        min-height: 75px;
    }

    .brand-logo img {
        width: 45px;
        height: 45px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text span {
        font-size: 8px;
        line-height: 1.5;
    }


    /* ======================================
       BANNER PRINCIPAL
    ====================================== */

    .page-home .hero {
        display: block;
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    .page-home .hero-content {
        display: grid;

        grid-template-columns: minmax(0, 1fr);

        width: 90%;
        max-width: 100%;
        min-width: 0;

        gap: 30px;

        padding-top: 55px;
        padding-bottom: 35px;
    }

    .page-home .hero-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .page-home .hero-text .eyebrow {
        display: block;
        font-size: 10px;
        line-height: 1.6;
        letter-spacing: 1.5px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .page-home .hero-text h1,
    .page-home .hero-text h2 {
        font-size: clamp(28px, 6vw, 38px);
        line-height: 1.2;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin: 18px 0;

        white-space: normal;
        overflow-wrap: break-word;
    }

    .page-home .hero-text > p {
        width: 100%;
        max-width: 100%;

        font-size: 14px;
        line-height: 1.8;

        white-space: normal;
        overflow-wrap: break-word;
    }


    /* ======================================
       BOTÕES DO BANNER
    ====================================== */

    .page-home .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        width: 100%;
        gap: 20px;
        margin-top: 28px;
    }

    .page-home .hero-actions .button-primary {
        max-width: 100%;
        min-height: 48px;

        padding: 14px 20px;
        font-size: 13px;
        gap: 15px;
    }

    .page-home .hero-actions .button-secondary {
        font-size: 13px;
    }


    /* ======================================
       LOGO DO BANNER
    ====================================== */

    .page-home .hero-logo {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;
    }

    .page-home .hero-logo img {
        display: block;

        width: 100%;
        max-width: 280px;
        height: auto;

        object-fit: contain;
    }


    /* ======================================
       ELEMENTOS CIENTÍFICOS
    ====================================== */

    .hero-visual {
        width: 100%;
        min-width: 0;
        margin-top: 20px;
    }

    .physics-graphic {
        width: 100%;
        max-width: 280px;
    }


    /* ======================================
       RODAPÉ DO BANNER
    ====================================== */

    .page-home .hero-footer {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        width: 90%;
        margin: 0 auto;

        min-height: 45px;
        padding: 12px 0;

        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        font-size: 7px;
        letter-spacing: .8px;
        gap: 8px;
    }


    /* ======================================
       SOBRE
    ====================================== */

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .section-heading h2,
    .team h2 {
        font-size: clamp(30px, 6vw, 38px);
        line-height: 1.25;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* ======================================
       TÍTULOS DAS SEÇÕES
    ====================================== */

    .section-top {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
        margin-bottom: 30px;
    }

    .section-top h2 {
        font-size: 30px;
        line-height: 1.25;
    }

    .section-top > p {
        max-width: 100%;
    }


    /* ======================================
       ÁREAS DE ATUAÇÃO
    ====================================== */

    .areas-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .area-card {
        min-width: 0;
        min-height: 250px;
        padding: 28px;
    }


    /* ======================================
       DESTAQUES
    ====================================== */

    .highlights-placeholder {
        padding: 35px 25px;
        min-height: 300px;
    }

    .placeholder-content {
        width: 100%;
        min-width: 0;
    }

    .placeholder-content h3 {
        font-size: 28px;
        line-height: 1.3;
    }

    .placeholder-symbol {
        position: absolute;
        right: 0;
        bottom: 0;
        font-size: 180px;
        pointer-events: none;
    }


    /* ======================================
       EQUIPE
    ====================================== */

    .team-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .team-content > div {
        width: 100%;
        min-width: 0;
    }

    .team-content .button-primary {
        max-width: 100%;
    }


    /* ======================================
       RODAPÉ
    ====================================== */

    .footer {
        padding: 45px 0 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        margin-top: 35px;
    }

    .footer-brand p {
        overflow-wrap: break-word;
    }

}


/* ==========================================
   CELULARES PEQUENOS
========================================== */

@media (max-width: 400px) {

    .header-content {
        min-height: 70px;
        gap: 8px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo img {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text span {
        font-size: 8px;
        max-width: 190px;
    }

    .menu-toggle {
        padding: 8px;
    }

    .page-home .hero-content {
        padding-top: 40px;
        padding-bottom: 25px;
        gap: 25px;
    }

    .page-home .hero-text h1,
    .page-home .hero-text h2 {
        font-size: 28px;
    }

    .page-home .hero-text > p {
        font-size: 13px;
        line-height: 1.8;
    }

    .page-home .hero-text .eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .page-home .hero-logo img {
        max-width: 230px;
    }

    .page-home .hero-footer {
        font-size: 7px;
        letter-spacing: .5px;
    }

    .section-padding {
        padding: 45px 0;
    }

    .section-top h2 {
        font-size: 27px;
    }

    .area-card {
        padding: 25px;
    }

}


/* ==========================================
   CELULARES MUITO PEQUENOS
========================================== */

@media (max-width: 340px) {

    .brand-logo img {
        width: 32px;
        height: 32px;
    }

    .brand-text span {
        font-size: 7px;
    }

    .page-home .hero-text h1,
    .page-home .hero-text h2 {
        font-size: 25px;
    }

    .page-home .hero-logo img {
        max-width: 200px;
    }

}