/*
Theme Name: Pathfinder Club
Theme URI: https://pathfinder.club/
Author: Pathfinder
Author URI: https://pathfinder.club/
Description: Українська тема для клубу слідопитів і шукачів пригод. Небо, хмарки та великий жирний заголовок — у стилі клубного постера.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pathfinder
Tags: custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--sky-deep: #2b93db;
	--sky-mid: #57b2e8;
	--sky-light: #a9d7f5;
	--blue-accent: #2288d6;
	--blue-dark: #175f9f;
	--navy: #10456f;
	--yellow: #f7c948;
	--yellow-dark: #e0ad1f;
	--ink: #1d3244;
	--white: #ffffff;
	--shadow: 0 18px 40px rgba(16, 69, 111, 0.16);
	--radius: 22px;
	--font-head: "Montserrat", "Arial Black", "Arial", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--navy);
	background: #eef7fd;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--blue-accent);
	text-decoration: none;
}

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

.container {
	width: min(1180px, 92%);
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* ---------- Header ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	padding: 14px 0;
	transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
	background: rgba(37, 140, 214, 0.96);
	box-shadow: 0 6px 24px rgba(9, 54, 92, 0.25);
	padding: 8px 0;
	backdrop-filter: blur(6px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
}

.brand-mark {
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: grid;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, 0.65);
}

.brand-text {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.15;
}

.nav-toggle {
	display: none;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.site-nav ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: block;
	color: #fff;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 10px 14px;
	border-radius: 999px;
	transition: background 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.site-nav .nav-donate {
	display: inline-block;
	background: var(--yellow);
	color: var(--navy);
	font-weight: 900;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 11px 20px;
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(12, 74, 124, 0.3);
	transition: background 0.2s ease, transform 0.18s ease;
}

.site-nav .nav-donate:hover {
	background: var(--yellow-dark);
	color: var(--navy);
	transform: translateY(-2px);
}

/* ---------- Hero (перше фото) ---------- */

.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 140px 0 200px;
	background: linear-gradient(180deg, #2489d4 0%, var(--sky-deep) 30%, var(--sky-mid) 66%, var(--sky-light) 100%);
	overflow: hidden;
}

.hero-inner {
	position: relative;
	z-index: 2;
}

.hero h1 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(2.4rem, 6.4vw, 5rem);
	line-height: 1.08;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 6px 26px rgba(10, 62, 108, 0.35);
}

.hero-sub {
	max-width: 640px;
	margin: 26px auto 0;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	font-weight: 600;
	color: #f2faff;
	text-shadow: 0 2px 12px rgba(10, 62, 108, 0.4);
}

.hero-actions {
	margin-top: 38px;
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-clouds {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	width: 100%;
	height: clamp(180px, 34vh, 340px);
	z-index: 1;
	pointer-events: none;
}

.scroll-hint {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	color: var(--blue-dark);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 17px 34px;
	border-radius: 999px;
	border: 3px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
	transform: translateY(-3px);
}

.btn-yellow {
	background: var(--yellow);
	color: var(--navy);
	box-shadow: 0 12px 26px rgba(12, 74, 124, 0.3);
}

.btn-yellow:hover {
	background: var(--yellow-dark);
	color: var(--navy);
	box-shadow: 0 16px 30px rgba(12, 74, 124, 0.36);
}

.btn-white {
	background: #fff;
	color: var(--blue-dark);
	box-shadow: 0 12px 26px rgba(12, 74, 124, 0.25);
}

.btn-white:hover {
	color: var(--blue-accent);
}

.btn-outline {
	border-color: #fff;
	color: #fff;
	background: transparent;
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* ---------- Постер-баннер (друге фото) ---------- */

.poster {
	position: relative;
	background: linear-gradient(180deg, var(--sky-light) 0%, #d8eefc 45%, #ffffff 100%);
	padding: 90px 0 70px;
	overflow: hidden;
}

.poster-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px;
	align-items: center;
}

.poster-pill {
	display: inline-block;
	background: var(--blue-accent);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(1.2rem, 2.5vw, 1.9rem);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.25;
	padding: 18px 30px;
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.poster-cta {
	margin: 34px 0 0;
	font-family: var(--font-head);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 0.98;
	font-size: clamp(3rem, 8vw, 6.4rem);
	color: var(--blue-accent);
}

.poster-cta span {
	display: block;
	color: var(--blue-dark);
	font-size: 0.62em;
	letter-spacing: 0.12em;
	margin-top: 10px;
}

.poster-note {
	margin: 26px 0 30px;
	max-width: 460px;
	font-weight: 600;
	color: var(--navy);
}

.poster-art {
	position: relative;
	min-height: 480px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.poster-art img {
	width: min(420px, 100%);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	border: 8px solid #ffffff;
	box-shadow: 0 28px 52px rgba(16, 69, 111, 0.32);
}

.poster-clouds {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	width: 100%;
	height: 180px;
	pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
	position: relative;
	padding: 92px 0;
}

.section-white {
	background: #fff;
}

.section-sky {
	background: linear-gradient(180deg, #ffffff 0%, #eaf5fd 100%);
}

.section-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 54px;
}

.section-kicker {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--blue-accent);
	background: rgba(34, 136, 214, 0.1);
	border-radius: 999px;
	padding: 8px 18px;
	margin-bottom: 16px;
}

.section-title {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(1.8rem, 4vw, 2.9rem);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.12;
	color: var(--navy);
}

.section-desc {
	margin: 18px 0 0;
	font-weight: 500;
	color: #3d6a92;
}

/* ---------- Cards ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.card {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 26px 52px rgba(16, 69, 111, 0.22);
}

.card-media {
	height: 190px;
	background: linear-gradient(160deg, var(--sky-mid), var(--sky-deep));
	position: relative;
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: var(--yellow);
	color: var(--navy);
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 7px 14px;
	border-radius: 999px;
}

.card-body {
	padding: 26px 26px 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.card-title {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.25;
}

.card-title a {
	color: var(--navy);
}

.card-title a:hover {
	color: var(--blue-accent);
}

.card-excerpt {
	margin: 0;
	color: #4a739b;
	font-size: 0.97rem;
}

.card-more {
	margin-top: auto;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--blue-accent);
}

/* ---------- Steps ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
	counter-reset: step;
}

.step {
	position: relative;
	background: #fff;
	border-radius: var(--radius);
	padding: 74px 30px 34px;
	box-shadow: var(--shadow);
	text-align: center;
}

.step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: -32px;
	left: 50%;
	transform: translateX(-50%);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--navy);
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 28px;
	display: grid;
	place-items: center;
	box-shadow: 0 12px 24px rgba(12, 74, 124, 0.25);
	border: 5px solid #fff;
}

.step h3 {
	margin: 0 0 10px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--navy);
}

.step p {
	margin: 0;
	color: #4a739b;
	font-size: 0.97rem;
}

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 46px;
	align-items: center;
}

.about-text p {
	color: #3d6a92;
	font-weight: 500;
}

.about-features {
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.about-features li {
	position: relative;
	padding-left: 42px;
	font-weight: 700;
	color: var(--navy);
}

.about-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--blue-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/15px no-repeat;
}

.about-visual {
	position: relative;
	min-height: 360px;
	display: grid;
	place-items: center;
	padding: 44px 0;
}

.about-visual img {
	width: min(340px, 90%);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 16px 36px rgba(16, 69, 111, 0.18);
}

/* ---------- Join ---------- */

.join {
	position: relative;
	background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 60%, var(--sky-light) 100%);
	padding: 96px 0 140px;
	text-align: center;
	overflow: hidden;
}

.join h2 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(1.9rem, 4.6vw, 3.2rem);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	text-shadow: 0 6px 24px rgba(10, 62, 108, 0.35);
}

.join p {
	max-width: 620px;
	margin: 20px auto 34px;
	font-weight: 600;
	color: #f2faff;
}

.join .poster-clouds {
	height: 150px;
}

/* ---------- Blog / single ---------- */

.page-head {
	padding: 150px 0 40px;
	background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 100%);
	text-align: center;
}

.page-head h1 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(1.9rem, 4.6vw, 3.2rem);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.content-area {
	padding: 60px 0 90px;
	background: #eef7fd;
}

.post {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 38px 40px;
	margin-bottom: 34px;
}

.post-title {
	margin: 0 0 14px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(1.4rem, 3vw, 2rem);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: var(--navy);
}

.post-meta {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-accent);
	margin-bottom: 20px;
}

.post-thumbnail {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 24px;
}

.entry-content {
	color: #33566f;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--navy);
	margin-top: 1.6em;
}

.entry-content a {
	text-decoration: underline;
}

.pagination .nav-links {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	font-family: var(--font-head);
	font-weight: 800;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--blue-dark);
	box-shadow: var(--shadow);
}

.pagination .page-numbers.current {
	background: var(--blue-accent);
	color: #fff;
}

.widget {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 26px 28px;
	margin-bottom: 28px;
}

.widget-title {
	margin: 0 0 16px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--navy);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-mid) 30%, var(--blue-dark) 100%);
	padding: 150px 0 40px;
	color: #eaf6ff;
	overflow: hidden;
}

.footer-clouds {
	position: absolute;
	top: -2px;
	left: 0;
	width: 100%;
	height: 150px;
	transform: scaleY(-1);
	pointer-events: none;
}

.footer-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}

.footer-title {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	margin: 0 0 16px;
}

.site-footer .brand {
	margin-bottom: 16px;
}

.site-footer p {
	margin: 0 0 10px;
	font-size: 0.95rem;
}

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

.site-footer a:hover {
	color: var(--yellow);
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.site-footer .footer-donate {
	display: inline-block;
	margin-top: 16px;
	color: var(--navy);
}

.site-footer .footer-donate:hover {
	background: var(--yellow-dark);
	color: var(--navy);
}

.site-footer .footer-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-bottom {
	position: relative;
	z-index: 2;
	margin-top: 46px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

/* ---------- Reveal ---------- */

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.poster-grid,
	.about-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.poster-art {
		min-height: 380px;
		order: -1;
	}

	.footer-grid {
		gap: 30px;
	}
}

@media (max-width: 820px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 4%;
		right: 4%;
		background: rgba(23, 95, 159, 0.98);
		border-radius: 18px;
		box-shadow: var(--shadow);
		padding: 12px;
		display: none;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 2px;
	}

	.site-nav a {
		padding: 13px 16px;
		font-size: 14px;
	}

	.site-nav .nav-donate {
		display: block;
		margin-top: 8px;
		text-align: center;
		font-size: 14px;
		padding: 13px 16px;
	}

	.header-inner {
		position: relative;
	}

	.post {
		padding: 28px 22px;
	}

	.hero {
		padding: 130px 0 170px;
	}
}
