/*
Theme Name: Rynek 13
Description: Motyw potomny Twenty Twenty-Five dla Restauracji Rynek 13 w Jarocinie. Kolory pepperoni i sera, fonty na serwerze, menu z zamawianiem na stronie głównej.
Author: Restauracja Rynek 13
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rynek13
*/

:root {
	--r13-pepperoni: var(--wp--preset--color--accent-3);
	--r13-pepperoni-dark: var(--wp--preset--color--pepperoni-ciemny);
	--r13-ser: var(--wp--preset--color--accent-1);
	--r13-mozzarella: var(--wp--preset--color--accent-2);
	--r13-ciasto: var(--wp--preset--color--base);
	--r13-skorka: var(--wp--preset--color--contrast);
	--r13-oliwa: var(--wp--preset--color--accent-4);
	--r13-bazylia: var(--wp--preset--color--bazylia);
	--r13-linia: #ecdcc0;
	--r13-radius: 16px;
	--r13-header-h: 72px;
}

/* Nagłówek przyklejony do góry na komputerze, zwykły na telefonie. */
.wp-site-blocks > header.wp-block-template-part {
	position: relative;
	z-index: 100;
}

@media (min-width: 782px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}

.r13-header {
	border-bottom: 1px solid var(--r13-linia);
}

.r13-header .wp-block-site-title a {
	text-decoration: none;
}

.r13-header .wp-block-navigation a {
	text-decoration: none;
}

.r13-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.r13-header .wp-block-site-title {
	white-space: nowrap;
}

.r13-header .wp-block-navigation a {
	white-space: nowrap;
}

@media (max-width: 599px) {
	.r13-header .r13-hide-mobile {
		display: none !important;
	}

	.r13-header .wp-block-site-title {
		font-size: 1.125rem;
	}

	/* Na telefonie w nagłówku sama ikona koszyka z licznikiem. */
	.r13-header .wc-block-mini-cart__amount {
		display: none;
	}

	/* Grafika pizzy tylko na większych ekranach – na telefonie od razu menu. */
	.r13-hero .r13-hero__art {
		display: none;
	}
}

/* Wyraźny fokus dla klawiatury. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--r13-skorka);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Sekcja startowa. */
.r13-hero {
	position: relative;
	z-index: 1;
}

.r13-hero .r13-hero__art img {
	aspect-ratio: 1 / 1;
}

.r13-hero .r13-hero__art img {
	width: 100%;
	height: auto;
	max-width: 440px;
	margin-inline: auto;
	display: block;
}

@media (max-width: 781px) {
	.r13-hero .r13-hero__art img {
		max-width: 260px;
	}
}

/* Ser spływający z sekcji startowej. */
.r13-drip {
	position: relative;
}

.r13-drip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -27px;
	height: 28px;
	background: url("assets/img/ser-kapie.svg") repeat-x left top / 280px 28px;
	pointer-events: none;
	z-index: 2;
}

/* Etykiety z informacjami (dostawa, minimum, czas). */
.r13-chips {
	gap: 0.5rem !important;
}

.r13-chips p {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--r13-linia);
	border-radius: 999px;
	padding: 0.4em 0.9em;
	margin: 0;
	font-weight: 600;
}

/* Karty sekcji (jak zamówić, FAQ). */
.r13-card-box {
	border: 1px solid var(--r13-linia);
	border-radius: var(--r13-radius);
}

.r13-step-number {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: var(--r13-ser);
	color: var(--r13-skorka);
	font-weight: 800;
	margin: 0;
}

.wp-block-details {
	border-bottom: 1px solid var(--r13-linia);
	padding-block: 0.9rem;
}

.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details > *:not(summary) {
	margin-top: 0.6rem;
	color: var(--r13-oliwa);
}

/* Stopka. */
.r13-footer a {
	color: inherit;
}

.r13-footer a:hover {
	color: var(--r13-ser);
}

/* Linki w treści. */
.entry-content a:not(.wp-element-button),
.wp-block-post-content a:not(.wp-element-button) {
	text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

.r13-footer-links {
	list-style: none;
	padding-left: 0;
}

.r13-footer-links li + li {
	margin-top: 0.4rem;
}
