/*
Theme Name: FC Besa Club
Theme URI: https://fcbesa.mk/
Author: FC Besa
Description: Custom professional theme for FC Besa football club.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fcbesa-club
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #fff;
	color: #121726;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

:root {
	--fcbesa-blue: #0d2b6b;
	--fcbesa-blue-dark: #081c4a;
	--fcbesa-gold: #ddb54a;
	--fcbesa-text: #121726;
	--fcbesa-muted: #6d7488;
	--fcbesa-border: #e6e9f0;
	--fcbesa-soft: #f7f9fc;
	--fcbesa-shadow: 0 8px 28px rgba(11, 22, 48, 0.08);
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.site-main {
	flex: 1 0 auto;
	padding-top: 1.25rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--fcbesa-border);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	overflow: visible;
}

.fcbesa-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.7rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	overflow: visible;
}

.fcbesa-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.fcbesa-brand-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: var(--fcbesa-soft);
	border: 1px solid var(--fcbesa-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fcbesa-brand-logo .fcbesa-inline-logo,
.fcbesa-brand-logo .custom-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fcbesa-logo-fallback {
	font-weight: 700;
	color: var(--fcbesa-blue);
}

.fcbesa-brand-title {
	font-size: 1.35rem;
	line-height: 1.1;
	font-weight: 800;
	color: var(--fcbesa-blue-dark);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.fcbesa-brand-tagline {
	font-size: 0.8rem;
	color: var(--fcbesa-muted);
}

.fcbesa-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
	overflow: visible;
}

.fcbesa-nav-inner {
	display: block;
}

.fcbesa-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	text-transform: uppercase;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.fcbesa-menu li {
	position: relative;
}

.fcbesa-menu a {
	padding: 0.35rem 0;
	color: var(--fcbesa-blue-dark);
	position: relative;
}

.fcbesa-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.45rem;
	height: 2px;
	background: var(--fcbesa-gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.fcbesa-menu a:hover::after,
.fcbesa-menu .current-menu-item > a::after,
.fcbesa-menu .current_page_item > a::after {
	transform: scaleX(1);
}

.fcbesa-menu .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	min-width: 220px;
	list-style: none;
	padding: 0.5rem;
	background: #fff;
	border: 1px solid var(--fcbesa-border);
	border-radius: 10px;
	box-shadow: var(--fcbesa-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 1002;
}

.fcbesa-menu .sub-menu li {
	width: 100%;
}

.fcbesa-menu .sub-menu a {
	display: block;
	padding: 0.45rem 0.4rem;
	font-size: 0.82rem;
	text-transform: none;
	font-weight: 600;
}

.fcbesa-menu .menu-item-has-children:hover > .sub-menu,
.fcbesa-menu .menu-item-has-children:focus-within > .sub-menu,
.fcbesa-menu .menu-item-has-children.submenu-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.fcbesa-menu > .menu-item-has-children > a {
	padding-right: 0.15rem;
}

.fcbesa-menu > .menu-item-has-children > a::before {
	content: '▾';
	font-size: 0.65rem;
	margin-left: 0.35rem;
	vertical-align: middle;
	color: var(--fcbesa-muted);
}

.fcbesa-menu > .menu-item-has-children:hover > a::before,
.fcbesa-menu > .menu-item-has-children.current-menu-item > a::before,
.fcbesa-menu > .menu-item-has-children.current-menu-ancestor > a::before {
	color: var(--fcbesa-blue-dark);
}

.fcbesa-submenu-toggle {
	display: none;
	margin-left: 0.35rem;
	width: 28px;
	height: 28px;
	border: 1px solid var(--fcbesa-border);
	border-radius: 6px;
	background: #fff;
	color: var(--fcbesa-blue-dark);
	font-size: 0.8rem;
	cursor: pointer;
}

.fcbesa-mobile-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--fcbesa-border);
	border-radius: 8px;
	background: #fff;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-direction: column;
}

.fcbesa-mobile-toggle span:not(.screen-reader-text) {
	width: 18px;
	height: 2px;
	background: var(--fcbesa-blue-dark);
	display: block;
}

.fcbesa-section {
	max-width: 1200px;
	margin: 0 auto 2rem;
	padding: 0 1rem;
}

.fcbesa-hero {
	max-width: 1200px;
	margin: 0 auto 1.75rem;
	padding: 0 1rem;
}

.fcbesa-hero-inner {
	position: relative;
	min-height: 460px;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(130deg, #0f2f78, #0b255f);
	box-shadow: var(--fcbesa-shadow);
}

.fcbesa-hero-media {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	opacity: 0.4;
}

.fcbesa-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(7, 20, 52, 0.86) 0%, rgba(7, 20, 52, 0.52) 55%, rgba(7, 20, 52, 0.2) 100%);
}

.fcbesa-hero-content {
	position: relative;
	z-index: 2;
	padding: 3.2rem;
	max-width: 700px;
	color: #fff;
}

.fcbesa-hero-kicker {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #ffe29a;
	margin-bottom: 0.65rem;
}

.fcbesa-hero-title {
	font-size: 2.4rem;
	line-height: 1.15;
	margin-bottom: 0.95rem;
}

.fcbesa-hero-text {
	font-size: 1rem;
	margin-bottom: 1.2rem;
	color: rgba(255, 255, 255, 0.95);
}

.fcbesa-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.fcbesa-btn-primary,
.fcbesa-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.82rem;
	border-radius: 7px;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.fcbesa-btn-primary {
	background: var(--fcbesa-gold);
	color: #111;
	border-color: var(--fcbesa-gold);
}

.fcbesa-btn-primary:hover {
	background: #f0c95f;
}

.fcbesa-btn-secondary {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.08);
}

.fcbesa-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.18);
}

.fcbesa-section-header {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
	margin-bottom: 1rem;
}

.fcbesa-section-title {
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	color: var(--fcbesa-blue-dark);
}

.fcbesa-section-link,
.fcbesa-inline-link {
	font-size: 0.88rem;
	color: var(--fcbesa-blue);
	font-weight: 600;
}

.fcbesa-about-card,
.fcbesa-panel,
.fcbesa-card,
.fcbesa-page,
.fcbesa-single {
	background: #fff;
	border: 1px solid var(--fcbesa-border);
	border-radius: 12px;
	box-shadow: var(--fcbesa-shadow);
}

.fcbesa-about-card {
	padding: 1.4rem;
}

.fcbesa-news-grid,
.fcbesa-gallery-grid,
.fcbesa-team-preview,
.fcbesa-team-grid,
.fcbesa-content-grid {
	display: grid;
	gap: 1rem;
}

.fcbesa-news-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fcbesa-content-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcbesa-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.fcbesa-card-thumb {
	height: 210px;
	background: var(--fcbesa-soft);
	display: block;
}

.fcbesa-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fcbesa-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fcbesa-muted);
	font-size: 0.88rem;
}

.fcbesa-card-body {
	padding: 1rem;
}

.fcbesa-card-title {
	font-size: 1.02rem;
	line-height: 1.35;
	margin-bottom: 0.45rem;
}

.fcbesa-card-excerpt {
	font-size: 0.92rem;
	color: #3e465d;
	margin-bottom: 0.55rem;
}

.fcbesa-card-meta {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fcbesa-muted);
}

.fcbesa-team-preview {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fcbesa-player-card {
	border: 1px solid var(--fcbesa-border);
	border-radius: 10px;
	padding: 0.8rem;
	background: #fff;
	display: grid;
	gap: 0.7rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.fcbesa-player-thumb {
	height: 170px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--fcbesa-soft);
}

.fcbesa-player-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fcbesa-player-body h3,
.fcbesa-player-card h3 {
	font-size: 0.95rem;
	color: var(--fcbesa-blue-dark);
}

.fcbesa-player-body p,
.fcbesa-player-card p,
.fcbesa-panel p {
	font-size: 0.88rem;
	color: #40485f;
}

.fcbesa-team-group {
	margin-bottom: 1.5rem;
}

.fcbesa-team-group h2,
.fcbesa-panel h2,
.fcbesa-panel h3,
.fcbesa-related h2 {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fcbesa-blue-dark);
	margin-bottom: 0.7rem;
}

.fcbesa-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.fcbesa-panel {
	padding: 1rem;
}

.fcbesa-panel-spaced {
	margin-top: 1rem;
}

.fcbesa-match-list {
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.fcbesa-match-list li {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--fcbesa-border);
	font-size: 0.9rem;
}

.fcbesa-gallery-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fcbesa-gallery-item {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--fcbesa-border);
	background: var(--fcbesa-soft);
	height: 200px;
}

.fcbesa-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.fcbesa-gallery-item:hover img {
	transform: scale(1.04);
}

.fcbesa-page,
.fcbesa-single {
	padding: 1.3rem;
}

.fcbesa-page-title {
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	line-height: 1.15;
	color: var(--fcbesa-blue-dark);
	margin-bottom: 0.85rem;
}

.fcbesa-page-content {
	color: #2f3750;
	font-size: 0.98rem;
}

.fcbesa-page-content p,
.fcbesa-page-content ul,
.fcbesa-page-content ol {
	margin-bottom: 0.95rem;
}

.fcbesa-intro {
	font-size: 0.95rem;
	color: #3b4258;
	margin-bottom: 1rem;
}

.fcbesa-single-thumb {
	margin-bottom: 1rem;
	border-radius: 12px;
	overflow: hidden;
}

.fcbesa-share {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--fcbesa-border);
	display: flex;
	gap: 0.8rem;
	align-items: center;
	flex-wrap: wrap;
	font-size: 0.88rem;
}

.fcbesa-share a {
	color: var(--fcbesa-blue);
	font-weight: 600;
}

.fcbesa-related {
	margin-top: 1.4rem;
}

.fcbesa-breadcrumbs {
	margin-bottom: 0.9rem;
	font-size: 0.8rem;
	color: var(--fcbesa-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.fcbesa-breadcrumbs a {
	color: var(--fcbesa-blue);
}

.fcbesa-contact-placeholder {
	padding: 1rem;
	border: 1px dashed #c5ccdd;
	border-radius: 8px;
	color: var(--fcbesa-muted);
	font-size: 0.9rem;
	margin-top: 0.6rem;
}

.fcbesa-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

.site-footer {
	border-top: 1px solid var(--fcbesa-border);
	background: #fff;
	margin-top: 2rem;
}

.fcbesa-footer-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.fcbesa-footer-col h3 {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fcbesa-blue-dark);
	margin-bottom: 0.55rem;
}

.fcbesa-footer-col p,
.fcbesa-footer-menu a {
	font-size: 0.86rem;
	color: var(--fcbesa-muted);
}

.fcbesa-footer-menu {
	list-style: none;
	display: grid;
	gap: 0.25rem;
}

.fcbesa-footer-bottom {
	border-top: 1px solid var(--fcbesa-border);
	padding-top: 0.8rem;
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	font-size: 0.78rem;
	color: var(--fcbesa-muted);
}

.fcbesa-404 {
	text-align: center;
	padding: 3rem 1rem;
}

.fcbesa-404 h1 {
	font-size: 3rem;
	color: var(--fcbesa-blue-dark);
	margin-bottom: 0.5rem;
}

.search-form {
	display: flex;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.search-form input[type='search'] {
	width: 100%;
	padding: 0.7rem;
	border: 1px solid var(--fcbesa-border);
	border-radius: 8px;
}

.search-form input[type='submit'] {
	padding: 0.7rem 1rem;
	border: 1px solid var(--fcbesa-blue);
	background: var(--fcbesa-blue);
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 1000px) {
	.fcbesa-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fcbesa-team-preview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fcbesa-gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fcbesa-content-grid,
	.fcbesa-columns,
	.fcbesa-footer-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.fcbesa-mobile-toggle {
		display: inline-flex;
	}

	.fcbesa-nav {
		position: relative;
	}

	.fcbesa-nav-inner {
		display: none;
		position: absolute;
		top: calc(100% + 0.6rem);
		right: 0;
		left: auto;
		width: min(320px, 85vw);
		background: #fff;
		border: 1px solid var(--fcbesa-border);
		border-radius: 10px;
		box-shadow: var(--fcbesa-shadow);
		padding: 0.8rem;
	}

	.fcbesa-nav-inner.is-open {
		display: block;
	}

	.fcbesa-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
	}

	.fcbesa-menu .menu-item-has-children {
		width: 100%;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}

	.fcbesa-menu > .menu-item-has-children > a::before {
		display: none;
	}

	.fcbesa-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.fcbesa-menu .sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		margin-top: 0.4rem;
		padding: 0.35rem;
		display: none;
		pointer-events: auto;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
	}

	.fcbesa-menu .menu-item-has-children.submenu-open > .sub-menu {
		display: block;
	}

	.fcbesa-hero-inner {
		min-height: 370px;
	}

	.fcbesa-hero-content {
		padding: 2rem 1.4rem;
	}

	.fcbesa-hero-title {
		font-size: 1.7rem;
	}

	.fcbesa-news-grid,
	.fcbesa-gallery-grid,
	.fcbesa-team-preview,
	.fcbesa-team-grid {
		grid-template-columns: 1fr;
	}

	.fcbesa-footer-bottom {
		flex-direction: column;
	}
}
