/*
Theme Name: UU Milanovac
Theme URI: https://github.com/
Description: Child theme of Twenty Twenty-Five for Udruga umirovljenika Milanovac. Brand blue + gold, large legible type (Lexend), light backgrounds for older readers.
Author: Udruga umirovljenika Milanovac
Template: twentytwentyfive
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uumilanovac
*/

/* Only what theme.json cannot express. Classes are set via "Additional CSS class" in the editor. */

/* Header: generous tap targets, visible current page. */
.uu-header .wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 0.75rem;
	border-bottom: 4px solid transparent;
	text-decoration: none;
}
.uu-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.uu-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.uu-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--accent-2);
}
.uu-header a:focus-visible,
.uu-footer-bar a:focus-visible {
	outline-color: var(--wp--preset--color--accent-2);
}

/* Hero (home): tilted photo card with a gold badge. */
.uu-hero-photo img {
	border: 10px solid var(--wp--preset--color--base);
	border-radius: 28px;
	box-shadow: 0 14px 30px rgba(38, 58, 147, 0.18);
	transform: rotate(-2deg);
}
.uu-hero-badge {
	display: inline-block;
	margin-top: -2.2rem !important;
	margin-left: -0.75rem;
	position: relative;
	padding: 0.4rem 1.2rem;
	border-radius: 999px;
	transform: rotate(2deg);
}

/* Long pages (Kontakt, Projekt…): air above headings + a short gold bar marking each section. */
.wp-block-post-content > h2.wp-block-heading {
	margin-top: var(--wp--preset--spacing--60);
}
.wp-block-post-content > h2.wp-block-heading::before {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	margin-bottom: 0.6em;
	border-radius: 3px;
	background: var(--wp--preset--color--accent-2);
}
.wp-block-post-content > h3.wp-block-heading {
	margin-top: var(--wp--preset--spacing--50);
}
.wp-block-post-content > :is(h2, h3).wp-block-heading + * {
	margin-top: var(--wp--preset--spacing--20);
}

/* Links that open in a new tab (set in functions.php): visible arrow + spoken hint. */
.uu-new-tab::after {
	content: "\00a0\2197" / " (otvara se u novoj kartici)";
}

/* Small EU emblem next to the project line in the hero: never squeeze it. */
.uu-eu-mini > .wp-block-image {
	flex: none;
}

/* Cards in "Što radimo". */
.uu-card {
	height: 100%;
}

/* Buttons: never smaller than a comfortable tap target. */
.wp-block-button__link {
	min-height: 56px;
	display: inline-flex;
	align-items: center;
}

@media (max-width: 781px) {
	.uu-header .wp-block-navigation__container {
		justify-content: center;
	}
	.uu-hero-badge {
		margin-left: 0;
	}
	.uu-eu-mini {
		flex-wrap: wrap !important;
	}
}

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