/* ================================
   CONFIGURAÇÕES GERAIS
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #d62828;
    --dark-red: #a4161a;
    --orange: #f77f00;
    --yellow: #fcbf49;
    --cream: #fff8ed;
    --white: #ffffff;
    --dark: #171717;
    --gray: #6b6b6b;
    --light-gray: #f4f4f4;
    --border: #e8e8e8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}


/* ================================
   HEADER
================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 21px;
    font-weight: 900;

    color: var(--red);
}

.nav {
    display: flex;
    gap: 27px;
}

.nav a {
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.nav a:hover {
    color: var(--red);
}

.cart-button {
    border: 0;
    background: var(--red);
    color: white;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 16px;
    border-radius: 12px;

    font-weight: 800;

    transition: 0.2s;
}

.cart-button:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
}

.cart-count {
    min-width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

    background: white;
    color: var(--red);

    border-radius: 999px;
    font-size: 12px;
}


/* ================================
   HERO
================================ */

.hero {
    padding: 90px 0 75px;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(247, 127, 0, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff9f0,
            #fff2dd
        );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.hero-tag,
.section-tag {
    display: inline-block;

    color: var(--red);
    background: #ffe3df;

    padding: 7px 13px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 18px;
}

.hero h1 {
    max-width: 700px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -3px;

    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--red);
}

.hero-text > p {
    color: var(--gray);
    font-size: 18px;

    max-width: 620px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 0 22px;
    border-radius: 12px;

    font-weight: 800;

    transition: 0.2s;
}

.button.primary {
    background: var(--red);
    color: white;
}

.button.primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

.button.secondary {
    background: white;
    border: 1px solid var(--border);
}

.button.secondary:hover {
    border-color: var(--red);
    color: var(--red);
}

.hero-card {
    background: white;

    padding: 35px;
    border-radius: 28px;

    display: flex;
    align-items: center;
    gap: 25px;

    box-shadow: 0 25px 70px rgba(70, 30, 0, 0.12);

    transform: rotate(2deg);
}

.pizza-illustration {
    width: 130px;
    height: 130px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #fff1d5;

    font-size: 82px;
}

.hero-card strong {
    font-size: 21px;
}

.hero-card p {
    color: var(--gray);
    margin-top: 5px;
}


/* ================================
   BENEFÍCIOS
================================ */

.benefits {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.benefits article {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 28px 30px;
}

.benefits article:not(:last-child) {
    border-right: 1px solid var(--border);
}

.benefits article > span {
    font-size: 30px;
}

.benefits strong {
    display: block;
}

.benefits p {
    color: var(--gray);
    font-size: 13px;
}


/* ================================
   CARDÁPIO
================================ */

.menu-section {
    padding: 90px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 35px;
}

.section-heading > span {
    color: var(--red);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;

    margin: 8px 0 10px;
}

.section-heading p {
    color: var(--gray);
}

.category-buttons {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;

    margin-bottom: 35px;
}

.category {
    border: 1px solid var(--border);
    background: white;

    padding: 10px 17px;
    border-radius: 999px;

    font-weight: 700;
}

.category:hover,
.category.active {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;

    overflow: hidden;

    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 190px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff0d6,
            #ffe2b0
        );

    font-size: 95px;
}

.product-info {
    padding: 22px;
}

.product-category {
    display: inline-block;

    color: var(--red);

    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 21px;
    margin-bottom: 7px;
}

.product-info > p {
    color: var(--gray);
    font-size: 14px;

    min-height: 45px;
}

.product-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;

    margin-top: 22px;
}

.price small {
    display: block;
    color: var(--gray);
    font-size: 11px;
}

.price strong {
    color: var(--red);
    font-size: 19px;
}

.add-product {
    border: 0;
    background: var(--red);
    color: white;

    padding: 10px 14px;
    border-radius: 10px;

    font-weight: 800;
}

.add-product:hover {
    background: var(--dark-red);
}


/* ================================
   SOBRE
================================ */

.about {
    padding: 90px 0;
    background: var(--dark);
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;

    margin-bottom: 20px;
}

.about-content > div:first-child p {
    color: #bdbdbd;
    margin-top: 13px;
}

.about-info {
    display: grid;
    gap: 13px;
}

.about-info article {
    display: flex;
    align-items: center;
    gap: 17px;

    background: #242424;
    border: 1px solid #333;

    padding: 20px;
    border-radius: 15px;
}

.about-info article > span {
    font-size: 27px;
}

.about-info p {
    color: #aaa;
    font-size: 13px;
}


/* ================================
   CONTATO
================================ */

.contact {
    padding: 70px 0;
    background: var(--yellow);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.contact p {
    margin-top: 7px;
}


/* ================================
   CARRINHO
================================ */

.cart-overlay {
    position: fixed;
    inset: 0;

    z-index: 200;

    background: rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;

    z-index: 201;

    top: 0;
    right: -470px;

    width: min(440px, 100%);
    height: 100%;

    background: white;

    display: flex;
    flex-direction: column;

    transition: 0.3s;
}

.cart.active {
    right: 0;
}

.cart-header {
    padding: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.cart-header span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.close-cart,
.review-header button {
    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: var(--light-gray);

    font-size: 18px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;

    padding: 20px;
}

.empty-cart {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-cart > span {
    font-size: 55px;
}

.empty-cart p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 5px;
}

.cart-footer {
    padding: 22px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.cart-total strong {
    font-size: 22px;
    color: var(--red);
}

.checkout-button {
    width: 100%;

    border: 0;
    background: var(--red);
    color: white;

    padding: 15px;
    border-radius: 12px;

    font-weight: 900;
}

.checkout-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* ================================
   REVISÃO
================================ */

.modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 300;

    background: rgba(0, 0, 0, 0.7);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.review-modal {
    width: min(620px, 100%);
    max-height: 90vh;
    overflow-y: auto;

    background: white;

    border-radius: 22px;
    padding: 27px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}

.review-header > div > span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.review-products {
    padding: 17px;

    background: var(--light-gray);
    border-radius: 13px;

    margin-bottom: 25px;
}

#orderForm {
    display: grid;
    gap: 17px;
}

#orderForm h3 {
    margin-bottom: -5px;
}

#orderForm label {
    display: grid;
    gap: 6px;

    font-size: 13px;
    font-weight: 800;
}

#orderForm input,
#orderForm select,
#orderForm textarea {
    width: 100%;

    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 12px;

    background: white;
}

#orderForm textarea {
    min-height: 90px;
    resize: vertical;
}

#orderForm input:focus,
#orderForm select:focus,
#orderForm textarea:focus {
    outline: 2px solid rgba(214, 40, 40, 0.2);
    border-color: var(--red);
}

.review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.review-total strong {
    color: var(--red);
    font-size: 23px;
}

.review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.edit-order,
.confirm-order {
    border: 0;

    padding: 14px;
    border-radius: 11px;

    font-weight: 900;
}

.edit-order {
    background: var(--light-gray);
}

.confirm-order {
    background: var(--red);
    color: white;
}


/* ================================
   RODAPÉ
================================ */

footer {
    padding: 35px 0;
    background: #101010;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

footer p {
    color: #888;
    font-size: 13px;
}


/* ================================
   CELULAR
================================ */

@media (max-width: 800px) {

    .nav {
        display: none;
    }

    .header-content {
        min-height: 65px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-card {
        transform: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefits article:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 560px) {

    .logo span {
        font-size: 16px;
    }

    .cart-button > span:nth-child(2) {
        display: none;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-card {
        padding: 22px;
    }

    .pizza-illustration {
        width: 90px;
        height: 90px;

        font-size: 58px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .review-actions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}