/* =========================================================
   HOME
========================================================= */

.home-page {
    background: var(--background-light);
    color: var(--text-color);
}

.home-page-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.home-section {
    padding: 74px 0;
}

.home-section--gray {
    background: var(--background-gray);
}

.home-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-eyebrow--light {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 94px;
    background:
        radial-gradient(
            circle at 87% 24%,
            rgba(252, 122, 81, 0.22),
            transparent 33%
        ),
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color)
        );
    color: var(--text-light);
}

.home-hero::before {
    position: absolute;
    top: -150px;
    left: -120px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: 72px;
}

.home-hero__content h1 {
    max-width: 720px;
    margin: 12px 0 22px;
    color: var(--text-light);
    font-size: 42px;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.home-hero__lead {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.home-hero__features li {
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
}

.home-hero__features li::before {
    position: absolute;
    top: 0.35em;
    left: 0;
    color: var(--accent-color);
    content: "✓";
    font-weight: 900;
}

.home-hero__visual {
    position: relative;
}

.home-hero__image-placeholder,
.home-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 32px;
    border: 1px dashed rgba(173, 51, 80, 0.32);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f4f4f4
        );
    color: var(--text-muted);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.home-hero__image-placeholder {
    border: 10px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.96);
    transform: rotate(1deg);
}

.home-hero__image-placeholder span {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 800;
}

.home-hero__image-placeholder small {
    max-width: 340px;
    margin-top: 8px;
    line-height: 1.6;
}

.home-hero__badge {
    position: absolute;
    right: -18px;
    bottom: -25px;
    display: flex;
    flex-direction: column;
    max-width: 230px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--background-light);
    box-shadow: var(--shadow-md);
}

.home-hero__badge span {
    margin-bottom: 4px;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-hero__badge strong {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* =========================================================
   BOTÕES
========================================================= */

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
}

.home-actions--center {
    justify-content: center;
}

.home-page .home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.89rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-page .home-button:hover {
    transform: translateY(-2px);
}

.home-page .home-button--primary {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-light);
}

.home-page .home-button--primary:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 6px 16px rgba(173, 51, 80, 0.22);
}

.home-page .home-button--outline {
    border-color: var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.home-page .home-button--outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.home-page .home-button--light {
    border-color: var(--background-light);
    background: var(--background-light);
    color: var(--primary-color);
}

.home-page .home-button--light:hover {
    background: var(--background-gray);
    color: var(--secondary-color);
}

.home-page .home-button--outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
    color: var(--text-light);
}

.home-page .home-button--outline-light:hover {
    border-color: var(--background-light);
    background: var(--background-light);
    color: var(--primary-color);
}

/* =========================================================
   BENEFÍCIOS RÁPIDOS
========================================================= */

.home-quick-benefits {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -38px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-light);
    box-shadow: var(--shadow-md);
}

.home-quick-benefits article,
.home-quick-benefits > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 108px;
    padding: 22px 24px;
    text-decoration: none;
}

.home-quick-benefits article + article,
.home-quick-benefits article + a,
.home-quick-benefits a + article {
    border-left: 1px solid var(--border-color);
}

.home-quick-benefits span {
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-quick-benefits strong {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-quick-benefits > a {
    background: rgba(173, 51, 80, 0.055);
}

.home-quick-benefits > a:hover {
    background: rgba(173, 51, 80, 0.1);
}

/* =========================================================
   CABEÇALHOS
========================================================= */

.home-section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.home-section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    max-width: none;
    gap: 40px;
}

.home-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.home-section-heading h2,
.home-product-heading h2,
.home-shop-access h2,
.home-business-banner h2,
.home-logistics h2,
.home-final-cta h2 {
    margin: 6px 0 15px;
    color: var(--text-color);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.home-section-heading p,
.home-product-heading p {
    max-width: 700px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.home-section-link,
.home-product-heading > a {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    padding: 9px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-section-link:hover,
.home-product-heading > a:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* =========================================================
   CATEGORIAS
========================================================= */

.home-categories-section {
    padding-top: 88px;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-light);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.home-category-card:hover {
    border-color: rgba(173, 51, 80, 0.28);
    color: inherit;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* =========================================================
   IMAGENS DAS CATEGORIAS
========================================================= */

.home-category-card__media {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 240px;
    padding: 24px;

    overflow: hidden;

    border-bottom: 1px solid var(--border-color);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8f8f8
        );
}

.home-category-card__media
.home-category-card__image {
    display: block;

    width: 100%;
    height: 100%;
    max-width: 240px;
    max-height: 190px;

    margin: 0;

    object-fit: contain;
    object-position: center;

    transition: transform 0.25s ease;
}

.home-category-card:hover
.home-category-card__image {
    transform: scale(1.04);
}

/* .home-category-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 16px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
} */

/* .home-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    transition: transform 0.25s ease;
} */

.home-category-card:hover img {
    transform: scale(1.035);
}

.home-category-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.8rem;
    place-items: center;
}

.home-category-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.home-category-card__content > span {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-category-card h3 {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 1.12rem;
    line-height: 1.4;
}

.home-category-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

.home-category-card__content > strong {
    margin-top: auto;
    padding-top: 18px;
    color: var(--primary-color);
    font-size: 0.83rem;
}

/* =========================================================
   ACESSO À LOJA
========================================================= */

.home-shop-access {
    padding: 52px 0;
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color)
        );
    color: var(--text-light);
}

.home-shop-access__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
}

.home-shop-access h2 {
    color: var(--text-light);
}

.home-shop-access p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

/* =========================================================
   VITRINES DE PRODUTOS
========================================================= */

.home-product-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    margin-bottom: 30px;
}

.home-product-carousel {
    min-width: 0;
}

.home-shortcode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 30px;
    border: 1px dashed rgba(173, 51, 80, 0.3);
    border-radius: var(--radius-lg);
    background: var(--background-light);
    color: var(--text-muted);
    text-align: center;
}

.home-shortcode-placeholder strong {
    color: var(--primary-color);
}

.home-shortcode-placeholder span {
    margin-top: 7px;
    font-size: 0.86rem;
}

/* =========================================================
   ATENDIMENTO COMERCIAL E LOGÍSTICA
========================================================= */

.home-commercial-services {
    position: relative;
    overflow: hidden;
    padding: 76px 0;

    background:
        radial-gradient(
            circle at 90% 18%,
            rgba(252, 122, 81, 0.2),
            transparent 31%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 255, 255, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color) 58%,
            #74212a
        );

    color: var(--text-light);
}

.home-commercial-services::before {
    position: absolute;
    top: -170px;
    right: -130px;

    width: 360px;
    height: 360px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    content: "";
}

.home-commercial-services::after {
    position: absolute;
    bottom: -210px;
    left: -150px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;

    content: "";
}

.home-commercial-services .home-container {
    position: relative;
    z-index: 1;
}

.home-commercial-services__header {
    max-width: 820px;
    margin-bottom: 38px;
}

.home-commercial-services__header h2 {
    max-width: 850px;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.12;

    margin: 7px 0 16px;

    color: var(--text-light);

    letter-spacing: -0.03em;

}

.home-commercial-services__header p {
    max-width: 820px;
    margin: 0;

    color: rgba(255, 255, 255, 0.84);

    font-size: 1rem;
    line-height: 1.75;
}

/* =========================================================
   CARDS
========================================================= */

.home-commercial-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-commercial-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    padding: 30px;

    background: rgba(255, 255, 255, 0.11);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(5px);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-commercial-card:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-3px);
}

.home-commercial-card__label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent-color);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;

    text-transform: uppercase;
}

.home-commercial-card h3 {
    margin: 0 0 14px;

    color: var(--text-light);

    font-size: 1.35rem;
    line-height: 1.35;
}

.home-commercial-card p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.93rem;
    line-height: 1.7;
}

/* =========================================================
   LISTA
========================================================= */

.home-commercial-card__list {
    display: grid;
    gap: 9px;

    margin: 22px 0 26px;
    padding: 0;

    list-style: none;
}

.home-commercial-card__list li {
    position: relative;

    padding-left: 22px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.86rem;
    line-height: 1.5;
}

.home-commercial-card__list li::before {
    position: absolute;
    top: 0.1em;
    left: 0;

    color: var(--accent-color);

    content: "✓";

    font-size: 0.9rem;
    font-weight: 900;
}

/* Mantém os botões alinhados na base */
.home-commercial-card .home-button {
    align-self: flex-start;
    margin-top: auto;

    min-height: 48px;
    padding: 12px 22px;
}

/* =========================================================
   RODAPÉ DA SEÇÃO
========================================================= */

.home-commercial-services__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin-top: 24px;
    padding: 16px 22px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);

    background: rgba(0, 0, 0, 0.08);
}

.home-commercial-services__footer p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.9rem;
    line-height: 1.6;
}

.home-commercial-services__footer a {
    flex: 0 0 auto;

    color: var(--text-light);

    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.home-commercial-services__footer a:hover {
    color: var(--accent-color);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 820px) {

    .home-commercial-services {
        padding: 62px 0;
    }

    .home-commercial-services__grid {
        grid-template-columns: 1fr;
    }

    .home-commercial-card {
        padding: 26px;
    }
}

@media (max-width: 640px) {

    .home-commercial-services {
        padding: 52px 0;
    }

    .home-commercial-services__header {
        margin-bottom: 28px;
    }

    .home-commercial-services__header h2 {
        font-size: 2rem;
    }

    .home-commercial-card {
        padding: 23px 20px;
    }

    .home-commercial-card .home-button {
        width: 100%;
    }

    .home-commercial-services__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        padding: 18px 20px;
    }
}

/* =========================================================
   SERVIÇOS
========================================================= */

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-service-grid article {
    padding: 26px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-gray);
}

.home-service-grid article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(173, 51, 80, 0.08);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
}

.home-service-grid h3 {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

.home-service-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* =========================================================
   CTA FINAL
========================================================= */

.home-final-cta {
    padding: 76px 0;
    background: var(--background-gray);
    text-align: center;
}

.home-final-cta__content {
    max-width: 830px;
}

.home-final-cta p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.75;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .home-hero__grid,
    .home-business-banner__grid,
    .home-logistics__grid {
        gap: 44px;
    }

    .home-category-grid,
    .home-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-quick-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-quick-benefits article:nth-child(3),
    .home-quick-benefits > a {
        border-top: 1px solid var(--border-color);
    }

    .home-quick-benefits article:nth-child(3) {
        border-left: 0;
    }
}

/* =========================================================
   TABLET VERTICAL
========================================================= */

@media (max-width: 820px) {

    .home-hero__grid,
    .home-business-banner__grid,
    .home-logistics__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__visual,
    .home-business-banner__visual,
    .home-logistics__visual {
        max-width: 680px;
    }

    .home-section-heading--split,
    .home-product-heading,
    .home-shop-access__grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
    }

    .home-section-link,
    .home-product-heading > a {
        justify-self: start;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .home-container {
        width: min(100% - 28px, 1180px);
    }

    .home-section {
        padding: 54px 0;
    }

    .home-hero {
        padding: 48px 0 62px;
    }

    .home-hero__content h1 {
        font-size: 2.4rem;
    }

    .home-hero__lead {
        font-size: 1rem;
    }

    .home-hero__image-placeholder {
        min-height: 320px;
    }

    .home-hero__badge {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: none;
        margin: 14px 8px 0;
    }

    .home-quick-benefits {
        grid-template-columns: 1fr;
        margin-top: -28px;
    }

    .home-quick-benefits article,
    .home-quick-benefits > a {
        min-height: auto;
        padding: 18px 20px;
        border-top: 1px solid var(--border-color);
        border-left: 0 !important;
    }

    .home-quick-benefits article:first-child {
        border-top: 0;
    }

    .home-categories-section {
        padding-top: 68px;
    }

    .home-category-grid,
    .home-service-grid {
        grid-template-columns: 1fr;
    }

    .home-category-card__content {
        padding: 21px;
    }

    .home-shop-access {
        padding: 44px 0;
    }

    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .home-button {
        width: 100%;
    }

    .home-business-banner {
        padding: 54px 0;
    }

    .home-image-placeholder,
    .home-business-banner__visual .home-image-placeholder {
        min-height: 280px;
    }

    .home-logistics {
        padding: 54px 0;
    }

    .home-final-cta {
        padding: 58px 0;
    }
}

/* =========================================================
   WORDPRESS
========================================================= */

.home-page + .edit-link,
.home-page-main > .edit-link {
    display: none;
}

.home-page a:focus-visible {
    outline: 3px solid rgba(252, 122, 81, 0.34);
    outline-offset: 3px;
}

/* =========================================================
   REMOVE O LIMITE EXTERNO DO STOREFRONT NA HOME
========================================================= */

body.home #content > .col-full,
body.front-page #content > .col-full,
body.home.page-template-default #content > .col-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-right: 0;
    padding-left: 0;
}

body.home #primary,
body.front-page #primary {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.home .content-area,
body.front-page .content-area {
    float: none;
    width: 100%;
    margin: 0;
}