/*
Theme Name: Slovenia Connects
Theme URI: https://github.com/GoSMIT/Slovenia-Connects
Author: GoSMIT
Description: Lightweight WordPress theme foundation for SLOVENIA CONNECTS - Rebuild Ukraine.
Version: 0.2.8
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: slovenia-connects
*/

:root {
	--scu-blue: #035a9c;
	--scu-dark-blue: #174f8f;
	--scu-deep-blue: #07376d;
	--scu-yellow: #fec11d;
	--scu-yellow-soft: #fff4c7;
	--scu-text: #1f2937;
	--scu-muted: #5e6b7a;
	--scu-bg: #f4f7fb;
	--scu-card: #ffffff;
	--scu-border: #d8e0ea;
	--scu-focus: #0b5ea8;
	--scu-shadow: 0 16px 40px rgba(7, 55, 109, 0.1);
	--scu-radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	max-width: 100%;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--scu-text);
	background: var(--scu-bg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	max-width: 100%;
	overflow-x: hidden;
}

a {
	color: var(--scu-blue);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--scu-dark-blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(254, 193, 29, 0.85);
	outline-offset: 3px;
}

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

.site-container {
	width: min(1210px, calc(100% - 2rem));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--scu-border);
	backdrop-filter: blur(12px);
}

.site-header-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	min-height: 72px;
}

.site-header .site-container {
	width: min(1536px, calc(100% - 4rem));
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-logo-image {
	display: block;
	width: auto;
	height: 44px;
	max-width: 148px;
	object-fit: contain;
	object-position: left center;
}

.site-navigation {
	justify-self: end;
}

.primary-menu,
.mobile-menu,
.footer-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.32rem 0.62rem;
	align-items: center;
	justify-content: flex-end;
	font-size: 0.82rem;
}

.primary-menu a,
.mobile-menu a,
.footer-link-list a {
	color: var(--scu-text);
	text-decoration: none;
}

.primary-menu a:hover,
.mobile-menu a:hover,
.footer-link-list a:hover {
	color: var(--scu-blue);
}

.site-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.site-action-link,
.button,
.inline-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
}

.site-action-link {
	padding: 0.52rem 0.78rem;
	color: var(--scu-blue);
	font-size: 0.86rem;
}

.site-action-link-primary,
.button-primary {
	background: var(--scu-yellow);
	color: #17212b;
}

.site-action-link-primary:hover,
.button-primary:hover {
	background: #f3b000;
	color: #17212b;
}

.site-mobile-menu {
	display: none;
}

.site-mobile-menu summary {
	cursor: pointer;
	font-weight: 800;
	color: var(--scu-blue);
}

.front-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(100deg, #035a9c 0%, #0b5ea8 52%, #386f9f 100%);
	color: #fff;
}

.front-hero::before {
	position: absolute;
	inset: 0 0 0 auto;
	z-index: 0;
	width: 74%;
	background-image: url("assets/images/hero-kyiv-cityscape-dnipro.jpg");
	background-position: 65% 62%;
	background-repeat: no-repeat;
	background-size: cover;
	content: "";
	filter: brightness(1.1) contrast(1.08) saturate(1.02);
	opacity: 0.98;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 10%, #000 24%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 10%, #000 24%);
}

.front-hero::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(3, 90, 156, 0.98) 0%, rgba(3, 90, 156, 0.9) 32%, rgba(3, 90, 156, 0.54) 62%, rgba(3, 90, 156, 0.22) 100%),
		linear-gradient(180deg, rgba(7, 55, 109, 0.04), rgba(7, 55, 109, 0.13));
	content: "";
}

.front-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: min(1536px, calc(100% - 4rem));
	min-height: 508px;
	padding: 3.35rem 0 5rem;
}

.front-hero-content {
	position: relative;
	z-index: 1;
	width: min(45vw, 760px);
	min-width: 0;
}

.front-hero h1 {
	max-width: 760px;
	margin: 0 0 0.9rem;
	font-size: clamp(3rem, 3.05vw, 3.42rem);
	line-height: 1.075;
}

.front-hero h1 span {
	display: block;
}

.front-hero p:not(.section-kicker) {
	max-width: 620px;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08rem;
}

.section-kicker {
	margin: 0 0 0.65rem;
	color: var(--scu-blue);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.front-hero .section-kicker {
	color: var(--scu-yellow);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.72rem;
	margin-top: 1.55rem;
}

.button {
	min-height: 42px;
	padding: 0.72rem 0.94rem;
	text-align: center;
	white-space: normal;
}

.button-secondary {
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}

.button-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.front-hero-lines {
	position: absolute;
	inset: 0;
	z-index: 3;
	overflow: hidden;
	pointer-events: none;
}

.front-hero-line-svg {
	position: absolute;
	top: 4.5%;
	right: 2.7vw;
	display: block;
	width: min(39vw, 620px);
	height: 88%;
	opacity: 0.86;
}

.front-hero-line-svg path {
	fill: none;
	vector-effect: non-scaling-stroke;
}

.front-hero-line-white {
	stroke: rgba(255, 255, 255, 0.58);
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 1.6;
}

.front-hero-line-white-secondary {
	opacity: 0.78;
}

.front-hero-line-yellow {
	stroke: rgba(254, 193, 29, 0.92);
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 2.4;
}

.front-hero-line-yellow-secondary {
	opacity: 0.9;
}

.hero-institution-band {
	position: relative;
	z-index: 4;
	margin-top: -3.55rem;
	background: transparent;
}

.institution-strip {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.35rem;
	align-items: center;
	width: min(960px, calc(100% - 2rem));
	margin: 0 auto;
	border: 1px solid rgba(3, 90, 156, 0.16);
	border-radius: 8px;
	background: #fff;
	padding: 0.8rem 1.15rem;
	box-shadow: 0 16px 38px rgba(7, 55, 109, 0.12);
	transform: translateX(6.5vw);
}

.institution-strip-label {
	margin: 0;
	color: var(--scu-muted);
	font-size: 0.76rem;
	font-weight: 750;
	line-height: 1.25;
}

.institution-logo-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	align-items: center;
}

.institution-logo-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
}

.institution-logo-card img {
	display: block;
	max-width: 152px;
	max-height: 38px;
	object-fit: contain;
}

.institution-logo-card-text span {
	color: var(--scu-deep-blue);
	font-size: 0.82rem;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.site-main {
	padding: 0;
}

.front-band {
	padding: 3.1rem 0;
}

.front-band-muted {
	background: #eef4fb;
}

.front-actions {
	background: #fff;
	padding-top: 2.45rem;
	padding-bottom: 2.75rem;
}

.front-section-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: 2rem;
}

.front-section-grid > *,
.front-two-column > *,
.publication-callout > * {
	min-width: 0;
}

.front-section-grid h2,
.section-heading-row h2,
.publication-callout h2 {
	margin: 0;
	color: var(--scu-deep-blue);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	line-height: 1.15;
}

.front-about h2 {
	font-size: clamp(1.62rem, 2.55vw, 2.25rem);
}

.front-copy-large {
	color: var(--scu-muted);
	font-size: 1.05rem;
}

.inline-cta {
	gap: 0.35rem;
	color: var(--scu-blue);
}

.inline-cta::after {
	content: ">";
}

.section-heading-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: end;
	margin-bottom: 1.15rem;
}

.action-card-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.85rem;
}

.action-card,
.info-card,
.tool-card,
.section-panel,
.content-card,
.post-summary {
	border: 1px solid var(--scu-border);
	border-radius: var(--scu-radius);
	background: var(--scu-card);
	box-shadow: 0 8px 26px rgba(7, 55, 109, 0.06);
}

.action-card {
	display: flex;
	min-height: 138px;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.9rem;
	color: var(--scu-text);
	text-decoration: none;
}

.action-card:hover {
	border-color: rgba(3, 90, 156, 0.45);
	color: var(--scu-text);
	transform: translateY(-1px);
}

.action-card-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 8px;
	background: #eef6ff;
	color: var(--scu-blue);
	font-weight: 850;
}

.action-card-title {
	color: var(--scu-deep-blue);
	font-weight: 850;
	line-height: 1.25;
}

.action-card-text,
.info-card p,
.tool-card p {
	color: var(--scu-muted);
	font-size: 0.9rem;
}

.front-card-meta {
	margin-bottom: 0;
	color: var(--scu-blue) !important;
	font-size: 0.82rem !important;
	font-weight: 800;
}

.info-card-grid,
.tool-card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.tool-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.tool-card,
.section-panel,
.content-card,
.post-summary {
	padding: 1.25rem;
}

.info-card h3,
.tool-card h3,
.section-panel h3 {
	margin-top: 0;
	color: var(--scu-deep-blue);
}

.tool-card > span {
	display: grid;
	width: 34px;
	height: 34px;
	margin-bottom: 0.75rem;
	place-items: center;
	border-radius: 8px;
	background: var(--scu-yellow-soft);
	color: var(--scu-deep-blue);
	font-weight: 900;
}

a.tool-card {
	color: inherit;
	text-decoration: none;
}

a.tool-card:hover {
	border-color: var(--scu-blue);
}

.front-two-column {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem;
}

.front-two-column-balanced {
	align-items: start;
}

.publication-callout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: center;
	border: 1px solid rgba(3, 90, 156, 0.18);
	border-radius: 12px;
	background:
		linear-gradient(120deg, #fff, #eef6ff);
	padding: 2rem;
}

.front-publication-list {
	display: grid;
	gap: 0.8rem;
	margin-top: 1rem;
}

.front-publication-list article {
	border-left: 3px solid var(--scu-yellow);
	padding-left: 0.85rem;
}

.front-publication-list h3 {
	margin: 0 0 0.25rem;
	color: var(--scu-deep-blue);
	font-size: 1rem;
	line-height: 1.3;
}

.front-publication-list p {
	margin: 0;
	color: var(--scu-muted);
	font-size: 0.9rem;
}

.content-card {
	margin: 2rem 0;
}

.content-page {
	margin: 2.5rem 0 4rem;
}

.content-page .entry-content {
	max-width: 100%;
}

.content-page .entry-content > p,
.content-page .entry-content > ul,
.content-page .entry-content > ol {
	max-width: 82ch;
}

.scu-cep-disclaimer {
	max-width: 82ch;
	margin-top: 2rem;
	border-left: 3px solid var(--scu-yellow);
	padding: 0.2rem 1rem;
}

.scu-cep-tools-section {
	margin-top: 2.5rem;
	scroll-margin-top: 6rem;
}

.scu-cep-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.scu-cep-link-card {
	min-width: 0;
	border: 1px solid var(--scu-border);
	border-radius: var(--scu-radius);
	background: #fff;
	padding: 1.25rem;
}

.scu-cep-link-card h2,
.scu-cep-link-card h3 {
	margin: 0 0 0.75rem;
	color: var(--scu-deep-blue);
	font-size: 1.1rem;
	line-height: 1.35;
}

.scu-cep-link-card p:last-child {
	margin-bottom: 0;
}

.scu-cep-link-card a {
	overflow-wrap: anywhere;
}

@media (max-width: 700px) {
	.scu-cep-card-grid {
		grid-template-columns: 1fr;
	}
}

.entry-title,
.page-title {
	margin-top: 0;
	color: var(--scu-deep-blue);
	line-height: 1.18;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-meta,
.entry-footer,
.archive-description {
	color: var(--scu-muted);
	font-size: 0.95rem;
}

.post-summary + .post-summary {
	margin-top: 1rem;
}

.site-footer {
	background: #fff;
	color: rgba(255, 255, 255, 0.84);
}

.site-footer a {
	color: #fff;
}

.site-footer-main {
	position: relative;
	overflow: hidden;
	background: var(--scu-deep-blue);
}

.site-footer-main .site-container {
	position: relative;
	z-index: 1;
}

.site-footer-main::before {
	position: absolute;
	right: -4rem;
	bottom: -2rem;
	width: 280px;
	height: 180px;
	border-top: 2px solid rgba(255, 255, 255, 0.34);
	border-left: 2px solid rgba(255, 255, 255, 0.34);
	content: "";
	transform: skewY(-28deg);
}

.site-footer-main::after {
	position: absolute;
	right: -3rem;
	bottom: 2rem;
	width: 230px;
	height: 3px;
	background: rgba(254, 193, 29, 0.85);
	content: "";
	transform: rotate(-31deg);
	transform-origin: right center;
}

.site-footer-grid {
	display: grid;
	grid-template-columns: 1.35fr 0.85fr 0.85fr 1.2fr;
	gap: 2rem;
	padding: 2.7rem 0 2.25rem;
}

.site-footer h2 {
	margin: 0 0 0.75rem;
	color: #fff;
	font-size: 1rem;
}

.footer-link-list {
	display: grid;
	gap: 0.4rem;
}

.footer-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.footer-social-links span {
	display: grid;
	min-width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	padding: 0 0.45rem;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
}

.site-footer-bottom {
	background: #fff;
	color: var(--scu-muted);
	font-size: 0.82rem;
}

.site-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: 0.95rem 0;
}

.site-footer-bottom p {
	margin: 0;
}

.site-footer-support {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.site-footer-support img {
	max-width: 132px;
	max-height: 34px;
	object-fit: contain;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 1240px) {
	.site-header .site-container {
		width: min(100%, calc(100% - 2rem));
	}

	.site-header-inner {
		grid-template-columns: auto 1fr auto;
	}

	.site-navigation,
	.site-actions {
		display: none;
	}

	.site-mobile-menu {
		display: block;
		justify-self: end;
	}

	.site-mobile-menu[open] {
		position: absolute;
		right: 1rem;
		left: 1rem;
		top: 68px;
		border: 1px solid var(--scu-border);
		border-radius: var(--scu-radius);
		background: #fff;
		padding: 1rem;
		box-shadow: var(--scu-shadow);
	}

	.mobile-menu {
		display: grid;
		gap: 0.65rem;
		margin-top: 1rem;
	}

	.mobile-actions {
		display: flex;
		gap: 0.5rem;
		margin-top: 1rem;
	}

	.front-section-grid,
	.front-two-column,
	.publication-callout,
	.site-footer-grid {
		grid-template-columns: 1fr;
	}

	.front-hero::before {
		width: 100%;
		background-position: 62% 58%;
		opacity: 0.58;
	}

	.front-hero-inner {
		width: min(100%, calc(100% - 2rem));
		min-height: 500px;
	}

	.front-hero-content {
		width: min(100%, 690px);
	}

	.front-hero h1 {
		max-width: 690px;
	}

	.front-hero-lines {
		opacity: 0.45;
	}

	.front-hero-line-svg {
		right: -2rem;
		width: min(52vw, 560px);
	}

	.institution-strip {
		transform: none;
	}

	.action-card-grid,
	.info-card-grid,
	.tool-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.site-container {
		width: min(100%, calc(100% - 1rem));
	}

	.site-header .site-container,
	.front-hero-inner {
		width: min(100%, calc(100% - 1rem));
	}

	.site-header-inner {
		min-height: 68px;
	}

	.site-logo-image {
		width: auto;
		height: 42px;
		max-width: 128px;
	}

	.front-hero {
		background: #035a9c;
	}

	.front-hero::before {
		background-position: 63% 58%;
		opacity: 0.34;
	}

	.front-hero::after {
		background:
			linear-gradient(90deg, rgba(3, 90, 156, 0.98) 0%, rgba(3, 90, 156, 0.88) 58%, rgba(3, 90, 156, 0.66) 100%),
			linear-gradient(180deg, rgba(7, 55, 109, 0.12), rgba(7, 55, 109, 0.38));
	}

	.front-hero-inner {
		min-height: auto;
		gap: 1.75rem;
		padding: 2.8rem 0 5rem;
	}

	.front-hero-content {
		width: 100%;
	}

	.front-hero-lines {
		display: none;
	}

	.front-hero h1 {
		max-width: 100%;
		font-size: 2rem;
		overflow-wrap: normal;
	}

	.front-hero p:not(.section-kicker) {
		max-width: 30ch;
		font-size: 1.02rem;
	}

	.hero-institution-band {
		margin-top: -2.2rem;
	}

	.institution-strip {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding: 1rem;
	}

	.institution-logo-row {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.institution-logo-card {
		min-height: 42px;
	}

	.hero-actions,
	.mobile-actions,
	.site-footer-bottom-inner,
	.site-footer-support {
		flex-direction: column;
		align-items: stretch;
	}

	.button,
	.site-action-link {
		width: 100%;
	}

	.front-band {
		padding: 2.75rem 0;
	}

	.front-section-grid h2,
	.section-heading-row h2,
	.publication-callout h2 {
		font-size: 1.72rem;
		overflow-wrap: break-word;
	}

	.front-about h2 {
		font-size: 1.55rem;
	}

	.action-card-grid,
	.info-card-grid,
	.tool-card-grid {
		grid-template-columns: 1fr;
	}

	.section-heading-row {
		display: block;
	}
}
