:root {
    --red: #aa1017;
    --dark: #241711;
    --cream: #fff7e9;
    --gold: #efa91b;
    --green: #80aa35;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff8ec;
    background-image: radial-gradient(rgba(111, 72, 34, .055) .7px, transparent .7px);
    background-size: 5px 5px;
}

main {
    position: relative;
    isolation: isolate;
}

main>section {
    position: relative;
    z-index: 1;
}

.footstep-trail {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    animation: trail-window 36s linear infinite;
}

.trail-a { animation-delay: 0s; }
.trail-b { animation-delay: 12s; }
.trail-c { animation-delay: 24s; }

@keyframes trail-window {
    0%, 31% { opacity: 1; }
    33%, 100% { opacity: 0; }
}

.footstep-trail i {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 9.1px;
    height: 20.3px;
    display: block;
    border-radius: 62% 48% 44% 55%;
    background: currentColor;
    color: #7e1a18;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--turn));
    filter: drop-shadow(0 2px 2px rgba(68, 29, 16, .12));
    animation: reveal-footstep 12s ease-in-out infinite;
    animation-delay: calc(var(--step) * .72s);
}

.footstep-trail i::after {
    content: "";
    position: absolute;
    left: 1.4px;
    bottom: -4.9px;
    width: 6.3px;
    height: 5.6px;
    border-radius: 3px 3px 5px 5px;
    background: currentColor;
}

.footstep-trail .foot-left {
    margin-left: -9px;
}

.footstep-trail .foot-right {
    margin-left: 9px;
    transform: translate(-50%, -50%) rotate(var(--turn)) scaleX(-1);
}

@keyframes reveal-footstep {
    0%, 8% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--turn)) scale(.82); }
    14%, 48% { opacity: .2; transform: translate(-50%, -50%) rotate(var(--turn)) scale(1); }
    70%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--turn)) scale(1.04); }
}

.footstep-trail .foot-right {
    animation-name: reveal-right-footstep;
}

@keyframes reveal-right-footstep {
    0%, 8% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--turn)) scaleX(-1) scale(.82); }
    14%, 48% { opacity: .2; transform: translate(-50%, -50%) rotate(var(--turn)) scaleX(-1) scale(1); }
    70%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--turn)) scaleX(-1) scale(1.04); }
}

.hero,
#nossas-casas {
    position: relative;
}

.ingredient-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ingredient {
    position: absolute;
    display: block;
    transform: rotate(var(--rotate, 0deg));
    color: var(--ingredient-color, var(--red));
    opacity: var(--ingredient-opacity, .22);
    filter: blur(var(--ingredient-blur, 0)) drop-shadow(0 12px 14px rgba(67, 30, 10, .18));
    animation: ingredient-float var(--float-duration, 7s) ease-in-out infinite alternate;
}

.ingredient:nth-child(2n) { --float-duration: 9s; animation-delay: -3s; }
.ingredient:nth-child(3n) { --float-duration: 11s; animation-delay: -6s; }

@keyframes ingredient-float {
    from { transform: translate3d(0, -4px, 0) rotate(var(--rotate, 0deg)); }
    to { transform: translate3d(8px, 9px, 0) rotate(calc(var(--rotate, 0deg) + 5deg)); }
}

.ingredient-basil { --ingredient-color: #668f35; }
.ingredient-pepper { --ingredient-color: #a80e16; }
.ingredient-cheese { --ingredient-color: #e6a323; }
.ingredient-herb { --ingredient-color: #7ca348; }
.ingredient-hero-1 { top: 11%; left: 2%; font-size: 3rem; --rotate: -28deg; --ingredient-opacity: .13; --ingredient-blur: 1px; }
.ingredient-hero-2 { right: 2%; bottom: 8%; font-size: 5rem; --rotate: 24deg; --ingredient-opacity: .1; --ingredient-blur: 3px; }
.ingredient-hero-3 { left: 47%; bottom: 3%; font-size: 2.25rem; --rotate: -18deg; --ingredient-opacity: .16; }
.ingredient-cards-1 { left: -1.5%; top: 34%; font-size: 5.5rem; --rotate: 35deg; --ingredient-opacity: .14; --ingredient-blur: 2px; }
.ingredient-cards-2 { right: -1%; top: 4%; font-size: 3.5rem; --rotate: -20deg; --ingredient-opacity: .17; }
.ingredient-houses-1 { right: 1%; top: 13%; font-size: 4.6rem; --rotate: -25deg; --ingredient-opacity: .12; --ingredient-blur: 2px; }
.ingredient-houses-2 { left: 1%; top: 61%; font-size: 2.8rem; --rotate: 35deg; --ingredient-opacity: .16; }
.ingredient-houses-3 { right: 3%; bottom: 3%; font-size: 6rem; --rotate: 15deg; --ingredient-opacity: .08; --ingredient-blur: 4px; }

.hero-grid,
#nossas-casas>.page-shell,
.cards-ingredients+.page-shell {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
}

.page-shell {
    width: min(100% - 32px, 1240px);
    margin-inline: auto;
}

.hero {
    min-height: 660px;
    background: #fff9ee url('../img/bg-edwiges-topo.jpg') center/cover no-repeat;
}

.hero-grid {
    position: relative;
    min-height: 660px;
    display: grid;
    align-items: center;
    grid-template-columns: 55% 45%;
}

.hero-copy {
    width: 100%;
    padding: 36px 28px 125px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-copy p {
    width: 100%;
    margin-inline: auto !important;
    text-align: center;
}

.logo {
    width: min(290px, 72vw);
    height: auto;
}

.hero-title {
    width: min(100%, 610px);
    margin-inline: auto;
    text-align: center;
    font-size: clamp(2.5rem, 3.35vw, 3.25rem);
    letter-spacing: -.045em;
}

.hero-title span,
.section-heading h2 {
    color: var(--red);
}

.ornament {
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(390px, 76%);
}

.ornament i {
    height: 1px;
    background: #9e7669;
    flex: 1;
}

.ornament img {
    width: 28px;
    height: 28px;
    flex: none;
    object-fit: contain;
}

.hero-visual {
    position: absolute;
    z-index: 0;
    width: 84%;
    right: -33%;
    top: -13%;
}

.hero-visual-viewport {
    display: contents;
}

.hero-visual img {
    width: 100%;
    max-height: 760px;
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgba(57, 24, 6, .18));
}

.choice-card {
    min-height: 330px;
    padding: 35px 38px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 18px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 28px rgba(77, 36, 13, .18);
    background-size: cover;
    background-position: center;
}

.choice-delivery {
    background-image: url('../img/bg-card-pedir-delivery.png');
}

.choice-unit {
    background-image: url('../img/bg-card-escolha-uma-unidade.png');
}

.choice-owl {
    width: 145px;
    height: 145px;
    object-fit: contain;
}

.choice-content h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.choice-content p {
    margin-top: 10px;
    font-size: 1.08rem;
    line-height: 1.45;
    max-width: 340px;
}

.choice-card>.cta {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-height: 62px;
    height: 62px;
    margin-top: 22px;
}

.cta {
    margin-top: 26px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 800;
    transition: .2s ease;
}

.cta:hover,
.house-actions a:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.cta-light {
    width: 100%;
    padding: 10px 24px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    color: var(--red);
    background: #fff8eb;
    line-height: 1.15;
}

.button-icon {
    position: static;
    justify-self: center;
    font-size: 1.25rem;
}

.cta-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 48px;
}

.cta-copy strong {
    font-size: 1.04rem;
    line-height: 1.2;
}

.cta-red {
    max-width: 300px;
    color: #fff;
    background: var(--red);
}

.cta-red i {
    font-size: 1.15rem;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.title-row i {
    width: 190px;
    max-width: 22vw;
    height: 1px;
    background: #9e7669;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 800;
}

.section-heading p {
    font-size: 1.05rem;
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.house-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fffaf0;
    box-shadow: 0 8px 17px rgba(93, 52, 25, .13);
}

.house-photo {
    position: relative;
    height: 235px;
    overflow: hidden;
}

.house-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.house-card:hover .house-photo img {
    transform: scale(1.08);
}

.house-number {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 15px;
    border-radius: 0 0 14px 0;
    color: white;
    background: var(--red);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.house-number b {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
}

.delivery-base {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.house-body {
    padding: 19px 18px 20px;
}

.house-body h3 {
    min-height: 48px;
    color: #8f0c14;
    font-size: 1.08rem;
    font-weight: 800;
}

.address {
    min-height: 68px;
    font-size: .82rem;
    line-height: 1.65;
}

.address>i {
    width: 15px;
    color: var(--red);
    text-align: center;
}

.features {
    min-height: 71px;
    padding-top: 15px;
    border-top: 1px dotted #a68a7b;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .68rem;
    text-transform: uppercase;
}

.feature {
    width: 36px;
    height: 36px;
    margin-left: 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
}

.feature.red {
    background: #d21d29
}

.feature.gold {
    background: var(--gold)
}

.feature.green {
    background: var(--green);
    font-size: 1rem
}

.features b {
    margin-top: 10px;
}

.house-actions {
    display: grid;
    gap: 8px;
}

.house-actions a {
    padding: 9px;
    border-radius: 999px;
    border: 1px solid var(--red);
    color: var(--red);
    text-align: center;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 800;
    transition: .2s ease;
}

.house-actions a:first-child {
    color: white;
    background: var(--red);
}

.benefits {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 26px;
    background: rgba(255, 248, 235, .86);
    box-shadow: 0 4px 18px rgba(106, 67, 32, .06);
}

.benefits article {
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-right: 1px solid #ad9a86;
}

.benefits article:last-child {
    border-right: 0;
}

.benefits img {
    width: 76px;
    height: 76px;
    flex: none;
    object-fit: contain;
}

.benefits h3 {
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.1;
}

.benefits p {
    margin-top: 4px;
    font-size: .72rem;
    line-height: 1.35;
}

.footer {
    min-height: 170px;
    background: #8e080d url('../img/edwiges-rodape.png') center/cover no-repeat;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.55rem;
    line-height: 1;
    transition: transform .2s ease, opacity .2s ease;
}

.socials a:hover {
    opacity: .82;
    transform: translateY(-2px);
}

.footer-credit {
    width: min(100%, 620px);
    margin: 22px auto 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
}

.footer-credit i {
    margin: 0 3px;
    color: #f1b323;
    font-size: .68rem;
}

.footer-credit a {
    color: #fff;
    font-weight: 700;
    transition: opacity .2s ease;
}

.footer-credit a:hover {
    opacity: .75;
}

@media(max-width:1023px) {
    .hero {
        min-height: 720px
    }

    .hero-grid {
        min-height: 720px;
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 40px 0 310px
    }

    .hero-visual {
        width: 760px;
        max-width: 115%;
        right: -24%;
        top: 255px;
        opacity: .95
    }

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

    .benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px
    }

    .choice-card {
        min-height: 300px
    }
}

@media(max-width:639px) {
    .page-shell {
        width: min(100% - 24px, 1240px)
    }

    .hero {
        min-height: 530px;
        overflow: visible !important
    }

    .hero-grid {
        min-height: 530px
    }

    .hero-copy {
        padding: 28px 0 70px
    }

    .logo {
        width: min(235px, 64vw)
    }

    .hero-title {
        font-size: 2.35rem
    }

    .hero-visual-viewport {
        display: block;
        position: absolute;
        z-index: 1;
        top: 0;
        left: -12px;
        width: calc(100% + 24px);
        height: 950px;
        overflow: hidden;
        pointer-events: none
    }

    .hero-visual {
        display: block;
        z-index: 1;
        top: 350px;
        right: auto;
        left: 44%;
        width: 760px;
        max-width: none;
        opacity: 1;
        transform: rotate(-8deg)
    }

    .choice-section {
        isolation: isolate;
        overflow: hidden;
    }

    .choice-section::before {
        content: none;
    }

    .choice-section>.page-shell {
        position: relative;
        z-index: auto;
    }

    .choice-card>* {
        position: relative;
        z-index: 3;
    }

    .choice-card {
        min-height: auto;
        padding: 25px 22px;
        grid-template-columns: 92px 1fr;
        border-radius: 18px
    }

    .choice-owl {
        width: 88px;
        height: 100px
    }

    .choice-content h2 {
        font-size: 1.45rem
    }

    .choice-content p {
        font-size: .92rem
    }

    .cta {
        font-size: .82rem
    }

    .cta-light {
        min-height: 62px;
        padding: 8px 15px;
        grid-template-columns: 34px 1fr
    }

    .cta-copy {
        padding-right: 34px
    }

    .cta-copy strong {
        font-size: .84rem
    }

    .cta-copy small {
        font-size: .72rem
    }

    .button-icon {
        display: block;
        font-size: 1rem
    }

    .houses-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .house-photo {
        height: 280px
    }

    .house-body h3,
    .address {
        min-height: auto;
        margin-bottom: 12px
    }

    .features {
        min-height: 65px
    }

    .benefits {
        grid-template-columns: 1fr;
        padding: 24px 20px
    }

    .benefits article,
    .benefits article:nth-child(2) {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid #d3c1ac
    }

    .benefits article:last-child {
        padding-bottom: 0;
        border-bottom: 0
    }

    .title-row {
        gap: 12px
    }

    .title-row i {
        max-width: 15vw
    }

    .ingredient-hero-1,
    .ingredient-hero-3,
    .ingredient-cards-2,
    .ingredient-houses-3 {
        display: none;
    }

    .ingredient-cards-1 {
        left: -8%;
        top: 43%;
        font-size: 4rem;
        --ingredient-opacity: .09;
    }

    .ingredient-houses-1 {
        right: -7%;
        top: 18%;
        font-size: 3.5rem;
    }

    .ingredient-houses-2 {
        left: -4%;
        top: 68%;
        --ingredient-opacity: .1;
    }

    .footstep-trail i {
        width: 7px;
        height: 16.1px;
    }
}

@media(max-width:390px) {
    .choice-card {
        grid-template-columns: 1fr;
        text-align: center
    }

    .choice-owl {
        margin: auto
    }

    .choice-content p,
    .cta {
        margin-left: auto;
        margin-right: auto
    }

    .hero-title {
        font-size: 2.05rem
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .cta,
    .house-actions a {
        transition: none
    }

    .house-photo img {
        transition: none
    }

    .house-card:hover .house-photo img {
        transform: none
    }

    .ingredient {
        animation: none
    }

    .footstep-trail {
        display: none
    }
}
