* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #632b1b;
    color: #fff8ed;
    font-family: "space-grotesk-variable", sans-serif;
    font-weight: 300;
}

.page {
    width: 100%;
    overflow: hidden;
    background: url("../assets/bg-desk.png") center top / contain no-repeat;
    margin-bottom: 70px;
}

/* =========================
   HERO
========================= */

.hero {
    height: 690px;
    position: relative;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #632b1b 0%,
        #632b1b 30%,
        rgba(99, 43, 27, .94) 43%,
        rgba(99, 43, 27, .55) 56%,
        rgba(99, 43, 27, 0) 72%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 140px);
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 76px;
}

.logo {
    display: block;
}

.hero-logo {
    width: 470px;
    height: auto;
    margin-bottom: 62px;
}

h1 {
    margin: 0 0 28px;
    font-size: 72px;
    line-height: .98;
    letter-spacing: -2px;
    font-variation-settings: "wght" 900;
}

h1 span {
    color: #d95131;
}

.hero p {
    margin: 0 0 80px;
    font-size: 25px;
    line-height: 1.28;
    font-weight: 400;
}

.hero p strong {
    font-weight: 800;
}


/* =========================
   CTA
========================= */

.cta {
    position: relative;
    z-index: 1;
    display: flex;
    width: 400px;
    height: 70px;
    align-items: center;
    justify-content: center;

    background: #f4e7d0;
    color: #d95131;
    text-decoration: none;

    font-size: 25px;

    overflow: hidden;

    transition:
        color .3s ease,
        background .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

/* brilho que atravessa a CTA */
.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .5),
        transparent
    );

    transform: skewX(-20deg);

    animation: ctaShine 5s ease-in-out infinite;

    pointer-events: none;
}

/* garante que o texto fique acima do brilho */
.cta {
    isolation: isolate;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta {
    gap: 14px;
}

.cta i {
    font-size: 30px;
    line-height: 1;
}


/* brilho passando */
@keyframes ctaShine {

    0% {
        left: -100%;
    }

    35% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

/* hover */
.cta:hover {
    color: #f4e7d0;
    background: #d95131;
    box-shadow: #000 3px 3px 3px;
    animation-play-state: paused;
    transform: scale(1.02);
}

.cta:hover::before {
    animation-play-state: paused;
}

/* =========================
   CTA CENTRAL
========================= */

.cta-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px;
}

/* =========================
   FATOS
========================= */

.facts {
    width: calc(100% - 140px);
    max-width: 1180px;
    margin: 0 auto;

    background: #f4e7d0;
    color: #632b1b;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
}

.fact {
    height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;
}

/* divisores desktop */
.fact:nth-child(1)::after,
.fact:nth-child(2)::after,
.fact:nth-child(4)::after,
.fact:nth-child(5)::after {
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 2px;
    height: 92px;

    background: #632b1b;

    transform: translateY(-50%);
}

.fact img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
}

.fact h2 {
    font-size: 27px;
    line-height: 1.12;
    margin: 0;
    font-weight: 800;
}


/* =========================
   FOOTER
========================= */

footer {
    width: calc(100% - 140px);
    max-width: 1180px;

    height: 132px;

    margin: 0 auto;

    background: #d95131;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 54px;
}

.footer-logo {
    width: 225px;
    height: auto;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 20px;
}

.address {
    text-align: right;
    font-size: 20px;
    line-height: 1.25;
}

.map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pin a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: #f4e7d0;
    text-decoration: none;

    font-size: 32px;

    transition:
        color .3s ease,
        transform .3s ease;
}

.map-pin a:hover {
    color: #632b1b;
    transform: scale(1.12);
}

/* =========================
   FONTES
========================= */

.cairo {
    font-family: cairo, sans-serif;
    font-style: normal;
    font-weight: 200 !important;
}

.negrito {
    font-weight: 700 !important;
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 520px) {
    .cta i {
        font-size: 26px;
    }
    footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    }

    .footer-address {
        justify-content: center;
    }

    .address {
        text-align: center;
    }
}

@media (max-width: 800px) {

    .page {
        background-image: url("../assets/bg-mobile.png");
        background-position: center top;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }

    .hero {
        height: 680px;
    }

    .hero-content {
        width: calc(100% - 40px);
        padding-top: 48px;
    }

    .hero-logo {
        width: min(80%, 380px);
        margin-bottom: 45px;
    }

    h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 19px;
        margin-bottom: 45px;
    }

    .cta {
        width: 100%;
        height: 76px;
        font-size: 20px;
    }

    .facts {
        width: calc(100% - 40px);

        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .fact {
        height: 180px;
    }

    .fact h2 {
        font-size: 17px;
    }

    .fact img {
        width: 45px;
        height: 45px;
    }

    /* divisores somente entre as colunas */
    .fact:nth-child(1)::after,
    .fact:nth-child(3)::after,
    .fact:nth-child(5)::after {

        content: "";

        position: absolute;
        right: 0;
        top: 50%;

        width: 2px;
        height: 92px;

        background: #632b1b;

        transform: translateY(-50%);
    }

    .fact:nth-child(2)::after,
    .fact:nth-child(4)::after,
    .fact:nth-child(6)::after {
        display: none;
    }

    footer {
        width: calc(100% - 40px);

        height: auto;
        min-height: 130px;

        padding: 25px;

        gap: 20px;
    }

    .footer-logo {
        width: 180px;
    }

    .address {
        font-size: 14px;
    }
}


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

@media (max-width: 520px) {

    .hero {
        height: 650px;
    }

    .hero-photo {
        background-position: 68% center;
    }

    .hero-shade {
        background: linear-gradient(
            90deg,
            rgba(99, 43, 27, .55),
            rgba(99, 43, 27, .10)
        );
    }

    h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 17px;
    }

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

    .fact {
        height: 160px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .address {
        text-align: center;
    }
}


/* =========================
   ACESSIBILIDADE
========================= */

@media (prefers-reduced-motion: reduce) {

    .cta {
        animation: none;
    }

    .cta::before {
        animation: none;
    }
}