/*
Theme Name: Gmina Przykładowa (pokaz UrządKlik)
Description: Motyw pokazowej strony fikcyjnej Gminy Przykładowej do prezentacji programu UrządKlik. Dostarczany przez wtyczkę UrządKlik – Demo.
Author: Agencja EMCLAT
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: gmina-przykladowa
*/

:root {
	--gp-green: #1F5E3B;
	--gp-green-dk: #143D27;
	--gp-ink: #0E2A1C;
	--gp-gold: #E2B43B;
	--gp-line: #E5E8E3;
	--gp-muted: #5B675F;
}

/* ---------- Nagłówek ---------- */
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.gp-demo-bar { background: var(--gp-ink); color: #DCE7E0; }
.gp-demo-bar__in {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
	margin: 0; padding: 7px 0; font-size: .8125rem; line-height: 1.35;
}
.gp-demo-bar__pill {
	background: var(--gp-gold); color: var(--gp-ink); font-weight: 800; font-size: .6875rem;
	letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
}
.gp-demo-bar__link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.gp-demo-bar__link:hover, .gp-demo-bar__link:focus { border-bottom-color: #fff; color: #fff; }

.gp-head {
	background: rgba(255,255,255,.86);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--gp-line);
	box-shadow: 0 6px 24px rgba(14,42,28,.06);
}
.gp-head__row { min-height: 76px; gap: 24px; }
.gp-brand { min-width: 0; }
.gp-brand .wp-block-site-logo img { filter: drop-shadow(0 3px 6px rgba(14,42,28,.18)); }
.gp-brand__title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.gp-brand__title a { color: var(--gp-ink); text-decoration: none; }
.gp-brand__tag { margin: 0; font-size: .8125rem; color: var(--gp-muted); line-height: 1.3; }

.gp-nav { font-weight: 700; font-size: .9375rem; }
.gp-nav .wp-block-navigation-item__content {
	color: var(--gp-ink); text-decoration: none; padding: 9px 14px; border-radius: 99px;
	transition: background-color .15s ease, color .15s ease;
}
.gp-nav .wp-block-navigation-item__content:hover,
.gp-nav .wp-block-navigation-item__content:focus-visible { background: #EEF4EF; color: var(--gp-green); }
.gp-nav .current-menu-item > .wp-block-navigation-item__content { background: #E3EFE6; color: var(--gp-green); }
.gp-nav .wp-block-navigation__responsive-container-open {
	width: 44px; height: 44px; border-radius: 12px; background: #EEF4EF; color: var(--gp-ink);
	align-items: center; justify-content: center;
}
.gp-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.gp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: 12px 16px; }

.gp-cta {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	background: var(--gp-green); color: #fff; font-weight: 700; font-size: .9375rem;
	padding: 11px 18px; border-radius: 99px; text-decoration: none;
	box-shadow: 0 6px 16px rgba(31,94,59,.28); transition: transform .15s ease, background-color .15s ease;
}
.gp-cta:hover, .gp-cta:focus-visible { background: var(--gp-green-dk); color: #fff; transform: translateY(-1px); }
.gp-cta svg { flex: none; }

@media (max-width: 1080px) {
	.gp-cta span { display: none; }
	.gp-cta { padding: 0; width: 44px; height: 44px; justify-content: center; }
}
@media (max-width: 600px) {
	.gp-demo-bar__txt { display: none; }
	.gp-head__row { min-height: 64px; gap: 12px; }
	.gp-brand .wp-block-site-logo img { width: 38px !important; }
	.gp-brand__title { font-size: 1.0625rem; }
	.gp-brand__tag { font-size: .75rem; }
}

/* ---------- Pas „Bądź na bieżąco” nad stopką ---------- */
.gp-prefoot { margin-top: var(--wp--preset--spacing--60); margin-bottom: -64px !important; position: relative; z-index: 2; }
.gp-band {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
	padding: clamp(28px, 4vw, 52px); border-radius: 28px; color: #fff;
	background:
		radial-gradient(420px 260px at 8% 0%, rgba(226,180,59,.45), transparent 70%),
		radial-gradient(520px 320px at 100% 100%, rgba(52,211,153,.35), transparent 70%),
		linear-gradient(135deg, #22684A 0%, #143D27 100%);
	box-shadow: 0 24px 60px rgba(20,61,39,.28);
}
.gp-band::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
	background-image: radial-gradient(rgba(255,255,255,.5) 1.2px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
	mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.gp-band__kicker { margin: 0 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gp-gold); }
.gp-band__title { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; text-wrap: balance; }
.gp-band__lead { margin: 12px 0 0; color: #D5E6DB; max-width: 52ch; }
.gp-band__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gp-btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 99px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.gp-btn:hover, .gp-btn:focus-visible { transform: translateY(-1px); }
.gp-btn--gold { background: var(--gp-gold); color: var(--gp-ink); }
.gp-btn--gold:hover, .gp-btn--gold:focus-visible { background: #F0C654; color: var(--gp-ink); }
.gp-btn--ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.gp-btn--ghost:hover, .gp-btn--ghost:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.gp-band__chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gp-band__chips li {
	display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center;
	padding: 14px 16px; border-radius: 16px;
	background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gp-band__chips .gp-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background-color: rgba(255,255,255,.16); }
.gp-band__chips .gp-ico::before { background: #fff; }
.gp-band__chips strong { font-size: 1rem; }
.gp-band__chips small { color: #CFE2D6; font-size: .8125rem; }
body:has(.uk-form) .gp-prefoot { display: none; }
body:has(.uk-form) .gp-foot { margin-top: var(--wp--preset--spacing--60) !important; padding-top: 56px; }

/* ---------- Stopka ---------- */
.gp-foot {
	background: var(--gp-ink); color: #C9D7CF; padding-top: 120px; padding-bottom: 28px; margin-top: 0 !important;
	font-size: .9375rem;
}
.gp-foot a { color: #fff; text-decoration: none; }
.gp-foot a:hover, .gp-foot a:focus-visible { color: var(--gp-gold); }
.gp-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.gp-foot__grid > * { margin: 0 !important; min-width: 0; }
.gp-foot__name { margin: 0; color: #fff; font-weight: 800; font-size: 1.0625rem; line-height: 1.25; }
.gp-foot__brand .wp-block-site-logo img { filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.gp-foot__contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.gp-foot__contact li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.gp-foot__contact .gp-ico { width: 30px; height: 30px; border-radius: 9px; background-color: rgba(255,255,255,.08); flex: none; }
.gp-foot__contact .gp-ico::before { background: var(--gp-gold); -webkit-mask-size: 16px; mask-size: 16px; }
.gp-foot__h { margin: 0 0 14px; color: #fff; font-weight: 800; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
.gp-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gp-foot__links a { color: #C9D7CF; }
.gp-foot__links a:hover, .gp-foot__links a:focus-visible { color: #fff; }
.gp-foot__hours { margin: 0; display: grid; gap: 9px; }
.gp-foot__hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed rgba(255,255,255,.14); }
.gp-foot__hours dt { margin: 0; }
.gp-foot__hours dd { margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.gp-foot__bottom {
	margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .8125rem; color: #95AA9C;
}
.gp-foot__bottom p { margin: 0; }
.gp-foot__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.gp-foot__bottom a { color: #C9D7CF; }

@media (max-width: 960px) {
	.gp-band { grid-template-columns: 1fr; }
	.gp-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.gp-band { border-radius: 22px; }
	.gp-prefoot { margin-bottom: -48px !important; }
	.gp-foot { padding-top: 96px; }
	.gp-foot__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Ikony (maski SVG) ---------- */
.gp-ico { display: inline-grid; place-items: center; }
.gp-ico::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: var(--i) center / 20px no-repeat; mask: var(--i) center / 20px no-repeat;
}
.gp-ico--bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
.gp-ico--sms { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 10h.01M12 10h.01M16 10h.01'/%3E%3C/svg%3E"); }
.gp-ico--mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.gp-ico--pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.gp-ico--phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

/* ---------- Treść ---------- */
.gp-hero {
	position: relative; overflow: hidden; isolation: isolate; border-radius: 28px !important;
	background:
		radial-gradient(520px 300px at 100% 0%, rgba(226,180,59,.30), transparent 70%),
		radial-gradient(560px 340px at 85% 110%, rgba(52,160,100,.22), transparent 70%),
		linear-gradient(135deg, #FFFBF0 0%, #F3F7EF 100%) !important;
	border: 1px solid #EFE8D4;
}
.gp-hero::after {
	content: ""; position: absolute; z-index: -1; right: -40px; top: 50%; translate: 0 -50%;
	width: 420px; height: 420px; border-radius: 50%;
	background-image: radial-gradient(rgba(31,94,59,.22) 1.4px, transparent 1.4px); background-size: 20px 20px;
	-webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.gp-hero h1 { letter-spacing: -.02em; text-wrap: balance; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid #C9D6CC; color: var(--gp-ink); background: rgba(255,255,255,.7); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--gp-green); color: var(--gp-green); }
.wp-block-button__link { box-shadow: 0 6px 16px rgba(31,94,59,.16); }
.is-style-outline .wp-block-button__link { box-shadow: none; }
.gp-tile { border-radius: 18px !important; }
.gp-tile h2 a::before { content: ""; }
.gp-tile { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.gp-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,61,39,.12); }
.gp-tile a { text-decoration: none; }
.gp-tile a::after { content: ""; position: absolute; inset: 0; }
.gp-news .wp-block-post { background: #fff; border: 1px solid #E3E1D8; border-radius: 14px; overflow: hidden; height: 100%; }
.gp-news .wp-block-post-featured-image { margin: 0; }
.gp-news .wp-block-post-title a { text-decoration: none; }
.gp-news .wp-block-post-title a:hover { text-decoration: underline; }
.gp-cat a { text-decoration: none; background: #FFF8E6; border: 1px solid #E2B43B; color: #143D27; border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: .8rem; }
.wp-block-table table { background: #fff; }
.wp-block-table thead { background: #1F5E3B; color: #fff; }
.uk-form { --uk-pri: #1F5E3B; }

@media (prefers-reduced-motion: reduce) {
	.gp-tile, .gp-cta, .gp-btn, .gp-nav .wp-block-navigation-item__content { transition: none; }
}
