@font-face {
    font-family: 'Thunder';
    src: url('/fonts/Thunder-ExtraBoldLC.woff2') format('woff2'),
        url('/fonts/Thunder-ExtraBoldLC.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #2B0F00;
    --secondary-color: #FFF0DC;
    --accent-color: #FEC51B;
    --secondary-accent-color: #EE4231;
    --text-weight: normal;
    --headline-font: Thunder;
    --border-radius: 20px;
}

html {
    scroll-behavior: smooth;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

header {
    color: var(--secondary-color);
    position: fixed;
    width: 100%;
    z-index: 2;
    background-color: var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
}

/* ===============Hero Section=============== */

#hero-section {
    position: relative;
}

nav {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 60px;
    font-size: 30px;
    font-family: var(--headline-font), Bebas Neue;
    -webkit-font-smoothing: antialiased;
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    font-family: Outfit;
    font-weight: 500;
    text-decoration: none;
    color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
}

.hero {
    width: 100%;
    display: grid;
    overflow: hidden;
    row-gap: 80px;
    grid-template-columns: auto auto;
    grid-template-rows: min-content 150px min-content;
}

.hero-info {
    grid-row: 1/2;
    grid-column: 1/2;
    padding-left: 50px;
}

.tag {
    display: inline-block;
    position: relative;
}

.tag::before {
    content: "";
    position: absolute;
    bottom: 80%;
    left: 90%;
    background-image: url(/assets/images/pizza-tag.png);
    background-position: center;
    background-size: cover;
    width: 87px;
    height: 87px;
    transform: rotate(-10deg);
    box-shadow: 0 1px 3px rgba(60, 30, 0, 0.2),
        0 0 1px rgba(60, 30, 0, 0.3) inset;
    opacity: 0.85;
    border-radius: 10000px;
    z-index: 1;
}

.hero-info h1 {
    font-family: var(--headline-font), Bebas Neue;
    color: var(--primary-color);
    font-size: clamp(3.5rem, 4.1vw + 3rem, 8rem);
    font-weight: normal;
    line-height: 80%;
    margin-bottom: 45px;
    margin-top: 184px;
    -webkit-font-smoothing: antialiased;
}

.hero-info a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 17px 28px 18px 28px;
    background-color: var(--accent-color);
    border-radius: 200px;
    width: 214px;
    justify-content: space-between;
    font-family: Outfit;
    font-weight: 500;
    font-size: 1.25rem;
    -webkit-font-smoothing: antialiased;
    border: 1px solid var(--primary-color);
    box-shadow: 1px 2px var(--primary-color);
}

.pizza-img-container {
    grid-row: 1/3;
    grid-column: 2/3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 1;
}

.pizza-img-container img {
    width: 95%;
    object-fit: contain;
}

.hero-marquee {
    grid-row: 2/4;
    grid-column: 1/3;
    padding: 0 0 60px 0;
}

.hero-marquee img {
    width: 100%;
}

/* ===============Cart=============== */

#cart-btn {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 8px;
    background-color: var(--accent-color);
    padding: 10px;
    cursor: pointer;
}

.pizza-cart {
    width: 400px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -400px;
    background-color: var(--secondary-color);
    box-shadow: -2px 0 4px rgb(120, 70, 20, .04);
    box-shadow: -8px 0 16px rgb(120, 70, 20, .08);
    z-index: 2;
    transition: .4s ease;
    overflow-y: auto;    /* enables vertical scrollbar */
}

.cart-items {
    padding: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item-name {
    font-weight: 600;
    padding-left: 7px;
}

.cart-item-price {
    opacity: 0.8;
}

.cart-open {
    right: 0;
}

.cart-exit {
    cursor: pointer;
}

.cart-bottom {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.checkout-btn {
    width: 100%;
    background: #ff8c42;
    color: white;
    border: none;
    padding: 12px 0;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.checkout-btn:hover {
    background: #ff6f1a;
}

.cart-bottom {
    display: flex;
    gap: 8px;
    padding: 20px;
}

.checkout-btn {
    flex: 1;
}

.clear-cart-btn {
    background: #e63232;
    border: none;
    color: white;
    padding: 12px 0;
    width: 80px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.clear-cart-btn:hover {
    background: #9b2222;
}


.dark-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgb(0, 0, 0, 0);
    z-index: 2;
    pointer-events: none;
    transition: all .4s ease;
}

.dark-overlay-open {
    pointer-events: all;
    background-color: rgb(0, 0, 0, .40);
}

.cart-top {
    padding: 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 4px 0px;
}

.cart-top p {
    font-family: var(--headline-font), Bebas Neue;
    color: var(--primary-color);
    font-weight: normal;
    font-size: 3rem;
    -webkit-font-smoothing: antialiased;
}

/* ===============Pizza Specials Section=============== */

#specials {
    padding: 50px 24px 40px 24px;
}

.specials-heading {
    padding-left: 26px;
}

.specials-heading h2 {
    font-family: var(--headline-font), Bebas Neue;
    color: var(--primary-color);
    font-weight: normal;
    line-height: 80%;
    font-size: 4.5rem;
    margin-bottom: 75px;
    -webkit-font-smoothing: antialiased;
}

.specials-container {
    display: flex;
    list-style: none;
    column-gap: 24px;
}

.pizza-card {
    flex: 1;
    background-color: #FFF7EA;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgb(120, 70, 20, .04);
    box-shadow: 0 8px 16px rgb(120, 70, 20, .08);
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.special-img-container {
    aspect-ratio: 1/1;
    background-color: var(--accent-color);
    background-image: url(/assets/svg/pizza-card-bg.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
}

.special-img-container img {
    width: 80%;
}

.pizza-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: 0 9px;
}

.pizza-name {
    text-transform: uppercase;
    font-family: var(--headline-font);
    font-size: 2.5rem;
    line-height: .9;
    -webkit-font-smoothing: antialiased;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    height: fit-content;
}

.rating span {
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-weight: var(--text-weight);
    font-size: .875rem;
    -webkit-font-smoothing: antialiased;
}

.ingredients {
    position: relative;
    width: 100%;
    list-style: none;
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-weight: var(--text-weight);
    font-size: .875rem;
    display: flex;
    gap: 16px;
    padding: 0 3px 16px 3px;
    background-image: linear-gradient(to right, var(--primary-color) 0 10%, rgba(255, 255, 255, 0) 10%);
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 8px 1px;
    -webkit-font-smoothing: antialiased;
}

.specials-add-to-cart {
    font-family: Outfit, sans-serif;
    font-weight: 400;
    padding: 17px 28px 18px 28px;
    background: var(--primary-color);
    border: none;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #FFF7EA;
    font-size: 1rem;
    cursor: pointer;
    transition: .1s ease;
    margin: 32px 0 0 0;
}

.specials-add-to-cart:hover {
    opacity: 80%;

}

/* ===============Builder Direct Section=============== */

#builder-direct {
    display: flex;
    justify-content: center;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.05);
    aspect-ratio: 2.13/1;
    background-image: url(/assets/images/pizza-parallax-bg.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #006B3D;
    border-radius: var(--border-radius);
    margin: 0 24px;
}


.builder-direct-content {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.builder-direct-content h2 {
    font-family: var(--headline-font), Bebas Neue;
    color: #FFF7EA;
    font-weight: normal;
    line-height: 80%;
    font-size: 4.5rem;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.builder-direct-content p {
    padding: 16px 0 32px 0;
    font-family: Outfit, sans-serif;
    font-weight: var(--text-weight);
    line-height: 100%;
    color: #FFF7EA;
    -webkit-font-smoothing: antialiased;
}

.builder-direct-content a {
    text-decoration: none;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-weight: 400;
    border-radius: 500px;
    padding: 17px 28px 18px 28px;
}

/* ===============About Section=============== */

#about {
    padding: 96px 50px 0 50px;
    position: relative;
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 250px;
}

.subhead {
    font-size: 14px;
    font-family: Outfit, sans-serif;
    font-weight: inherit;
    -webkit-font-smoothing: antialiased;
    line-height: 80%;
    padding-bottom: 10px;
    display: inline-block;
}

.subhead-h3 {
    font-size: 14px;
    font-family: Outfit, sans-serif;
    font-weight: inherit;
    -webkit-font-smoothing: antialiased;
    line-height: 80%;
    padding-bottom: 20px;
    display: inline-block;
}

.subhead-bottom {
    font-size: 14px;
    font-family: Outfit, sans-serif;
    font-weight: inherit;
    -webkit-font-smoothing: antialiased;
    line-height: 120%;
    padding-bottom: 4px;
    display: inline-block;
    width: 80%;
}

.subhead-right {
    font-size: 14px;
    font-family: Outfit, sans-serif;
    font-weight: inherit;
    -webkit-font-smoothing: antialiased;
    white-space: nowrap;
    padding-bottom: 4px;
    padding-right: 50px;
    display: inline-block;
    width: 80%;
}


.about-info h2 {
    font-family: var(--headline-font), Bebas Neue;
    color: var(--primary-color);
    font-weight: normal;
    line-height: 80%;
    font-size: 4.5rem;
    -webkit-font-smoothing: antialiased;
}

.about-info p {
    font-family: Outfit, sans-serif;
    color: var(--primary-color);
    padding: 128px 0 48px 0;
    max-width: 458px;
    line-height: 144%;
    font-weight: var(--text-weight);
    -webkit-font-smoothing: antialiased;
}

.about-info a {
    text-decoration: none;
    border-radius: 300px;
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-weight: 500;
    border-radius: 500px;
    padding: 17px 28px 18px 28px;
    display: inline-block;
    background-color: var(--accent-color);
    transition: .2 ease;
    border: 1px solid var(--primary-color);
    box-shadow: 1px 2px var(--primary-color);
    -webkit-font-smoothing: antialiased;
}

.about-stats {
    list-style: none;
}

.about-stats {
    flex: auto;
}

.about-stats li {
    display: flex;
    padding: 32px 28px 24px 28px;
    gap: 25px;
    align-items: baseline;
    background-image: linear-gradient(to right, #2B0F00 0 10%, rgba(255, 255, 255, 0) 10%);
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 8px 1px;
}

.about-stats li:nth-of-type(1) {
    padding-top: 7px;
}

.about-stats span {
    font-family: var(--headline-font), Bebas Neue;
    color: var(--primary-color);
    font-weight: normal;
    line-height: .8;
    font-size: 4.5rem;
    width: 20%;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

.about-stats p {
    line-height: 1.5;
    font-family: Outfit, sans-serif;
    color: var(--primary-color);
    max-width: 458px;
    line-height: 144%;
    font-size: 1.125rem;
    font-weight: var(--text-weight);
    -webkit-font-smoothing: antialiased;
}

.natural-pizza {
    position: relative;
    background-color: #006b3d;
    border-radius: var(--border-radius);
    margin-top: 180px;
    padding: 28px 24px 35px 24px;
    margin: 180px 24px 96px 24px;
    color: var(--secondary-color);
    overflow: hidden;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.05);
}

.natural-pizza h3 {
    font-family: var(--headline-font);
    font-weight: normal;
    font-size: 3.5rem;
    line-height: 90%;
    aspect-ratio: 5 / 1;
    -webkit-font-smoothing: antialiased;
}

.natural-pizza p {
    font-family: Outfit, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 144%;
    max-width: 335px;
}

.ingredient-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    opacity: 45%;
}

/* ===============Toast=============== */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #006B3D;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    font-family: Outfit, sans-serif;
    font-weight: 300;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hidden {
    display: none;
}


/* ===============Footer=============== */

footer {
    padding: 0 50px 120px 50px;
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-size: .875rem;
}

.footer-top {
    display: flex;
    gap: 24px;
    padding-bottom: 60px;
}

.footer-list {
    list-style: none;
    width: 100%;
    max-width: 262px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.footer-list li {
    -webkit-font-smoothing: antialiased;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 45px;
    background-image: linear-gradient(to right, #2B0F00 0 10%, rgba(255, 255, 255, 0) 10%);
    background-repeat: repeat-x;
    background-position: top;
    background-size: 8px 1px;
}

.footer-bottom ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-bottom a {
    text-decoration: none;
    color: var(--primary-color);
}



/* ===============BUILDER PAGE=============== */

.builder-page-container {
    display: grid;
    place-items: center;
    height: 100vh;
    filter: drop-shadow(0 18px 35px rgba(120, 70, 20, 0.14)) drop-shadow(0 8px 12px rgba(120, 70, 20, 0.08));
    padding: 48px;
}

.builder-page-grid {
    position: relative;
    background-color: #FFF7EA;
    width: 100%;
    max-width: 1570px;
    min-width: 875px;
    height: 100%;
    max-height: 800px;
    min-height: 505px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 375px auto;
    grid-template-rows: 64px auto;
    overflow: hidden;
    grid-template-areas:
        "back pizza"
        "form pizza";
}

.back-btn-container {
    grid-area: back;
    height: 64px;
    display: flex;
    align-items: center;
    padding-left: 24px;
}

.back-btn-container a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.builder-form-container {
    grid-area: form;
    overflow-y: auto;
    margin-bottom: 92px;
}

.builder-pizza-display {
    grid-area: pizza;
    background-color: #D4A373;
    height: 100%;
}

.form-overflow-scroll {
    padding: 0 24px 24px 24px;
    border-right: 1px solid #E5DCC8;
}

.builder-header {
    font-family: var(--headline-font);
    font-size: 2.5rem;
    line-height: .9;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    padding: 24px 0 10px 0;
}

.builder-form-desc {
    font-family: Outfit, sans-serif;
    line-height: 144%;
    font-weight: var(--text-weight);
    color: #5A4A38;
    -webkit-font-smoothing: antialiased;
}

.option-group {
    margin-top: 40px;
}

.group-title {
    font-family: Outfit, sans-serif;
    line-height: 144%;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    border-bottom: 1px solid #E5DCC8;
    padding-bottom: .9rem;
}

.option {
    font-family: Outfit, sans-serif;
    line-height: 144%;
    font-weight: var(--text-weight);
    font-size: .875rem;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #E5DCC8;
}


.option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    opacity: 0;
}

.custom-radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.option input[type="radio"]:checked+.custom-radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.topping-row {
    border-bottom: 1px solid #E5DCC8;
    font-family: Outfit, sans-serif;
    line-height: 144%;
    font-weight: var(--text-weight);
    font-size: .875rem;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topping-row label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
    cursor: pointer;
}

.topping-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    opacity: 0;
}

.custom-checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #2B0F00;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.topping-row input[type="checkbox"]:checked+.custom-checkbox-mark {
    background-image: url('/assets/icons/checkmark.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--primary-color);
}

.topping-label {
    font-size: .875rem;
    color: #2B0F00;
}

label {
    cursor: pointer;
}

.builder-form-container::-webkit-scrollbar {
    width: 16px;
}

.builder-form-container::-webkit-scrollbar-track {
    background: #FAF3E4;
}

.builder-form-container::-webkit-scrollbar-thumb {
    background: #E5DCC8;
    border: 3px solid transparent;
    border-radius: 9px;
    background-clip: content-box;
}

.form-btn-wrap {
    display: flex;
    padding: 18px;
    border-top: 1px solid #E5DCC8;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 375px;
}

.builder-add-to-cart {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-family: Outfit, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 6px;
    padding: 17px 28px 18px 28px;
    border: none;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
}

.builder-pizza-display {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-image: url(/assets/svg/pizza-display-bg.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.builder-pizza-display img {
    height: 100%;
    object-fit: contain;
}

.builder-pizza-display .cart-btn {
    position: absolute;
    top: 24px;
    right: 24px
}