/*
 * CSS
 */


/* -------------------------------------------------------
   Base
------------------------------------------------------- */

*, *::after, *::before {
    box-sizing: border-box;
}

*:not(dialog) { margin: 0; }

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #f5f5f5;

    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

input, button, select {
    font: inherit;
}

svg, img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}


/* -------------------------------------------------------
   Header / Hero
------------------------------------------------------- */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.hero__background {
    z-index: -1;
    position: absolute;
    inset: -10%;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92),
            rgba(0, 0, 0, 0.38)
        ),
        url("https://images.unsplash.com/photo-1581009146145-b5ef050c2e1e?auto=format&fit=crop&w=2200&q=85")
        center / cover no-repeat;

    /*
     * PARALLAX: APENSA NO CHROME!!!
     *
     * O background acompanha o scroll da página.
     * O elemento começa na posição normal e termina
     * deslocado verticalmente.
     */

    @supports (animation-timeline: scroll()) {
        animation: hero-parallax linear both;
        animation-timeline: scroll(root);
        animation-range: 0 100vh;

        will-change: transform;
    }
}

.header {
    position: relative;
    padding-block-start: 50px;

    .logo img {
        width: 10rem;
    }
}

.hero__content {
    position: relative;
    z-index: 1;

    padding-top: 80px;
}

.eyebrow {
    margin: 0 0 16px;

    color: #FB742A;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.hero h1 {
    max-width: 700px;

    margin: 0 0 28px;

    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.88;

    letter-spacing: -0.06em;

    text-transform: uppercase;
    text-wrap: balance;
}

.hero h1 strong {
    color: #FB742A;
}

.hero__description {
    max-width: 480px;

    margin: 0 0 30px;

    color: #ccc;

    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__social {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__social .social-link {
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero__social .social-link:hover {
    color: #FB742A;
}

.hero__social .separator {
    color: #444;
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    position: absolute;
    bottom: 24px;
    left: 50%;

    color: #aaa;

    font-size: 0.65rem;
    letter-spacing: 0.2em;

    transform: translateX(-50%);
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 14px 22px;

    border-radius: 7px;

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.03em;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.28);
}

.button--whatsapp {
    background: #229B63;
    color: #fff;
}

.button--instagram {
    background: linear-gradient(
        135deg,
        #5b247a 0%,
        #b5122f 50%,
        #c47a22 100%
    );

    color: #fff;
}

.button--large {
    padding: 17px 28px;
}


/* -------------------------------------------------------
   Generic sections
------------------------------------------------------- */

.section {
    padding-block: 120px;
}

.section--dark {
    background: #0b0b0b;
}

.section-heading {
    max-width: 700px;

    margin-inline: auto;
    margin-bottom: 70px;

    text-align: center;
}

.section-heading__line {
    display: block;

    width: 48px;
    height: 4px;

    margin: 0 auto 22px;

    background: #FB742A;
}

.section h2,
.parallax-section h2,
.final-cta h2 {
    margin: 0;

    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.98;

    letter-spacing: -0.05em;

    text-transform: uppercase;
}

.section h2 strong,
.parallax-section h2 strong,
.final-cta h2 strong {
    color: #FB742A;
}


/* -------------------------------------------------------
   Feature cards
------------------------------------------------------- */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;

    margin: 0;
    padding: 0;

    list-style-position: inside;
    list-style-type: decimal-leading-zero;
}

.feature {
    padding-top: 25px;
    border-top: 1px solid #333;

    &::marker {
        color: #FB742A;
        font-size: 2rem;
        font-weight: 900;
    }

    h3 {
        margin: 12px 0;
        font-size: 1rem;
        line-height: 1.2;
        text-transform: uppercase;
    }

    p {
        margin: 0;
        color: #999;
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* -------------------------------------------------------
   Parallax section
------------------------------------------------------- */

.parallax-section {
    position: relative;

    min-height: 680px;

    display: grid;
    align-items: center;

    overflow: hidden;
}

.parallax-section__background {
    position: absolute;
    inset: -12%;

    background:
        url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=2200&q=85")
        center / cover no-repeat;

    /*
     * PARALLAX POR VIEWPORT: SOMENTE CHROME!!!
     *
     * A animação usa o ciclo de vida do próprio elemento
     * na viewport. Enquanto a seção entra e sai da tela,
     * o fundo se move em sentido diferente do conteúdo.
     */
    animation: section-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;

    will-change: transform;
}

.parallax-section__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.25)
        );
}

.parallax-section__content {
    position: relative;
    z-index: 1;
}

.parallax-section__content .section-heading__line {
    margin: 0 0 24px;
}

.parallax-section__content > p:last-child {
    max-width: 500px;

    margin-top: 28px;

    color: #ddd;

    line-height: 1.7;
}


.modalities__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;

    .modality {
        position: relative;
        min-height: 210px;
        outline: none;
        cursor: default;

        &:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
        }

        &:nth-child(2) {
            grid-column: 2;
            grid-row: 1;
        }

        &:nth-child(3) {
            grid-column: 3;
            grid-row: 1;
        }

        &:nth-child(4) {
            grid-column: 4;
            grid-row: 1;
        }

        &:nth-child(5) {
            grid-column: 5;
            grid-row: 1;
        }

        &:focus-within {
            z-index: 10;

            .modality__panel {
                transform: scale(1.15);
                background: #FB742A;
                border-color: #FB742A;
                color: #080808;
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
            }

            .modality__icon {
                color: #080808;
                transform: scale(1.05);
            }

            p {
                display: block;
                max-width: 270px;
                margin: 8px 0 0;
                font-size: 0.78rem;
                line-height: 1.5;
                opacity: 0;
                transform: translateY(8px);
                animation: description-in 0.4s cubic-bezier(.16, 1, .3, 1) 0.05s forwards;
            }
        }

        &:focus-visible {
            outline: 2px solid #FB742A;
            outline-offset: 4px;
        }

        .modality__panel {
            position: absolute;
            inset: 0;
            padding: 30px 20px;
            border: 1px solid #292929;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: #080808;
            color: #ffffff;
            z-index: 1;
            transform: scale(1);
            transform-origin: center;
            transition:
                transform 0.5s cubic-bezier(.16, 1, .3, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.5s ease;

            &:hover {
                background: #FB742A;
                border-color: #FB742A;
                color: #080808;

                .modality__icon {
                    color: #080808;
                }
            }
        }

        .modality__icon {
            width: 62px;
            height: 62px;
            margin-bottom: 28px;
            color: #FB742A;
            transition:
                color 0.3s ease,
                transform 0.45s cubic-bezier(.16, 1, .3, 1);

            svg {
                width: 100%;
                height: 100%;
            }
        }

        .modality__content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        h3 {
            margin: 0;
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.08em;
        }

        p {
            display: none;
        }
    }

    &:has(.modality:focus-within) {
        .modality__panel {
            opacity: 0.2;
        }

        .modality:focus-within .modality__panel {
            opacity: 1;
        }
    }
}

@keyframes description-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {
    .modalities__grid {
        grid-template-columns: repeat(3, 1fr);

        .modality {
            &:nth-child(1) {
                grid-column: 1;
                grid-row: 1;
            }

            &:nth-child(2) {
                grid-column: 2;
                grid-row: 1;
            }

            &:nth-child(3) {
                grid-column: 3;
                grid-row: 1;
            }

            &:nth-child(4) {
                grid-column: 1;
                grid-row: 2;
            }

            &:nth-child(5) {
                grid-column: 2;
                grid-row: 2;
            }
        }
    }
}

@media (max-width: 700px) {
    .modalities__grid {
        grid-template-columns: repeat(2, 1fr);

        .modality {
            &:nth-child(1) {
                grid-column: 1;
                grid-row: 1;
            }

            &:nth-child(2) {
                grid-column: 2;
                grid-row: 1;
            }

            &:nth-child(3) {
                grid-column: 1;
                grid-row: 2;
            }

            &:nth-child(4) {
                grid-column: 2;
                grid-row: 2;
            }

            &:nth-child(5) {
                grid-column: 1;
                grid-row: 3;
            }
        }
    }
}

@media (max-width: 450px) {
    .modalities__grid {
        grid-template-columns: 1fr;

        .modality {
            &:nth-child(1) {
                grid-column: 1;
                grid-row: 1;
            }

            &:nth-child(2) {
                grid-column: 1;
                grid-row: 2;
            }

            &:nth-child(3) {
                grid-column: 1;
                grid-row: 3;
            }

            &:nth-child(4) {
                grid-column: 1;
                grid-row: 4;
            }

            &:nth-child(5) {
                grid-column: 1;
                grid-row: 5;
            }
        }
    }
}

/* =======================================================
   HORÁRIO DE FUNCIONAMENTO
======================================================= */

.opening-hours {
    position: relative;

    overflow: hidden;

    border-top: 1px solid #151515;
}

.opening-hours__status {
    padding: 7px 11px;

    border: 1px solid rgba(254, 129, 65, 0.2);

    color: #FE8141;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;

    text-transform: uppercase;
}


/* -------------------------------------------------------
   Layout
------------------------------------------------------- */

.opening-hours__layout {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.75fr)
        minmax(420px, 1.25fr);

    align-items: center;

    gap: clamp(50px, 8vw, 120px);
}


/* -------------------------------------------------------
   Conteúdo
------------------------------------------------------- */

.opening-hours__content {
    max-width: 480px;
}


.opening-hours__line {
    display: block;

    width: 42px;
    height: 2px;

    margin-bottom: 22px;

    background: #FB742A;
}


.opening-hours__eyebrow {
    margin: 0 0 18px;

    color: #777;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.18em;

    line-height: 1.4;
}


.opening-hours__title {
    margin: 0 0 24px;

    color: #fff;

    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 500;

    letter-spacing: -0.055em;
    line-height: 0.95;
}


.opening-hours__title strong {
    display: block;

    color: #FB742A;

    font-weight: 700;
}


.opening-hours__description {
    max-width: 400px;

    margin: 0;

    color: #888;

    font-size: 0.95rem;

    line-height: 1.75;
}


/* -------------------------------------------------------
   Card
------------------------------------------------------- */

.opening-hours__card {
    position: relative;

    overflow: hidden;

    border: 1px solid #242424;

    background: #0d0d0d;
}


/* detalhe laranja no topo */

.opening-hours__card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: #FB742A;
}


/* -------------------------------------------------------
   Cabeçalho do card
------------------------------------------------------- */

.opening-hours__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 92px;

    padding: 24px 30px;

    border-bottom: 1px solid #242424;

    background:
        linear-gradient(
            135deg,
            rgba(254, 129, 65, 0.07),
            transparent 60%
        );
}


.opening-hours__label {
    display: block;

    margin-bottom: 7px;

    color: #666;

    font-size: 0.62rem;
    font-weight: 800;

    letter-spacing: 0.18em;
}


.opening-hours__card-header h3 {
    margin: 0;

    color: #f2f2f2;

    font-size: 1.05rem;
    font-weight: 700;

    letter-spacing: -0.02em;
}


/* -------------------------------------------------------
   Lista
------------------------------------------------------- */

.opening-hours__list {
    width: 100%;
}


.opening-hours__day {
    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

    min-height: 42px;

    padding: 0 30px;

    border-bottom: 1px solid #1d1d1d;

    color: #858585;

    font-size: 0.84rem;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}


.opening-hours__day:last-child {
    border-bottom: 0;
}


/* Horário */

.opening-hours__day strong {
    min-width: 130px;

    color: #eeeeee;

    font-size: 0.8rem;
    font-weight: 700;

    line-height: 1;

    text-align: right;

    white-space: nowrap;

    transition: color 180ms ease;
}


/* Hover */

.opening-hours__day:hover {
    background: #121212;

    color: #FB742A;
}


.opening-hours__day:hover strong {
    color: #FB742A;
}


/* -------------------------------------------------------
   Destaque para fim de semana
------------------------------------------------------- */

.opening-hours__day:nth-child(6),
.opening-hours__day:nth-child(7) {
    color: #777;
}


/* -------------------------------------------------------
   Responsivo — tablet
------------------------------------------------------- */

@media (max-width: 900px) {

    .opening-hours__layout {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .opening-hours__content {
        max-width: 600px;
    }


    .opening-hours__title {
        font-size: clamp(2.6rem, 8vw, 4rem);
    }


    .opening-hours__description {
        max-width: 480px;
    }

}


/* -------------------------------------------------------
   Responsivo — mobile
------------------------------------------------------- */

@media (max-width: 520px) {

    .opening-hours__layout {
        gap: 40px;
    }


    .opening-hours__card-header {
        min-height: 82px;

        padding: 22px 20px;
    }


    .opening-hours__day {
        padding: 0 20px;

        font-size: 0.8rem;
    }


    .opening-hours__day strong {
        min-width: 112px;

        font-size: 0.74rem;
    }


    .opening-hours__title {
        font-size: 2.6rem;
    }

}


/* -------------------------------------------------------
   Mobile pequeno
------------------------------------------------------- */

@media (max-width: 380px) {

    .opening-hours__day {
        grid-template-columns: 1fr;

        gap: 5px;

        align-items: center;

        min-height: 70px;

        padding: 10px 20px;
    }


    .opening-hours__day strong {
        min-width: 0;

        text-align: left;
    }

}

/* -------------------------------------------------------
   Final CTA
------------------------------------------------------- */

.final-cta {
    position: relative;

    min-height: 560px;

    display: grid;
    place-items: center;

    overflow: hidden;

    text-align: center;
}

.final-cta__background {
    position: absolute;
    inset: -10%;

    background:
        linear-gradient(
            rgba(10, 10, 10, 0.88),
            rgba(10, 10, 10, 0.94)
        ),
        url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2200&q=85")
        center / cover no-repeat;

    /*
     * Outro efeito parallax usando somente CSS.
     */
    animation: final-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;

    will-change: transform;
}

.final-cta__content {
    position: relative;
    z-index: 1;
}

.final-cta__content > p:not(.eyebrow) {
    margin: 24px auto 30px;

    color: #aaa;
}


/* -------------------------------------------------------
   Scroll reveal
------------------------------------------------------- */

/*
 * Os blocos começam discretamente abaixo e transparentes.
 *
 * Conforme o elemento entra na viewport:
 *
 *   opacity: 0 -> 1
 *   translateY(45px) -> translateY(0)
 *
 * Tudo acontece através de animation-timeline: view().
 */

.scroll-reveal {
    animation: scroll-reveal linear both;

    animation-timeline: view();

    /*
     * "cover 30%" faz a animação terminar quando
     * aproximadamente 30% do elemento estiver coberto
     * pela área de visualização.
     */
    animation-range: entry 0% cover 30%;
}

@keyframes scroll-reveal {
    from {
        opacity: 0;

        transform: translateY(45px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* -------------------------------------------------------
   Keyframes de parallax
------------------------------------------------------- */

@keyframes hero-parallax {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(12%);
    }
}

@keyframes section-parallax {
    from {
        transform: scale(1.12) translateY(-5%);
    }

    to {
        transform: scale(1.12) translateY(5%);
    }
}

@keyframes final-parallax {
    from {
        transform: scale(1.12) translateY(-4%);
    }

    to {
        transform: scale(1.12) translateY(6%);
    }
}


/* -------------------------------------------------------
   Footer
------------------------------------------------------- */

footer {
    padding: 24px;

    background: #060606;

    color: #555;

    font-size: 0.62rem;
    letter-spacing: 0.1em;

    text-align: center;
}


/* -------------------------------------------------------
   Responsivo
------------------------------------------------------- */

@media (max-width: 800px) {

    .header {
        padding-block: 20px;
    }

    .hero__actions, 
    .hero__social {
        flex-direction: column;
        align-items: start;
    }

    .hero__social .separator {
        display: none;
    }

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

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

    .modalities__grid .modality:last-child {
        grid-column: 1 / -1;
    }

    .section {
        padding-block: 85px;
    }

    .parallax-section {
        min-height: 600px;
    }
}


@media (max-width: 520px) {

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

    .header {
        width: calc(100% - 28px);
    }

    .hero__description {
        font-size: 0.9rem;
    }

    .hero__scroll {
        display: none;
    }

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

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

    .modalities__grid .modality:last-child {
        grid-column: auto;
    }

    .modality {
        min-height: 180px;
    }
}


/* -------------------------------------------------------
   Acessibilidade
------------------------------------------------------- */

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

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal,
    .hero__background,
    .parallax-section__background,
    .final-cta__background {
        animation: none;
    }

    .hero__background,
    .parallax-section__background,
    .final-cta__background {
        transform: none;
    }
}
