/* ==========================================================
   RESPONSIVE — ajustes por tamanho de tela (mobile-first)
   ----------------------------------------------------------
   style.css = celular (referência principal).
   Desktop segue as regras aprovadas no Documento Mestre:
   mesmo conteúdo e identidade, reorganizado para tela maior,
   com largura máxima — sem esticar o layout do celular.
   ========================================================== */

/* ---------- Celulares estreitos (até 379px) ---------- */
@media (max-width: 379px) {
    .container { padding-inline: 8px; }
    .panel { padding: 12px 8px; }

    /* Benefícios: ícone em cima do texto para caber */
    .benefit {
        flex-direction: column;
        text-align: center;
        font-size: 0.625rem; /* 10px */
    }

    .person { padding-inline: 6px; }
    .person .btn { font-size: 0.6875rem; gap: 4px; }
    .person .btn span,
    .store__buttons .btn span { white-space: normal; }

    .service { padding-left: 14px; gap: 10px; }
    .service__icon { width: 36px; height: 36px; }
    .service__title { font-size: 1rem; }

    .social__icon { width: 52px; height: 52px; }
    .store__buttons .btn { font-size: var(--fs-xs); gap: 5px; }
    .store__buttons .btn .icon { width: 18px; height: 18px; }

    .site-footer__logo { width: 140px; }
}

/* ---------- Celulares grandes (400px+) ---------- */
@media (min-width: 400px) {
    .person .btn { font-size: var(--fs-sm); padding-inline: 8px; }
    .person .btn .icon { width: 20px; height: 20px; }
    .benefit { font-size: var(--fs-xs); }
    .person__text { font-size: var(--fs-sm); }
    .solution { font-size: var(--fs-sm); }
    .brand__name { font-size: 1.125rem; }
    .store__buttons .btn { font-size: var(--fs-sm); }
}

/* ---------- Tablet (768px+) ---------- */
@media (min-width: 768px) {
    .container {
        max-width: 760px;
        padding-inline: 24px;
    }

    main.container { gap: 20px; padding-bottom: 24px; }

    .panel { padding: 22px; }
    .panel__title { font-size: 1.5rem; }
    .panel__subtitle { font-size: var(--fs-md); }

    .intro { gap: 18px; padding-top: 32px; }
    .intro__text { font-size: 1.0625rem; }
    .benefit { font-size: var(--fs-sm); justify-content: center; }

    .team { gap: 16px; }
    .person { padding: 20px 16px; }
    .person__photo { width: 70%; }

    .solutions { gap: 12px; }

    .brands { grid-template-columns: repeat(5, 1fr); }
    .brand { min-height: 70px; }

    .services { grid-template-columns: repeat(3, 1fr); }
    .service {
        flex-direction: column;
        align-items: flex-start;
        min-height: 200px;
        padding: 20px;
    }
    .service__arrow { align-self: flex-end; }

    .social { max-width: 420px; }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
    .container {
        max-width: var(--max-width-desktop);
        padding-inline: 32px;
    }

    main.container { gap: 24px; padding-bottom: 32px; }

    /* 1–4: logo + texto + benefícios à esquerda, foto da loja à direita */
    .intro {
        grid-template-columns: 1fr 1.15fr;
        grid-template-rows: auto auto 1fr;
        grid-template-areas:
            "logo     photo"
            "text     photo"
            "benefits photo";
        column-gap: 48px;
        row-gap: 20px;
        align-items: start;
        padding-top: 40px;
    }
    .intro__logo { width: 380px; margin-inline: 0; }
    .intro__text {
        text-align: left;
        margin-inline: 0;
        font-size: 1.25rem;
        max-width: 30ch;
    }
    .intro__photo { aspect-ratio: 16 / 10; }
    .benefits {
        grid-template-columns: repeat(2, auto);
        justify-content: start;
        column-gap: 32px;
        row-gap: 16px;
        align-self: end;
    }
    .benefit { font-size: var(--fs-md); justify-content: flex-start; }
    .benefit .icon { width: 30px; height: 30px; }

    /* Linhas com dois blocos lado a lado */
    .row {
        display: grid;
        gap: 24px;
    }
    .row--comercial-solucoes { grid-template-columns: 1fr 1fr; }
    .row--redes-loja        { grid-template-columns: 1fr 1.6fr; align-items: stretch; }

    .panel { padding: 28px; }

    /* 5: cards Yuri e Milena maiores */
    .person__photo { width: 62%; }
    .person__name { font-size: 1.5rem; }
    .person__role { font-size: var(--fs-md); }
    .person .btn { font-size: var(--fs-md); }

    /* 6: soluções em grade */
    .solutions { height: calc(100% - 70px); grid-auto-rows: 1fr; }
    .solution { font-size: var(--fs-md); }
    .solution__icon { width: 44px; height: 44px; }

    /* 7: marcas em uma linha */
    .brands { grid-template-columns: repeat(9, 1fr); gap: 12px; }
    .brand { min-height: 80px; }

    /* 8: atendimentos lado a lado */
    .services { gap: 20px; }
    .service { min-height: 210px; padding: 26px; }
    .service__icon { width: 52px; height: 52px; }
    .service__title { font-size: 1.375rem; }
    .service__text { font-size: var(--fs-md); }

    /* 9: redes sociais */
    .social { max-width: none; margin-top: 12px; }
    .social__icon { width: 64px; height: 64px; }
    .social__label { font-size: var(--fs-sm); }

    /* 10: loja — foto e informações lado a lado */
    .store {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        grid-template-areas:
            "photo header"
            "photo buttons";
        column-gap: 24px;
        row-gap: 16px;
        align-content: center;
    }
    .store__photo   { grid-area: photo; aspect-ratio: 16 / 10; }
    .store__header  { grid-area: header; align-self: end; }
    .store__buttons { grid-area: buttons; grid-template-columns: 1fr; align-self: start; }
    .store__city, .store__text { font-size: var(--fs-md); }

    /* 11: rodapé na largura total */
    .site-footer__inner {
        justify-content: space-between;
        padding-block: 36px;
    }
    .site-footer__logo { width: 220px; }
    .site-footer__divider { display: none; }
    .site-footer__tagline {
        display: flex;
        gap: 28px;
        font-size: var(--fs-md);
    }
}
