/* fiufiu pizza, powered by strona.pro */
   
@font-face {
    font-family: 'Scandia-Stencil';
    src: url('../fonts/Scandia-Stencil.woff2') format('woff2'),
         url('../fonts/Scandia-Stencil.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.google-sans-flex-300 {
	font-family: "Google Sans Flex", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-variation-settings:
		"slnt" 0,
		"wdth" 100,
		"GRAD" 0,
		"ROND" 0;
}
.google-sans-flex-400 {
	font-family: "Google Sans Flex", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings:
		"slnt" 0,
		"wdth" 100,
		"GRAD" 0,
		"ROND" 0;
}
.google-sans-flex-700 {
	font-family: "Google Sans Flex", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700;
	font-style: normal;
	font-variation-settings:
		"slnt" 0,
		"wdth" 100,
		"GRAD" 0,
		"ROND" 0;
}

:root {
    --color-bg: #ffffff;
    --color-bg-header: #fdfdfd;
    --color-text-main: #000000;
    --color-text-muted: #555555;
    --color-accent: #7d163c; 
    --color-border: #eaeaea;
    
    --font-main: 'Arial', sans-serif;
    --font-headers: 'Scandia-Stencil', 'Arial Black', sans-serif;
    
    --max-width: 100%;
    --transition-speed: 0.25s;

	--percent-of-space: 10%;
	--percent-of-space-footer: 10%;
}

/* reset */
*, *::before, 
*::after { 
	box-sizing: border-box; 
	margin: 0; 
	padding: 0; 
}

/* ogólne */
body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
	min-height: 100vh;
}
.padding-bottom-20 {
	padding-bottom: 20px;
}
@media (max-width: 768px) {
	.padding-bottom-0-mobile {
		padding-bottom: 0;
	}
}

/* kontenery */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}
.container-narrow, .drinks-wrapper {
	margin-top: 0;
	margin-right: calc(var(--percent-of-space) + 12px);
	margin-bottom: 0;
	margin-left: calc(var(--percent-of-space) + 12px);
}
@media (max-width: 768px) {
    .container { 
		padding: 0; 
	}
    .drinks-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0 16px;
    }
}

/* nagłówek, logo */
.site-header { 
	padding: 60px 0 40px 0; 
}
.logo-text {
    font-family: var(--font-headers);
    font-weight: 400;
    color: var(--color-accent);
    text-align: center;
    line-height: 0.85;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    flex-direction: column;
    letter-spacing: -1px;
}
.logo-desktop {
	display: block; 
	max-width: calc(var(--max-width) - 20% - 24px); 
	margin: 0px auto; 
	padding: 50px 0;
}
.logo-mobile {
	display: block; 
	max-width: calc(var(--max-width) - 20% - 24px); 
	margin: 0px auto; 
	padding: 0;
}
@media (max-width: 768px) { 
	.logo-text { 
		font-size: 56px; 
	}
	.logo-desktop {
		display: none;
	}
	.logo-mobile {
		display: block;
	}
}
@media (min-width: 769px) { 
	.logo-text { 
		font-size: 84px; 
		flex-direction: row; 
		gap: 24px; 
		letter-spacing: 2px; 
	}
	.logo-desktop {
		display: block;
	}
	.logo-mobile {
		display: none;
	}
}

/* sekcje i nagłówki */
.menu-main { 
	margin-bottom: 80px; 
}
.section-header-bg {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--color-bg-header);
}

/* akordeon i linie */
.accordion-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    outline: none;
    padding: 24px 0;
}
.accordion-trigger::before,
.accordion-trigger::after {
    content: "";
    height: 22px; 
    background: repeating-linear-gradient(
        to bottom,
        var(--color-accent),
        var(--color-accent) 2px,
        transparent 2px,
        transparent 5px
    );
}
.accordion-trigger::before {
    flex: 0 0 10%; /* = var(--percent-of-space) */
    margin-right: 14px;
	padding-left: 0;
}

section#napoje.menu-section.drinks-column div.section-header-bg button.accordion-trigger::before,
section#piwo.menu-section.drinks-column div.section-header-bg button.accordion-trigger::before, 
section#piwo-0.menu-section.drinks-column div.section-header-bg button.accordion-trigger::before {
    margin-right: 12px;
}
.accordion-trigger::after {
    flex: 1;
    margin-left: 12px;
}
.section-title {
    font-family: var(--font-headers);
    font-weight: 400;
    font-size: 32px;
    line-height: 100%;
    color: var(--color-accent);
    text-transform: uppercase;
    white-space: nowrap;
}
.section-content { 
	margin-bottom: 60px; 
	padding-top: 40px; 
}
.dishes-grid {
    display: grid;
    gap: 48px 32px;
}
@media (min-width: 769px) {
    .grid-4 { 
		grid-template-columns: repeat(4, 1fr); 
	}
    .grid-3 { 
		grid-template-columns: repeat(3, 1fr); 
	}
}
@media (max-width: 768px) {
    .dishes-grid { 
		grid-template-columns: 1fr; 
		gap: 40px; 
	}
}
.dish-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}
@media (min-width: 769px) { 
	.dish-item:hover { 
		transform: translateY(-5px); 
	} 
}
.dish-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 0;
    background-color: transparent;
    position: relative;
    margin-bottom: 20px;
}
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headers);
    font-weight: 400;
    font-size: 14px;
    color: #bbbbbb;
    letter-spacing: 1px;
}
.badge-bestseller-img {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 50px;
    height: auto;
    z-index: 2;
}
.dish-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-main);
	font-family: var(--font-headers);
    margin-bottom: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.dish-title .icons {
    display: flex;
    gap: 4px;
    align-items: center;
}
.dish-title .icons img {
    height: 16px;
    width: auto;
}
.dish-ingredients { 
	font-size: 14px; 
	color: var(--color-text-muted); 
}
.dish-image { 
	width: 100%; 
	background: transparent; 
}

/* napoje i piwa */
@media (min-width: 769px) {
    .drinks-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        margin-bottom: 60px;
    }
    .drinks-column .section-header-bg {
        width: 100%;
        position: static;
        margin: 0;
        left: auto;
        right: auto;
		margin-left: -32px;
    }
    .drinks-column .accordion-trigger {
        padding: 10px 0 4px 0;
    }
    .drinks-column .accordion-trigger::before {
        flex: 0 0 20px;
    }
    .drinks-column .section-content { 
        padding-top: 10px; 
        margin-bottom: 0; 
    }
    .drinks-column .accordion-trigger { 
		pointer-events: none; 
	}
}
.text-menu-list { 
	list-style: none; 
	display: flex; 
	flex-direction: column; 
	gap: 16px; 
}
.text-menu-list li { 
	display: flex; 
	justify-content: space-between; 
	align-items: baseline; 
	font-size: 15px;
}
.item-name { 
	font-size: 13px;
	font-weight: 700; 
}
.item-name small { 
	font-size: 13px;
	font-weight: 400; 
	color: var(--color-text-muted); 
	margin-left: 0; 
}
.item-price {
	font-size: 13px;
	font-weight: 700; 
	white-space: nowrap; 
	margin-left: 10px; 
}
@media (max-width: 768px) {
	.drinks-wrapper-bg {
		background: transparent!important;
	}
	section#napoje.menu-section.drinks-column div.section-header-bg button.accordion-trigger {
		margin-top: 16px;
	}
}
.drinks-wrapper-bg {
	display: block; 
	width: 100%; 
	height: 22px; 
	background: repeating-linear-gradient(
        to bottom,
        var(--color-accent),
        var(--color-accent) 2px,
        transparent 2px,
        transparent 5px
    );
}

/* responsywność */
@media (max-width: 768px) {
    .drinks-wrapper { 
		display: flex; 
		flex-direction: column; 
	}
    .accordion-trigger { 
		cursor: pointer; 
		pointer-events: auto; 
		padding: 16px 0; 
	}
    .section-title { 
		font-size: 22px; 
	}
    .section-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
        padding-top: 0; 
		padding-bottom: 0; 
		margin-bottom: 0;
    }
    .menu-section.is-open .section-content { 
		max-height: 6000px; /* nie usuwać! */
		padding-top: 24px; 
		padding-bottom: 40px; 
	}
}

/* stopka */
.site-footer { 
	background-color: var(--color-accent); 
	padding: 18px 0; 
	margin-top: 20px; 
}
.footer-container { 
	display: flex; 
	justify-content: center; 
}
.instagram-brand,
.instagram-brand span { 
	display: flex; 
	align-items: center; 
	gap: 12px; 
	font-family: var(--font-headers); 
	font-weight: 400; 
	font-size: 36px; 
	color: #ffffff; 
	text-decoration: none; 
	letter-spacing: 1px; 
}
@media (max-width: 768px) {
    .site-footer {
		position: sticky;
        top: 100vh;
    }
}

/* modalny popup */
.modal-overlay {
    position: fixed; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%;
    background: rgba(0, 0, 0, 0.35); 
	backdrop-filter: blur(5px); 
	-webkit-backdrop-filter: blur(5px);
    display: flex; 
	align-items: center; 
	justify-content: center;
    z-index: 1000; 
	opacity: 0; 
	pointer-events: none; 
	transition: opacity 0.3s ease; 
	padding: 20px;
}
.modal-overlay.is-visible { 
	opacity: 1; 
	pointer-events: auto; 
}
.modal-card {
    background: var(--color-bg); 
	width: 100%; 
	max-width: 500px; 
	border-radius: 0; 
    position: relative; 
	box-shadow: 0 30px 60px rgba(0,0,0,0.2); 
	transform: scale(0.95); 
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.is-visible .modal-card { 
	transform: scale(1);
}
.modal-close-btn {
	position: absolute; 
	top: 16px; 
	right: 16px; 
	background: #ffffff; 
	/* border: 1px solid var(--color-border); */
	border: none;
	width: 36px; 
	height: 36px; 
	border-radius: 50%; 
	font-size: 22px; 
	cursor: pointer; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	z-index: 10; 
}
.modal-image-square {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: none; 
	align-items: center; 
	justify-content: center;
    font-family: var(--font-headers); 
	font-weight: 400; 
	color: #cccccc;
}
.modal-content-info { 
	padding: 32px; 
	text-align: center;
}
.modal-title { 
	display: none; 
	font-size: 22px; 
	font-weight: 400; 
	margin-bottom: 16px; 
	text-transform: uppercase; 
}
.modal-label { 
	display: none; 
	font-size: 11px; 
	font-weight: 400; 
	text-transform: uppercase; 
	color: var(--color-accent); 
	margin-top: 16px; 
	letter-spacing: 0.5px; 
}
.modal-text-ingredients, 
.modal-text-description { 
	font-size: 14px; 
	color: var(--color-text-muted); 
	margin-top: 24px; 
}
.modal-text-ingredients,
#modalDescription {
	display: none;
}
.allergens-box { 
	margin-top: 24px; 
	padding: 12px; 
	background-color: #fdfafb; 
	border: 1px solid #f5eae3; 
	-webkit-border-radius: none;
    -moz-border-radius: none;
    border-radius: none;
}
.allergens-title { 
	font-weight: 400; 
	font-size: 13px; 
	color: var(--color-accent); 
}
#modalAllergens { 
	font-size: 13px; 
	color: var(--color-text-main); 
}

/* floating instagram button */
.floating-ig-btn {
    position: fixed;
    bottom: 15px;
    left: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    padding: 12px;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.floating-ig-btn picture,
.floating-ig-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.floating-ig-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    pointer-events: none;
}
.ig-icon {
	visibility: hidden;
}
