/*
Theme Name: Pasta Amore Mio
Theme URI: https://pastaamoremio.sk
Author: Pasta Amore Mio
Description: Editoriálna téma pre kuchársku knihu a kalendár. Postavená na návrhu La Cucina, WooCommerce ready.
Version: 1.0.0
Requires at least: 6.5
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: pasta-amore-mio
Tags: e-commerce, editorial, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Dizajnové tokeny
   ========================================================================== */

:root {
	--cream: #FBF6EC;
	--cream-2: #F3EADB;
	--ink: #241C15;
	--muted: #8A7C6B;
	--line: #E6DBC9;
	--tomato: #C23A22;
	--tomato-dark: #A52D18;
	--terra: #C4693B;
	--basil: #5C6B37;
	--sand: #F0B892;
	--body-text: #5C5040;
	--maxw: 1360px;
	--gutter: 44px;
	--gutter-sm: 22px;
	--radius: 10px;
	--radius-lg: 14px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   2. Reset a základ
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Satoshi", system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--cream);
	font-size: 17px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

:focus-visible {
	outline: 2px solid var(--tomato);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 14px 24px;
	background: var(--ink);
	color: #fff;
	border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

/* ==========================================================================
   3. Layout a typografia
   ========================================================================== */

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.pf {
	font-family: "Playfair Display", Georgia, serif;
}

.hand {
	font-family: "Caveat", cursive;
}

.kicker {
	font-family: "Caveat", cursive;
	font-size: 24px;
	color: var(--tomato);
	line-height: 1;
}

.sec-title {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 500;
	font-size: clamp(2.3rem, 4.4vw, 3.6rem);
	line-height: 1.02;
	letter-spacing: -.01em;
}

.sec-title em {
	font-style: italic;
	color: var(--tomato);
}

/* ==========================================================================
   4. Tlačidlá
   ========================================================================== */

.btn,
.pam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	transition: .3s;
	cursor: pointer;
	border: 1.5px solid transparent;
	font-family: "Satoshi", system-ui, sans-serif;
	text-align: center;
}

.btn-solid {
	background: var(--tomato);
	color: #fff;
}

.btn-solid:hover {
	background: var(--tomato-dark);
	transform: translateY(-2px);
	color: #fff;
}

.btn-out {
	border-color: rgba(255, 255, 255, .6);
	color: #fff;
}

.btn-out:hover {
	background: #fff;
	color: var(--ink);
}

.btn-ink {
	border-color: var(--ink);
	color: var(--ink);
}

.btn-ink:hover {
	background: var(--ink);
	color: #fff;
}

.btn-dark {
	background: var(--ink);
	color: #fff;
}

.btn-dark:hover {
	background: var(--tomato);
	color: #fff;
}

/* ==========================================================================
   5. Hlavička
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	transition: background .4s, border-color .4s, box-shadow .4s;
	border-bottom: 1px solid transparent;
}

/* Informačná lišta nad navigáciou */

.topbar {
	background: var(--tomato);
	color: #fff;
	font-size: 13px;
	letter-spacing: .03em;
	text-align: center;
	padding: 9px var(--gutter-sm);
}

.topbar__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	line-height: 1.4;
}

.topbar__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sand);
	flex-shrink: 0;
}

.site-header nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 20px var(--gutter);
}

.site-header .logo {
	position: relative;
	display: inline-block;
	height: 72px;
	flex-shrink: 0;
}

.site-header .logo img {
	height: 72px;
	width: auto;
	transition: opacity .3s;
}

.site-header .logo .ld {
	opacity: 0;
	position: absolute;
	left: 0;
	top: 0;
}

.site-header.solid .logo .lw {
	opacity: 0;
}

.site-header.solid .logo .ld {
	opacity: 1;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 30px;
}

.navlinks {
	display: flex;
	gap: 36px;
	align-items: center;
	font-size: 17px;
	list-style: none;
}

.navlinks a {
	color: #fff;
	transition: .25s;
	position: relative;
}

.navlinks a:hover {
	opacity: .7;
}

/* Formulár na odstúpenie od zmluvy */

.pam-withdrawal-form {
	max-width: 560px;
	margin-top: 26px;
}

.pam-withdrawal-form p {
	margin-bottom: 16px;
}

.pam-withdrawal-form label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--body-text);
}

.pam-withdrawal-form input[type="text"],
.pam-withdrawal-form input[type="email"],
.pam-withdrawal-form textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	font-size: 15px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
}

.pam-withdrawal-form input:focus,
.pam-withdrawal-form textarea:focus {
	outline: none;
	border-color: var(--tomato);
}

.pam-withdrawal-form .pam-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.pam-form-notice {
	border-radius: 12px;
	padding: 18px 22px;
	margin: 20px 0;
	border: 1.5px solid var(--basil);
	background: rgba(92, 107, 55, .08);
}

.pam-form-notice--err {
	border-color: var(--tomato);
	background: rgba(194, 58, 34, .07);
}

.navcart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tomato);
	color: #fff !important;
	padding: 10px 20px;
	border-radius: 100px;
	font-size: 17px;
	opacity: 1 !important;
	transition: background .25s;
}

.navcart:hover {
	background: var(--tomato-dark);
}

.site-header.solid {
	background: rgba(251, 246, 236, .92);
	backdrop-filter: blur(12px);
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px -18px rgba(80, 50, 20, .5);
}

.site-header.solid .navlinks > li > a:not(.navcart) {
	color: var(--ink);
}

/* Na podstránkach je hlavička vždy plná, obsah nie je pod fotkou */
.site-header.static-header {
	position: sticky;
	background: var(--cream);
	border-bottom-color: var(--line);
}

.site-header.static-header .navlinks > li > a:not(.navcart) {
	color: var(--ink);
}

.site-header.static-header .logo .lw {
	opacity: 0;
}

.site-header.static-header .logo .ld {
	opacity: 1;
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 6px;
}

.burger span {
	display: block;
	width: 26px;
	height: 2px;
	background: #fff;
	transition: .3s;
}

.site-header.solid .burger span,
.site-header.static-header .burger span {
	background: var(--ink);
}

.mobile-menu {
	display: none;
	background: var(--cream);
	border-top: 1px solid var(--line);
	padding: 18px var(--gutter-sm) 26px;
}

.mobile-menu.open {
	display: block;
}

.mobile-menu ul {
	list-style: none;
}

.mobile-menu a {
	display: block;
	padding: 12px 0;
	font-size: 17px;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   6. Pätička
   ========================================================================== */

.site-footer {
	background: var(--ink);
	color: var(--cream);
	padding: 70px 0 40px;
}

.foot-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 52px;
}

.site-footer .flog {
	font-family: "Playfair Display", Georgia, serif;
	font-style: italic;
	font-size: 30px;
	margin-bottom: 16px;
}

.site-footer .about {
	color: #A99B87;
	max-width: 280px;
	font-size: 15px;
}

.fcol h4 {
	font-family: "Caveat", cursive;
	font-size: 22px;
	font-weight: 600;
	color: var(--terra);
	margin-bottom: 14px;
}

.fcol ul {
	list-style: none;
}

.fcol a {
	display: block;
	padding: 6px 0;
	font-size: 15px;
	color: #DED3C1;
	transition: .2s;
}

.fcol a:hover {
	color: #fff;
}

.foot-docs {
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding: 32px 0 36px;
}

.foot-docs h4 {
	font-family: "Caveat", cursive;
	font-size: 22px;
	font-weight: 600;
	color: var(--terra);
	margin-bottom: 14px;
}

.foot-docs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.foot-docs__list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 100px;
	font-size: 15px;
	color: #DED3C1;
	transition: .2s;
}

.foot-docs__list a:hover {
	border-color: var(--terra);
	color: #fff;
}

.foot-docs__icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--terra);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

.foot-docs__meta {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9C8F7C;
}

.foot-docs__note {
	margin-top: 18px;
	max-width: 720px;
	font-size: 14px;
	line-height: 1.6;
	color: #A99B87;
}

.foot-bottom {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding-top: 24px;
	font-size: 13px;
	color: #9C8F7C;
	flex-wrap: wrap;
	gap: 12px;
}

.foot-bottom a:hover {
	color: #fff;
}

/* ==========================================================================
   6b. Textový obsah stránok a príspevkov
   ========================================================================== */

.entry-media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 44px;
}

.entry-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 18px;
	color: var(--body-text);
}

.entry-content > * + * {
	margin-top: 22px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.15;
	margin-top: 46px;
}

.entry-content h2 {
	font-size: 34px;
}

.entry-content h3 {
	font-size: 26px;
}

.entry-content h4 {
	font-size: 21px;
}

.entry-content a {
	color: var(--tomato);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 22px;
}

.entry-content li + li {
	margin-top: 8px;
}

.entry-content blockquote {
	border-left: 3px solid var(--terra);
	padding-left: 26px;
	font-family: "Playfair Display", Georgia, serif;
	font-style: italic;
	font-size: 24px;
	color: var(--ink);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	text-align: left;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.entry-empty {
	text-align: center;
	color: var(--muted);
	padding: 60px 0;
}

.page-links {
	margin-top: 34px;
	display: flex;
	gap: 10px;
}

/* ==========================================================================
   7. Animácia odhalenia
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   8. Responzivita
   ========================================================================== */

@media (max-width: 960px) {
	.foot-grid {
		grid-template-columns: 1fr 1fr;
		gap: 44px;
	}

	.navlinks {
		display: none;
	}

	.burger {
		display: flex;
	}
}

@media (max-width: 560px) {
	.wrap,
	.site-header nav {
		padding-left: var(--gutter-sm);
		padding-right: var(--gutter-sm);
	}

	body {
		font-size: 16px;
	}

	.site-header .logo,
	.site-header .logo img {
		height: 56px;
	}

	.foot-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}
