/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --red: #e31837;
    --dark-red: #b70f29;
    --black: #171717;
    --white: #ffffff;
    --cream: #fff8ed;
    --gray: #666;
    --light-gray: #f4f4f4;

    --container: 1200px;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 30px;

    --shadow:
        0 15px 45px rgba(0, 0, 0, 0.08);
}


/* =========================================
   GLOBAL
========================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

section {
    padding: 100px 0;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--red);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading h2 {
    margin-bottom: 15px;

    font-size: clamp(
        36px,
        5vw,
        58px
    );

    line-height: 1.05;
}

.section-heading h2 span,
.hero-content h1 span,
.offers-section h2 span {
    color: var(--red);
}

.section-heading p {
    color: var(--gray);
    font-size: 17px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 25px;

    border-radius: 999px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--red);
}

.btn-primary:hover {
    background: var(--dark-red);
}

.btn-secondary {
    color: var(--black);
    background: var(--light-gray);
}

.btn-light {
    color: var(--red);
    background: var(--white);
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #eee;
}

.nav-wrapper {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    width: 110px;
    flex-shrink: 0;
}

.logo img {
    max-height: 55px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 14px;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;

    border: 0;
    background: none;

    font-size: 26px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 680px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 90% 30%,
            #ffe5d0,
            transparent 35%
        ),
        var(--cream);

    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 60px;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    margin-bottom: 25px;

    font-size: clamp(
        48px,
        7vw,
        82px
    );

    line-height: 0.98;

    letter-spacing: -3px;
}

.hero-content p {
    max-width: 530px;

    margin-bottom: 32px;

    color: var(--gray);

    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image {
    position: relative;

    border-radius: 50%;

    overflow: hidden;

    aspect-ratio: 1;
}

.hero-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 50%,
            rgba(227, 24, 55, 0.15)
        );
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}


/* =========================================
   FEATURED PIZZAS
========================================= */

.featured-section {
    background: var(--white);
}

.pizza-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.pizza-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid #eee;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.pizza-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.12);
}

.pizza-image {
    aspect-ratio: 1.25;
    overflow: hidden;
}

.pizza-image img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.pizza-card:hover .pizza-image img {
    transform: scale(1.05);
}

.pizza-info {
    padding: 25px;
}

.pizza-info h3 {
    margin-bottom: 8px;
    font-size: 23px;
}

.pizza-info p {
    margin-bottom: 22px;

    color: var(--gray);
    font-size: 14px;
}

.pizza-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.card-link {
    color: var(--red);
    font-weight: 800;
}


/* =========================================
   OFFERS
========================================= */

.offers-section {
    color: var(--white);

    background:
        linear-gradient(
            120deg,
            #a90e28,
            var(--red)
        );
}

.offers-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.offer-content {
    max-width: 700px;
}

.offer-content .eyebrow {
    color: #ffd5dc;
}

.offers-section h2 {
    margin-bottom: 20px;

    font-size: clamp(
        40px,
        6vw,
        70px
    );

    line-height: 1;
}

.offers-section h2 span {
    color: #ffd75a;
}

.offer-content p {
    max-width: 550px;

    margin-bottom: 30px;

    color: #ffe9ed;

    font-size: 17px;
}

.offer-badge {
    width: 190px;
    height: 190px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--red);
    background: #ffd75a;

    transform: rotate(8deg);
}

.offer-badge strong {
    font-size: 55px;
    line-height: 1;
}

.offer-badge span {
    font-weight: 900;
}


/* =========================================
   WHY US
========================================= */

.why-section {
    background: var(--cream);
}

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.benefit-card {
    padding: 35px;

    background: var(--white);

    border-radius: var(--radius-md);
}

.benefit-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 50%;

    background: #fff0f2;

    font-size: 30px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    font-size: 23px;
}

.benefit-card p {
    color: var(--gray);
}


/* =========================================
   CATEGORIES
========================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.category-card {
    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-radius: var(--radius-md);

    background: var(--light-gray);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.category-card span {
    margin-bottom: 15px;
    font-size: 55px;
}

.category-card h3 {
    font-size: 22px;
}

.category-card small {
    color: var(--gray);
}

.category-card:hover {
    color: var(--white);
    background: var(--red);

    transform: translateY(-5px);
}

.category-card:hover small {
    color: #ffe2e7;
}


/* =========================================
   REVIEWS
========================================= */

.reviews-section {
    background: var(--black);
    color: var(--white);
}

.review-content {
    max-width: 850px;

    margin: 0 auto 80px;

    text-align: center;
}

.quote-mark {
    display: block;

    color: var(--red);

    font-family: Georgia, serif;

    font-size: 100px;
    line-height: 0.7;
}

.review-content blockquote {
    margin-bottom: 30px;

    font-size: clamp(
        28px,
        4vw,
        48px
    );

    line-height: 1.15;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-author span {
    color: #ffd75a;
}


/* =========================================
   ORDER CTA
========================================= */

.order-cta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 45px;

    border-radius: var(--radius-lg);

    background: var(--red);
}

.order-cta .eyebrow {
    color: #ffd5dc;
}

.order-cta h2 {
    max-width: 600px;

    font-size: clamp(
        30px,
        4vw,
        48px
    );

    line-height: 1.05;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    color: #ddd;
    background: #111;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        repeat(3, 1fr);

    gap: 50px;

    padding-top: 75px;
    padding-bottom: 65px;
}

.footer-brand img {
    width: 110px;

    margin-bottom: 20px;

    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 300px;
    color: #999;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 8px;

    color: var(--white);
}

.footer-column a {
    color: #999;

    font-size: 14px;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid #292929;
}

.footer-bottom p {
    color: #777;
    font-size: 13px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    section {
        padding: 75px 0;
    }

    .main-nav,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content {
        margin: auto;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 550px;
        width: 100%;
        margin: auto;
    }

    .pizza-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .container {
        width: min(
            calc(100% - 30px),
            var(--container)
        );
    }

    section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .pizza-grid,
    .benefits-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .offers-section .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-badge {
        width: 140px;
        height: 140px;
    }

    .offer-badge strong {
        font-size: 40px;
    }

    .order-cta {
        flex-direction: column;
        align-items: flex-start;

        padding: 30px;
    }

    .order-cta .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}