/*
Theme Name: Coca Pizza Bar
Theme URI: https://websqu.ad
Author: websquad
Author URI: https://websqu.ad
Description: A minimal Gutenberg-ready starter theme for Coca Pizza Bar
Version: 1.0.6b
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coca-pizza-bar
*/

@font-face {
    font-family: 'OTT Neuf';
    font-weight: normal;
    src: url('fonts/OTT_Neuf-Bold.woff2');
    font-display: swap;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    --text: #439ACD;
    --light: #FFF;
    --dark: #000;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    font-family: "OTT Neuf", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

ul, ol {
    list-style: none;
}

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

:where(.wp-block-columns.is-layout-flex) {
    gap: 1.25rem;
}

.site-header,
.site-footer {
    overflow: hidden;
    padding: 0;
}

.header-widget-area,
.footer-widget-area {
    margin-top: 1.5rem;
}

.header-widget,
.footer-widget {
    margin-bottom: 1.5rem;
}

.header-widget:last-child,
.footer-widget:last-child {
    margin-bottom: 0;
}

.footer-widget-area .wp-block-columns,
.header-widget-area .wp-block-columns {
    margin-bottom: 0;
}

.site-header {
    min-height: 3rem;
    text-align: center;
    margin: 1.25rem;
    margin-bottom: 0;
    background: url('img/corners.svg') no-repeat top left;
    /* background-size: 100%; */
    position: relative;
}

.site-header::before,
.site-footer::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    width: 2.5rem;
    height: calc(100vw - 8.5rem);
    background: var(--light) url('img/lines.svg') repeat-x center;
    transform: rotate(270deg);
    transform-origin: top left;
}

.site-header::after,
.site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 3rem;
    background: url('img/corners.svg') no-repeat top left;
    transform: scaleX(-1);
}

.site-header h1 {
    line-height: 1;
    margin: 0;
    padding: 0;
    font-size: 0;
    position: relative;
    z-index: 2;
}

.site-header h1 a {
    display: inline-block;
    line-height: 1;
    width: 10.54rem;
    height: 2.5rem;
    box-sizing: unset;
    padding: 0 0.71rem;
    background: var(--light) url('img/logo.svg') no-repeat center;
    font-size: 0;
}

.site-main {
    min-height: calc(100vh - 16.2rem);
    padding: 0;
    margin: 0 1.25rem;
    position: relative;
    background: url('img/lines.svg') repeat-y top left;
}

.site-main > * {
    padding: 3rem 6rem;
    margin: 0 auto;
}

.site-main::after {
    content: "";
    position: absolute;
    background: url('img/lines.svg') repeat-y top right;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
}

.page-content .entry-content {
    max-width: 800px;
}

.page-content .entry-content > *:not(:first-child) {
    margin-top: 1.6rem;
}

.site-footer {
    background:
        url('img/lines.svg') repeat-y top left,
        url('img/corners-br.svg') no-repeat bottom right;
    margin: 0 1.25rem 1.25rem;
    padding: 4.44rem 6rem;
    position: relative;
    font-size: 0.7rem;
}

.site-footer::before {
    top: 100%;
    z-index: 9;
}

.site-footer::after {
    background-color: var(--light);
    transform: scaleY(-1);
    right: 0;
    left: 0;
    bottom: 0;
    top: unset;
}

.site-footer .wp-block-column:not(:nth-child(3)) {
    text-transform: uppercase;
}

.site-footer .wp-block-column {
    position: relative;
}

.site-footer nav {
    position: absolute;
    right: 0;
    top: 0;
}

@media screen and (max-width: 960px) {
    .site-footer nav {
        right: -3rem;
    }
}

@media screen and (max-width: 768px) {
    .site-footer nav {
        right: 0;
    }
}

.site-footer nav ul {
    display: flex;
    gap: 0.25rem;
}

.site-footer nav ul li:first-child::after {
    content: " / ";
}

.entry-content,
.footer-widget-area {
    max-width: 1200px;
    margin: 0 auto;
}

.drinks-menu + .drinks-menu {
    margin-top: 3.75rem;
}

.wp-block-products .wp-block-columns,
.drinks-menu .wp-block-column,
footer .wp-block-column {
    flex-basis: calc(25% - 0.9375rem) !important;
    flex-grow: 0 !important;
}

.drinks-menu h2 {
    font-size: 1rem;
    margin-bottom: 1.35rem;
    text-transform: uppercase;
}

.drinks-menu ul {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.25rem;
}

.drinks-menu ul li:nth-child(2) {
    font-size: 0.7rem;
    white-space: nowrap;
}

.drinks-menu ul li:last-child {
    margin-left: auto;
    white-space: nowrap;
}

.wp-block-products {
    margin-bottom: 7.44rem;
}

.wp-block-products .wp-block-columns {
    flex-wrap: wrap !important;
    gap: 1.25rem;
    row-gap: 2.5rem;
}

.wp-block-products .wp-block-column {
    flex-grow: 0 !important;
    flex-basis: calc(25% - 1.25rem) !important;
}

.wp-block-products .product {
    text-align: center;
}

.wp-block-products .product img {
    display: block;
    margin-bottom: 1.25rem;
}

.wp-block-products .product p {
    font-size: 0.7rem;
    margin: 1rem 0 0;
}

h2,
h3 {
    line-height: 1.15;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 800;
}

html[lang="en-GB"] .lang-ro,
html[lang="ro-RO"] .lang-en {
    display: none;
}

@media (max-width: 768px) {
    .header-widget-area,
    .footer-widget-area {
        margin-top: 1rem;
    }

    .header-widget,
    .footer-widget {
        margin-bottom: 1rem;
    }

    .site-header {
        margin: 0.94rem;
        margin-bottom: 0;
        background-size: 484px;
    }

    .site-header::before {
        display: none;
    }

    .site-header h1 a {
        height: 2.125rem;
        background-size: contain;
    }

    .site-header::after {
        right: 0;
        width: 25vw;
        background-color: var(--light);
        background-size: 484px;
    }

    .site-main {
        margin: 0 0.94rem;
        margin-top: -1px;
        background-size: 32px;
    }

    .site-main::after {
        background-size: 32px;
        right: 0;
    }

    .site-main > *,
    .site-footer {
        padding: 2.5rem 4rem;
    }

    .wp-block-products {
        margin-bottom: 3.69rem;
    }

    .drinks-menu {
        gap: 1.88rem;
    }

    .drinks-menu ul li:nth-child(2) {
        margin-right: 0.75rem;
        margin-left: auto;
    }

    .drinks-menu ul li:last-child {
        margin-left: 0;
        min-width: 1.625rem;
    }

    .wp-block-products .wp-block-columns {
        row-gap: 1.81rem;
    }

    .site-footer {
        margin-left: 0.94rem;
        margin-right: 0.94rem;
        margin-bottom: 0.94rem;
        background-size: 32px, 484px;
        padding-top: 0;
        padding-bottom: 3rem;
    }

    .site-footer::after {
        background-size: 484px;
    }

    .site-footer::before {
        display: none;
    }
}