/*
Theme Name: Pod Skrzydełkiem
Theme URI: https://abspos.pl
Author: Grupa ABS
Author URI: https://www.grupa-abs.pl
Description: Motyw dla baru z kurczakami Pod Skrzydełkiem (Częstochowa) z integracją systemu zamówień ABS POS (wtyczka WP ABSPOS, slug: podskrzydelkiem).
Version: 1.2.5
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: podskrzydelkiem
*/

:root {
	--ink: #0d0d0d;
	--ink-2: #181818;
	--ink-3: #262626;
	--yellow: #ffc20e;
	--yellow-2: #ffd54d;
	--red: #e1251b;
	--red-2: #c41c13;
	--cream: #fff7e3;
	--paper: #fffdf7;
	--text: #1b1b1b;
	--muted: #5f5a50;
	--line: #eadfc4;
	--radius: 6px;
	--radius-sm: 4px;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
	--font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.hl { color: var(--yellow); }

.eyebrow { margin: 0 0 10px; font-weight: 600; font-size: 16px; color: var(--red); }
.eyebrow-dark { color: var(--ink); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(34px, 4.4vw, 50px); text-transform: uppercase; letter-spacing: .01em;
	margin-bottom: 28px;
}
.section-title .hl { color: var(--red); }
.section-lead { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
	font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; line-height: 1.1;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { padding: 16px 28px; font-size: 20px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: var(--ink-3); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Nagłówek ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(13, 13, 13, .96);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 3px solid var(--yellow);
	color: #fff;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { width: 66px; height: 66px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--yellow); letter-spacing: .01em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-phone {
	font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase;
	text-decoration: none; color: #fff; transition: color .15s;
}
.nav-list a:hover, .nav-phone:hover { color: var(--yellow); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); }
.header-cta { padding: 11px 18px; font-size: 17px; }

/* Logo Facebooka (niebieskie kółko z białym „f”) */
.fb-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #1877f2; color: #fff; flex: none; transition: background .15s, transform .15s; }
.fb-badge .icon { width: 22px; height: 22px; fill: #fff; margin: 0; padding: 0; background: none; border-radius: 0; }
a:hover > .fb-badge, a.fb-badge:hover { background: #0e63d3; transform: translateY(-1px); }
.nav-fb { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.nav-fb-text { display: none; }
.fb-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 600; color: #fff; text-decoration: none; }
.fb-link:hover { color: var(--yellow); }
.fb-badge-lg { width: 44px; height: 44px; }
.fb-badge-lg .icon { width: 24px; height: 24px; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ink-3); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; content: ""; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { left: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-list { gap: 18px; }
	.nav-phone { display: none; }
}
@media (max-width: 920px) {
	:root { --header-h: 66px; }
	.brand-logo { width: 54px; height: 54px; }
	.brand-name { font-size: 22px; }
	.nav-toggle { display: block; }
	.header-cta { margin-left: auto; }
	.header-cta + .nav-toggle { margin-left: 0; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--ink); border-bottom: 3px solid var(--yellow);
		padding: 8px 20px 22px; margin: 0;
		display: none;
	}
	.nav-open .main-nav { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ink-3); font-size: 22px; }
	.nav-phone { display: inline-flex; padding-top: 18px; font-size: 22px; }
	.nav-fb { padding-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; }
	.nav-fb-text { display: inline; }
}
@media (max-width: 560px) {
	.header-cta span { display: none; }
	.header-cta { padding: 11px; }
	.header-cta .icon { width: 22px; height: 22px; }
	.brand-name { font-size: 20px; }
}
@media (max-width: 370px) {
	.brand-name { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero {
	background: var(--ink);
	color: #fff;
	padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { color: var(--yellow); font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.hero-title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(44px, 6.4vw, 80px); line-height: .98; text-transform: uppercase;
	margin-bottom: 24px; letter-spacing: -.005em;
}
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #ddd6c8; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-address { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; color: #bdb5a6; font-size: 16px; }
.hero-address .icon { color: var(--red); }

.hero-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-photo { max-width: 560px; width: 100%; }
}

/* ---------- Co podajemy (galeria dań) ---------- */
.menu-section { background: var(--paper); }
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 32px; margin-bottom: 28px; }
.menu-head .section-title { margin-bottom: 0; }
.menu-head p { margin: 0; color: var(--muted); }
.menu-head a { color: var(--red); font-weight: 700; }
.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.dish { margin: 0; min-width: 0; }
.dish-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); border-radius: var(--radius); margin-bottom: 12px; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.dish figcaption strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.1; text-transform: uppercase; }
.dish figcaption span { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }
.dish-cta {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
	aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--yellow); color: var(--ink); text-decoration: none;
	transition: background-color .15s;
}
.dish-cta:hover { background: var(--yellow-2); }
.dish-cta .icon { width: 30px; height: 30px; }
.dish-cta strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.dish-cta span { font-size: 15px; }
@media (max-width: 1100px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.dish figcaption strong { font-size: 19px; }
	.dish figcaption span { font-size: 14px; }
	.dish-cta strong { font-size: 21px; }
}

/* ---------- Pas zamówień ---------- */
.order-band { background: var(--yellow); color: var(--ink); padding: 34px 0; }
.order-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.order-band-text { margin: 0; font-size: 20px; font-weight: 500; max-width: 720px; }
.order-band-text a { font-weight: 700; white-space: nowrap; }

/* ---------- O nas ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photo { border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-copy p { color: #3d382e; font-size: 18px; }
.about-copy .about-slogan { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--red); }
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-photos { max-width: 560px; }
}

/* ---------- Galeria ---------- */
.gallery-section { padding-bottom: clamp(32px, 4vw, 56px); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; display: block; background: var(--cream); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.gallery-item::after {
	content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: inherit; transition: border-color .2s;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { border-color: var(--yellow); }
.gallery-item-1 { grid-row: span 2; }
.gallery-item-3 { grid-column: span 2; }
.gallery-item-6 { grid-row: span 2; }
.gallery-item-8 { grid-column: span 2; }
.gallery-more { text-align: center; margin: 32px 0 0; }
.gallery-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.gallery-more .icon { color: #1877f2; }
@media (max-width: 800px) {
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
	.gallery-item-3 { grid-column: span 2; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 8, 8, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.lightbox-close, .lightbox-nav {
	position: fixed; border: 0; background: var(--yellow); color: var(--ink); width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer; font-size: 26px; line-height: 1;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-close .icon { width: 22px; height: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-prev .icon { transform: rotate(180deg); }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper); padding-top: clamp(32px, 4vw, 56px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.contact-card { padding: 4px 0; }
.contact-list { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--ink); fill: var(--yellow); }
.contact-list strong { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--muted); }
.contact-list span, .contact-list a { font-size: 19px; font-weight: 500; }
.contact-list a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-list span a { font-size: inherit; }
.contact-list .fb-badge .icon { width: 24px; height: 24px; padding: 0; background: none; fill: #fff; }
.hours { border-collapse: collapse; margin-top: 4px; font-size: 17px; }
.hours th { text-align: left; font-weight: 500; padding: 2px 18px 2px 0; }
.hours td { font-weight: 700; padding: 2px 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--ink); color: #fff; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px;
	background:
		linear-gradient(rgba(13, 13, 13, .78), rgba(13, 13, 13, .86)),
		url("assets/img/lokal-front-700.webp") center / cover;
}
.map-placeholder > .icon { width: 54px; height: 54px; color: var(--red); }
.map-placeholder p { font-size: 20px; margin: 0; }
.map-placeholder strong { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; color: var(--yellow); }
.map-placeholder .btn-black { background: var(--yellow); color: var(--ink); }
.map-placeholder small { color: #b9b1a2; font-size: 13px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: #cfc8b9; padding: 64px 0 0; border-top: 4px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 16px; }
.footer-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 16px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { color: var(--yellow); margin-top: 4px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--yellow); }
.footer-order p { font-size: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ink-3); padding: 20px 0 26px; font-size: 14px; color: #8f887a; }
.footer-bottom a { color: #cfc8b9; }
.footer-bottom a:hover { color: var(--yellow); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Mobilny pasek „Zamów online” */
.mobile-order-bar { display: none; }
@media (max-width: 700px) {
	.mobile-order-bar {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
		padding: 15px; border-radius: 6px; background: var(--yellow); color: var(--ink); text-decoration: none;
		font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase;
		box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55);
		transform: translateY(140%); transition: transform .25s ease;
	}
	.mobile-order-bar.is-visible { transform: none; }
	.site-footer { padding-bottom: 80px; }
}

/* ---------- Podstrony ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 0; }
.page-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 6vw, 72px); text-transform: uppercase; line-height: .95; }
.page-lead { color: #ddd6c8; font-size: 19px; margin: 14px 0 0; max-width: 620px; }

.order-widget { background: var(--paper); padding: 32px 0 64px; }
.abspos-frame { background: #fff; border-radius: var(--radius); border: 2px solid var(--line); padding: 8px; min-height: 60vh; }
.abspos-frame #wp_abspos_widget1 { border: 0; display: block; width: 100%; border-radius: 10px; }
.abspos-frame #wp_abspos_widget1 { padding-top: 0 !important; }
#abspos_menu_widget_wrapper > div { padding: 6px 4px 0; color: var(--muted); }
#abspos_menu_widget_wrapper > div a { color: var(--muted); }
.order-fallback { text-align: center; padding: 60px 20px; display: grid; justify-items: center; gap: 10px; }
.order-fallback img { border-radius: 50%; }
.order-fallback h2 { font-family: var(--font-display); font-weight: 800; font-size: 34px; text-transform: uppercase; }

.prose { max-width: 780px; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose a { color: var(--red); }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { margin-top: 0; }
.post-date { color: var(--muted); font-size: 15px; }

.notfound-inner { text-align: center; display: grid; justify-items: center; gap: 8px; }
.notfound-inner img { border-radius: 50%; margin-bottom: 12px; }
.notfound-inner .hero-actions { justify-content: center; margin-top: 12px; }
