/*
Theme Name: Buka Child
Description: A child theme of twentytwentyfive, scaffolded by Studio Code.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buka-child
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* Indent nested accordions inside a category accordion */
details.wp-block-details details.wp-block-details {
	margin-left: 1.5rem;
}

/* Original header logos used as link icons */
ul.wp-block-list li .link-icon {
	width: 22px;
	height: 22px;
	margin-right: 6px;
	vertical-align: middle;
	border-radius: 50%;
	object-fit: contain;
}

/* Prominent GIS button */
.gis-button {
	margin-top: 36px;
}
.gis-button .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	position: relative;
	font-size: clamp( 1.3rem, 2.4vw, 1.6rem );
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 16px 32px;
	height: 92px;
	box-sizing: border-box;
	background: linear-gradient( 135deg, #0f766e 0%, #0c9c87 100% );
	color: #fff;
	border-radius: 14px;
	border: 2px solid rgba( 255, 255, 255, 0.38 );
	box-shadow: 0 12px 32px rgba( 15, 118, 110, 0.35 ), inset 0 1px 0 rgba( 255, 255, 255, 0.2 );
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.gis-button .wp-block-button__link::after {
	content: "➜";
	margin-left: 10px;
	font-size: 1.5rem;
	font-weight: 900;
}
.gis-button .wp-block-button__link:hover {
	transform: translateY( -3px );
	filter: brightness( 1.06 );
	box-shadow: 0 18px 40px rgba( 15, 118, 110, 0.44 ), inset 0 1px 0 rgba( 255, 255, 255, 0.2 );
}
.gis-button .wp-block-button__link .gis-cta-icon {
	height: 62px;
	width: 62px;
	border-radius: 50%;
	object-fit: contain;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba( 15, 118, 110, 0.18 );
}

/* Page title accent */
.wp-block-post-title {
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Category accordion panels as cards */
.maps-band > details.wp-block-details {
	background: #ffffff;
	border: 1px solid var( --wp--preset--color--surface-2 );
	border-radius: 12px;
	padding: 8px 22px 18px;
	box-shadow: 0 6px 20px rgba( 15, 118, 110, 0.10 );
}
.maps-band > details.wp-block-details > summary {
	font-size: 1.3rem;
	font-weight: 600;
	color: var( --wp--preset--color--primary );
	padding: 14px 0;
	letter-spacing: -0.01em;
	transition: color 0.15s ease;
}
.maps-band > details.wp-block-details > summary:hover {
	color: var( --wp--preset--color--accent );
}

/* Nested (entry) accordions */
details.wp-block-details details.wp-block-details {
	margin-left: 1.25rem;
	border-bottom: 1px solid var( --wp--preset--color--surface-2 );
	padding: 4px 0 6px;
}
details.wp-block-details details.wp-block-details > summary {
	font-size: 1.15rem;
	font-weight: 600;
	color: var( --wp--preset--color--text );
	padding: 8px 0;
	transition: color 0.15s ease;
}
details.wp-block-details details.wp-block-details > summary:hover {
	color: var( --wp--preset--color--primary );
}

/* Entry description text inside the nested accordions */
details.wp-block-details details.wp-block-details p {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var( --wp--preset--color--text );
}

/* Links get an underline on hover */
.entry-content a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}
.entry-content a:hover {
	text-decoration-color: currentColor;
}

/* One continuous wave image across the whole site header (hero + tab cards) */
.wp-site-blocks {
	background-color: #bce7dd;
	background-image: linear-gradient( rgba(186,232,220,0.5), rgba(186,232,220,0.5) ), url( "assets/images/waves-hero.png" );
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

/* Hero header: content sits on the site-wide wave; zig-zag line runs along the top */
.hero-wave {
	position: relative;
	padding: 0 0 26px;
}
.hero-wave .skb-banner-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}
.skb-topline {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #ffffff;
	padding: 14px 20px 16px;
}
.skb-topline::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url( "assets/images/line-2x.png" ) repeat-x center / auto 44px;
	opacity: 0.9;
	pointer-events: none;
}
.skb-topline::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: #17323a;
	pointer-events: none;
}
.skb-topline .skb-banner-inner {
	position: relative;
}
.hero-wave .wp-block-post-title {
	margin: 8px auto 22px;
	width: fit-content;
	padding: 0;
	text-align: center;
	background: none;
	border-radius: 0;
	color: #1a1d21;
	font-weight: 800;
	text-shadow: 0 1px 0 rgba( 255, 255, 255, 0.55 ), 0 0 10px rgba( 255, 255, 255, 0.55 );
}
@media ( max-width: 600px ) {
	.hero-wave {
		padding: 30px 0 24px;
	}
	.hero-wave .wp-block-post-title {
		font-size: 2rem;
	}
}

/* Thin centre line through the banner (behind zig-zag strip + title) */

/* Tabbed sections */
.tabs-wrap {
	padding-top: 28px;
}
.tabs-wrap > .tab-panel {
	margin-top: 0;
}
/* Tab cards (one next to the other) at the top, flush above the panel */
.tabs-bar.tab-cards {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
	gap: 6px;
	align-items: start;
	margin: 0;
	padding: 0 4px 0;
	position: relative;
	z-index: 1;
}
.tabs-bar.tab-cards .tab-card {
	margin: 0;
	align-self: start;
}
.tabs-bar.tab-cards .tab-card.is-active {
	align-self: stretch;
}
.tabs-bar.tab-cards .tab-card .wp-block-button__link {
	width: 100%;
	height: 78px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 12px;
	padding: 14px 16px;
	background: #ffffff;
	color: var( --wp--preset--color--primary );
	border: 2px solid var( --wp--preset--color--surface-2 );
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba( 15, 118, 110, 0.06 );
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tabs-bar.tab-cards .tab-card:hover .wp-block-button__link {
	border-color: var( --wp--preset--color--primary );
	box-shadow: 0 6px 18px rgba( 15, 118, 110, 0.12 );
}
.tabs-bar.tab-cards .tab-card.is-active .wp-block-button__link {
	background: var( --wp--preset--color--primary );
	color: #ffffff;
	border-color: var( --wp--preset--color--primary );
	min-height: 92px;
	border-radius: 10px 10px 0 0;
}
.tab-panel.is-active {
	display: block;
}
@media ( max-width: 600px ) {
	.tabs-bar.tab-cards {
		grid-template-columns: 1fr;
		margin-bottom: 24px;
	}
}

/* Row of partner link icons above the title, with abbreviation on hover */
.top-links {
	padding: 24px 0 8px;
}
.top-links-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	justify-content: center;
	align-items: center;
	margin: 30px 0 0;
	padding: 0;
}
.top-links-list li {
	margin: 0;
}
.top-links-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	line-height: 0;
	background: #ffffff;
	border-radius: 50%;
	padding: 4px;
	box-shadow: 0 2px 8px rgba( 3, 20, 27, 0.25 );
}
ul.top-links-list li img.link-icon {
	height: 44px;
	width: 44px;
	object-fit: contain;
	display: block;
	margin: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
ul.top-links-list li a:hover img.link-icon {
	transform: translateY( -2px );
}
ul.top-links-list li a:hover {
	box-shadow: 0 8px 18px rgba( 3, 20, 27, 0.35 );
}

@media ( prefers-reduced-motion: reduce ) {
	.gis-button .wp-block-button__link,
	.maps-band > details.wp-block-details > summary,
	details.wp-block-details details.wp-block-details > summary,
	.link-grid > li,
	.entry-content a,
	.tabs-bar .tab-btn .wp-block-button__link,
	.top-links-list .link-icon {
		transition: none;
	}
	.gis-button .wp-block-button__link:hover,
	.link-grid > li:hover {
		transform: none;
	}
}

/* SKB zig-zag banner strip above the page title */
.skb-banner {
	background-color: #0b3f4a;
	background-image: url( "assets/images/line-2x.png" ), url( "assets/images/soundwaves.png" );
	background-repeat: repeat-x, no-repeat;
	background-size: auto 44px, cover;
	background-position: top center, center;
	height: 150px;
	display: flex;
	align-items: center;
}
.skb-banner > .skb-banner-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}
.skb-banner-logo {
	width: 120px;
	height: 90px;
	background: url( "assets/images/skb-logo-2x.png" ) no-repeat center / contain;
}
.skb-banner-title {
	margin: 0;
	color: #ffffff;
	background: var( --wp--preset--color--primary );
	padding: 8px 18px;
	border-radius: 8px;
	font-size: clamp( 1.5rem, 3.2vw, 2rem );
	letter-spacing: -0.01em;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.18 );
}
@media ( max-width: 600px ) {
	.skb-banner {
		height: 92px;
	}
	.skb-banner-logo {
		width: 90px;
		height: 68px;
	}
	.skb-banner-title {
		font-size: 1.3rem;
	}
}

/* ==== Modern stacked-band layout ==== */

/* Full-bleed bands butt edge to edge, own their vertical rhythm */
.wp-block-post-content > .wp-block-group {
	margin-block: 0;
}
.intro-band,
.links-band,
.maps-band,
.contact-band {
	padding-block: 60px 68px;
}

/* Intro hero band (deep teal) */
.intro-band {
	background: linear-gradient( 135deg, #0b5c54 0%, #0f766e 58%, #0c9c87 135% );
}
.intro-band p {
	color: #dff0ee;
}
.intro-band .intro-lead {
	font-size: clamp( 1.3rem, 2.5vw, 1.45rem );
	line-height: 1.5;
	color: #ffffff;
	font-weight: 600;
	margin-bottom: 22px;
}
.intro-band > .wp-block-paragraph:not( .intro-lead ) {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #dff0ee;
}
.intro-band > .wp-block-paragraph:not( .intro-lead ) + .wp-block-paragraph {
	margin-top: 14px;
}
.intro-band .wp-block-columns {
	margin-top: 34px;
}
.intro-band .wp-block-column {
	background: rgba( 255, 255, 255, 0.08 );
	border: 1px solid rgba( 255, 255, 255, 0.18 );
	border-radius: 12px;
	padding: 22px;
}

/* Links band (pale surface) */
.links-band {
	background: var( --wp--preset--color--surface );
}
.links-band > .wp-block-heading,
.maps-band > .wp-block-heading,
.contact-band > .wp-block-heading {
	font-size: clamp( 1.5rem, 3vw, 2rem );
	margin-bottom: 6px;
}

/* Poveznice as a grid of cards */
.link-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 16px;
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
}
.link-grid > li {
	background: #ffffff;
	border: 1px solid var( --wp--preset--color--surface-2 );
	border-radius: 12px;
	padding: 22px 18px;
	box-shadow: 0 4px 16px rgba( 15, 118, 110, 0.08 );
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link-grid > li:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 26px rgba( 15, 118, 110, 0.16 );
}
.link-grid > li {
	font-size: 0.9rem;
	line-height: 1.5;
}
ul.link-grid li .link-icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	object-fit: contain;
	margin: 0;
	vertical-align: middle;
}
.link-grid a {
	font-weight: 600;
	font-size: 1.3125rem;
	line-height: 1.25;
	color: var( --wp--preset--color--primary );
}
.link-grid a:hover {
	color: var( --wp--preset--color--accent );
}

/* GIS button spacing inside links band */
.links-band .wp-block-buttons {
	margin-top: 30px;
}

/* Maps band (deeper teal surface) */
.maps-band {
	background: var( --wp--preset--color--primary );
}
.maps-band > .wp-block-heading {
	color: #ffffff;
	margin-bottom: 22px;
}
.maps-band > details.wp-block-details {
	margin-top: 18px;
}

/* Contact band (primary teal) */
.contact-band {
	background: var( --wp--preset--color--primary );
	font-size: 1.03125rem;
	line-height: 1.6;
}
.contact-band .wp-block-heading {
	color: #ffffff;
}
.contact-band ul,
.contact-band p {
	color: #eaf6f4;
}
.contact-band a {
	color: #cfeef0;
}
.contact-band li {
	padding: 8px 0;
}

/* ==== Digital accessibility widget ==== */
.a11y-widget {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 9999;
	font-family: "Public Sans", Helvetica, Arial, sans-serif;
}
.a11y-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Public Sans", Helvetica, Arial, sans-serif;
	padding: 12px 16px 12px 12px;
	border: none;
	border-radius: 999px;
	background: var( --wp--preset--color--primary );
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba( 15, 118, 110, 0.4 );
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.a11y-button:hover {
	transform: translateY( -2px );
	box-shadow: 0 10px 26px rgba( 15, 118, 110, 0.5 );
}
.a11y-button .a11y-label {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.a11y-panel {
	position: absolute;
	left: 0;
	bottom: calc( 100% + 12px );
	width: 300px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba( 3, 20, 27, 0.28 );
	border: 1px solid var( --wp--preset--color--surface-2 );
	padding: 8px 0 12px;
	display: none;
}
.a11y-panel.is-open {
	display: block;
}
.a11y-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px 12px;
	border-bottom: 1px solid var( --wp--preset--color--surface-2 );
	color: var( --wp--preset--color--text );
	font-size: 1rem;
}
.a11y-close {
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: var( --wp--preset--color--muted );
	cursor: pointer;
	padding: 0 4px;
}
.a11y-close:hover {
	color: var( --wp--preset--color--primary );
}
.a11y-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px;
}
.a11y-group-label {
	font-size: 0.9rem;
	color: var( --wp--preset--color--text );
}
.a11y-size-btns {
	display: flex;
	gap: 6px;
}
.a11y-size {
	border: 1px solid var( --wp--preset--color--surface-2 );
	background: #ffffff;
	color: var( --wp--preset--color--primary );
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}
.a11y-size.is-active {
	background: var( --wp--preset--color--primary );
	color: #ffffff;
	border-color: var( --wp--preset--color--primary );
}
.a11y-toggle-row {
	justify-content: space-between;
}
.a11y-switch {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	border: none;
	background: #cbd5d0;
	cursor: pointer;
	transition: background-color 0.15s ease;
	padding: 0;
}
.a11y-switch .a11y-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
	transition: transform 0.15s ease;
}
.a11y-switch.is-on {
	background: var( --wp--preset--color--primary );
}
.a11y-switch.is-on .a11y-knob {
	transform: translateX( 20px );
}
.a11y-reset {
	margin: 6px 16px 0;
	width: calc( 100% - 32px );
	padding: 10px 12px;
	border: 1px solid var( --wp--preset--color--surface-2 );
	border-radius: 8px;
	background: #ffffff;
	color: var( --wp--preset--color--primary );
	font-family: "Public Sans", Helvetica, Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.a11y-reset:hover {
	background: var( --wp--preset--color--primary );
	color: #ffffff;
}

/* Effects applied by the widget */
html.a11y-sm { font-size: 90%; }
html.a11y-lg { font-size: 115%; }
body.a11y-grayscale { filter: grayscale( 100% ); }
body.a11y-invert { filter: invert( 1 ) hue-rotate( 180deg ); }
body.a11y-contrast { filter: contrast( 1.55 ) saturate( 1.35 ); }
body.a11y-underline a {
	text-decoration: underline !important;
}
body.a11y-spacing p,
body.a11y-spacing li,
body.a11y-spacing .wp-block-paragraph {
	letter-spacing: 0.06em;
	word-spacing: 0.12em;
	line-height: 1.9;
}

@media ( prefers-reduced-motion: reduce ) {
	.a11y-button,
	.a11y-switch,
	.a11y-switch .a11y-knob {
		transition: none;
	}
}

/* Footer */
.site-footer {
	background: var( --wp--preset--color--primary );
}
.site-footer p {
	color: #eafaf7;
	margin: 0;
}
.site-footer a.footer-privacy-link {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.site-footer a.footer-privacy-link:hover {
	color: #bdf3e8;
}

/* Privacy policy page (no header / footer) */
.privacy-band {
	background: #ffffff;
	font-size: 1rem;
}
.privacy-band .wp-block-post-title {
	color: var( --wp--preset--color--primary );
	font-size: clamp( 1.6rem, 3vw, 2.1rem );
}
.privacy-band p,
.privacy-band li {
	font-size: 1rem;
	line-height: 1.65;
}
.privacy-band h2 {
	font-size: 1.35rem;
	margin-top: 1.6em;
	margin-bottom: 0.5em;
}
.privacy-band h3 {
	font-size: 1.15rem;
}
.privacy-band ul,
.privacy-band ol {
	padding-left: 1.4em;
}
.privacy-band a {
	color: var( --wp--preset--color--primary );
}
