/* ==========================================================================
   AC TJ Jičín — Main Stylesheet
   Sections:
     1. Design Tokens
     2. Reset & Base
     3. Typography
     4. Layout
     5. Buttons
     6. Skip Link & Accessibility
     7. Site Header & Navigation
     8. Hero Section
     9. Sections & Page Structure
    10. Post Cards Grid
    11. About / Stats
    12. Training CTA Banner
    13. Contact Section
   13b. Sponsors Strip
    14. Footer
    15. Single Post
    16. Archive / Blog Index
    17. 404 Page
    18. Pagination
    19. Responsive
   20. Photo Gallery
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
	/* Brand colours — navy + track red, matching club logo */
	--c-red:        #e04530;  /* athletics track red — logo primary accent */
	--c-red-dark:   #c23520;
	--c-red-light:  #e85c45;
	--c-navy:       #1b2a6b;  /* dark navy — logo structural colour */
	--c-navy-light: #243580;
	--c-accent:     #f0c030;  /* gold, from Jičín coat of arms */

	/* Neutrals */
	--c-white:      #ffffff;
	--c-light:      #f5f7fa;
	--c-border:     #e2e6ea;
	--c-muted:      #6c757d;
	--c-text:       #1a1a2e;
	--c-text-soft:  #3d4451;

	/* Typography */
	--font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
	             Oxygen, Ubuntu, Cantarell, sans-serif;
	--font-size-base: 1rem;       /* 16px */
	--line-height:    1.65;

	/* Spacing scale */
	--space-1:  0.25rem;
	--space-2:  0.5rem;
	--space-3:  0.75rem;
	--space-4:  1rem;
	--space-6:  1.5rem;
	--space-8:  2rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-24: 6rem;

	/* Layout */
	--max-width:  1200px;
	--gap:        clamp(1rem, 4vw, 2rem);
	--radius:     6px;
	--radius-lg:  12px;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
	--shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
	--shadow-lg: 0 10px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);

	/* Transitions */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--duration: 200ms;

	/* Header height (used for scroll offsets) */
	--header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: var(--font-size-base);
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-base);
	color: var(--c-text);
	background: var(--c-white);
	line-height: var(--line-height);
	overflow-x: hidden;
}

img, video {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	list-style: none;
}

a {
	color: var(--c-red);
	text-decoration: none;
	transition: color var(--duration) var(--ease);
}

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

button {
	cursor: pointer;
	font-family: var(--font-base);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-base);
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--gap);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 0.7em 1.75em;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	border: 2px solid transparent;
	transition: background var(--duration) var(--ease),
	            color var(--duration) var(--ease),
	            border-color var(--duration) var(--ease),
	            box-shadow var(--duration) var(--ease),
	            transform var(--duration) var(--ease);
	text-decoration: none;
	white-space: nowrap;
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn--primary {
	background: var(--c-red);
	color: var(--c-white);
	border-color: var(--c-red);
}
.btn--primary:hover {
	background: var(--c-red-dark);
	border-color: var(--c-red-dark);
	color: var(--c-white);
}

.btn--outline {
	background: transparent;
	color: var(--c-white);
	border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
	background: rgba(255,255,255,0.12);
	border-color: var(--c-white);
	color: var(--c-white);
}

.btn--secondary {
	background: var(--c-navy);
	color: var(--c-white);
	border-color: var(--c-navy);
}
.btn--secondary:hover {
	background: var(--c-navy-light);
	border-color: var(--c-navy-light);
	color: var(--c-white);
}

.btn--ghost {
	background: transparent;
	color: var(--c-red);
	border-color: var(--c-red);
}
.btn--ghost:hover {
	background: var(--c-red);
	color: var(--c-white);
}

/* --------------------------------------------------------------------------
   6. Skip Link & Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
	position: absolute;
	top: -100%;
	left: var(--gap);
	z-index: 9999;
	padding: var(--space-3) var(--space-6);
	background: var(--c-red);
	color: var(--c-white);
	font-weight: 600;
	border-radius: 0 0 var(--radius) var(--radius);
	transition: top var(--duration);
}

.skip-link:focus {
	top: 0;
	color: var(--c-white);
}

/* --------------------------------------------------------------------------
   7. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-white);
	height: var(--header-h);
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--c-text);
	transition: box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.site-header .container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
}

/* Logo + wordmark */
.site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.site-branding img {
	height: 36px;
	width: auto;
	display: block;
}

.custom-logo-link {
	line-height: 0;
	flex-shrink: 0;
	transition: opacity var(--duration) var(--ease);
}

.custom-logo-link:hover {
	opacity: 0.75;
}

/* Text wordmark shown alongside the logo image */
.site-wordmark {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	gap: 2px;
}

.site-wordmark__name {
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--c-text);
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.site-wordmark__sub {
	font-size: 0.625rem;
	font-weight: 500;
	color: var(--c-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-wordmark:hover .site-wordmark__name {
	color: var(--c-red);
}

.site-logo-text {
	color: var(--c-text);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-decoration: none;
}

.site-logo-text:hover {
	color: var(--c-red);
}

.site-logo-sub {
	display: block;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

/* Primary Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: var(--space-1);
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: var(--space-2) var(--space-3);
	color: var(--c-text-soft);
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: var(--radius);
	transition: color var(--duration) var(--ease),
	            background var(--duration) var(--ease);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
	color: var(--c-text);
	background: rgba(0,0,0,0.06);
	text-decoration: none;
}

.main-navigation .current-menu-item > a {
	color: var(--c-red);
}

/* CTA in nav */
.main-navigation .menu-item--cta > a {
	background: var(--c-red);
	color: var(--c-white);
	padding: var(--space-2) var(--space-4);
	margin-left: var(--space-2);
}

.main-navigation .menu-item--cta > a:hover {
	background: var(--c-red-dark);
}

/* Hamburger */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	border-radius: var(--radius);
	padding: var(--space-2);
	transition: background var(--duration);
}

.menu-toggle:hover {
	background: rgba(0,0,0,0.06);
}

.menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--c-text);
	border-radius: 2px;
	transition: transform var(--duration) var(--ease),
	            opacity var(--duration) var(--ease);
	transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: clamp(340px, 50vh, 520px);
	display: flex;
	align-items: center;
	background: var(--c-navy);
	overflow: hidden;
}

/* When a background image is set via custom CSS or Customizer */

/* When a background image is set via custom CSS or Customizer */
.hero--has-image {
	background-blend-mode: multiply;
	background-size: cover;
	background-position: center;
}

/* Colour-block accent — red stripe immediately below the white header */
.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--c-red);
}

.hero__inner {
	width: 100%; /* flex child must be explicit — otherwise shrinks to content */
	position: relative;
	z-index: 1;
	padding: var(--space-12) 2em;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--space-8);
	align-items: center;
}

/* Decorative typographic year — right side of hero */
.hero__deco {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	pointer-events: none;
	user-select: none;
}

.hero__year {
	font-size: clamp(5rem, 9vw, 7.5rem);
	font-weight: 800;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255,255,255,0.2);
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.hero__content {
	max-width: 680px;
}

.hero__eyebrow {
	display: inline-block;
	margin-bottom: var(--space-4);
	padding: var(--space-1) var(--space-4);
	background: rgba(224, 69, 48, 0.25);
	border: 1px solid rgba(224, 69, 48, 0.5);
	border-radius: 100px;
	color: rgba(255,255,255,0.85);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero__title {
	color: var(--c-white);
	font-size: clamp(2.5rem, 7vw, 5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: var(--space-6);
}

.hero__title span {
	color: var(--c-accent);
}

.hero__subtitle {
	color: rgba(255,255,255,0.75);
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.5;
	margin-bottom: var(--space-8);
	max-width: 520px;
}

.hero__actions {
	display: flex;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.hero__social {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-6);
}

.hero__social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: var(--radius);
	color: rgba(255,255,255,0.65);
	transition: border-color var(--duration) var(--ease),
	            color var(--duration) var(--ease),
	            background var(--duration) var(--ease);
}

.hero__social__link:hover {
	border-color: var(--c-red);
	background: var(--c-red);
	color: var(--c-white);
}

.hero__social__link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* --------------------------------------------------------------------------
   9. Sections & Page Structure
   -------------------------------------------------------------------------- */
.section {
	padding: var(--space-16) 0;
}

.section--alt {
	background: var(--c-light);
}

.section--dark {
	background: var(--c-navy);
	color: var(--c-white);
}

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-8);
	flex-wrap: wrap;
}

.section-title {
	color: var(--c-text);
	position: relative;
	padding-bottom: var(--space-4);
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 3px;
	background: var(--c-red);
	border-radius: 2px;
}

.section--dark .section-title {
	color: var(--c-white);
}

.section--dark .section-title::after {
	background: var(--c-accent);
}

.section-link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--c-red);
	white-space: nowrap;
	flex-shrink: 0;
}

.section-link:hover {
	color: var(--c-red-dark);
}

/* Page header (archive, single, etc.) */
.page-header-banner {
	background: var(--c-navy);
	color: var(--c-white);
	padding: var(--space-12) 0;
}

.page-header-banner .page-title {
	color: var(--c-white);
	margin-bottom: var(--space-2);
}

.page-header-banner .archive-description {
	color: rgba(255,255,255,0.7);
	font-size: 1.0625rem;
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Post Cards Grid
   -------------------------------------------------------------------------- */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-6);
}

.post-card {
	background: var(--c-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform var(--duration) var(--ease),
	            box-shadow var(--duration) var(--ease);
	border: 1px solid var(--c-border);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.post-card__thumbnail {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--c-light);
}

.post-card__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--ease);
}

.post-card:hover .post-card__thumbnail img {
	transform: scale(1.04);
}

.post-card__thumbnail-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--c-navy), var(--c-navy-light));
}

.post-card__thumbnail-placeholder svg {
	width: 48px;
	height: 48px;
	opacity: 0.25;
}

.post-card__category {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	padding: var(--space-1) var(--space-3);
	background: var(--c-red);
	color: var(--c-white);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 100px;
}

.post-card__body {
	padding: var(--space-6);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.post-card__date {
	font-size: 0.8125rem;
	color: var(--c-muted);
}

.post-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: var(--space-3);
	flex: 1;
}

.post-card__title a {
	color: var(--c-text);
}

.post-card__title a:hover {
	color: var(--c-red);
}

.post-card__excerpt {
	font-size: 0.9rem;
	color: var(--c-muted);
	line-height: 1.6;
	margin-bottom: var(--space-4);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__footer {
	margin-top: auto;
	padding-top: var(--space-4);
	border-top: 1px solid var(--c-border);
}

.read-more {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--c-red);
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
}

.read-more::after {
	content: '→';
	transition: transform var(--duration) var(--ease);
}

.read-more:hover::after {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   11. About / Stats
   -------------------------------------------------------------------------- */
.about-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-16);
	align-items: center;
}

.about-text .section-title {
	margin-bottom: var(--space-6);
}

.about-text p {
	color: var(--c-text-soft);
	font-size: 1.0625rem;
	line-height: 1.75;
	margin-bottom: var(--space-4);
}

.about-text .btn {
	margin-top: var(--space-4);
}

.stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}

.stat-card {
	background: var(--c-white);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow-md);
	text-align: center;
	border-top: 3px solid var(--c-red);
}

.stat-card__number {
	display: block;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--c-red);
	line-height: 1;
	margin-bottom: var(--space-2);
}

.stat-card__label {
	display: block;
	font-size: 0.875rem;
	color: var(--c-muted);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. Training CTA Banner
   -------------------------------------------------------------------------- */
.training-cta {
	background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
	border-radius: var(--radius-lg);
	padding: var(--space-12) var(--space-12);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
	flex-wrap: wrap;
	position: relative;
	overflow: hidden;
}

.training-cta::before {
	content: '';
	position: absolute;
	right: -40px;
	top: -40px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
}

.training-cta::after {
	content: '';
	position: absolute;
	right: 60px;
	bottom: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
}

.training-cta__text {
	position: relative;
	z-index: 1;
}

.training-cta__text h2 {
	color: var(--c-white);
	margin-bottom: var(--space-2);
}

.training-cta__text p {
	color: rgba(255,255,255,0.8);
	font-size: 1.0625rem;
	margin-bottom: 0;
}

.training-cta__action {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.training-cta .btn--outline {
	border-color: rgba(255,255,255,0.7);
	font-size: 1rem;
	padding: 0.8em 2em;
}

/* --------------------------------------------------------------------------
   13. Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-12);
	align-items: start;
}

.contact-info .section-title {
	margin-bottom: var(--space-6);
}

.contact-item {
	display: flex;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
	align-items: flex-start;
}

.contact-item__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: rgba(224, 69, 48, 0.10);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-red);
}

.contact-item__icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

.contact-item__body {
	font-size: 0.9375rem;
	color: var(--c-text-soft);
	line-height: 1.5;
}

.contact-item__body strong {
	display: block;
	color: var(--c-text);
	font-weight: 600;
	margin-bottom: var(--space-1);
}

.contact-map {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--c-border);
}

.contact-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: none;
}

/* --------------------------------------------------------------------------
   13b. Sponsors Strip
   -------------------------------------------------------------------------- */
.section--sponsors {
	padding: var(--space-12) 0;
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.sponsors__title {
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
	margin-bottom: var(--space-8);
}

/* Hide the section-title underline decoration for this heading */
.sponsors__title::after {
	display: none;
}

.sponsors-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-8) var(--space-12);
}

/* Each sponsor widget wrapper */
.sponsor-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Logo image inside the widget */
.sponsor-item img {
	max-height: 56px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	/* Start greyscale; animate to full colour on hover */
	filter: grayscale(100%) opacity(0.55);
	transition: filter 300ms var(--ease), transform 200ms var(--ease);
}

.sponsor-item a {
	display: flex;
	align-items: center;
}

.sponsor-item a:hover img,
.sponsor-item img:hover {
	filter: grayscale(0%) opacity(1);
	transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--c-navy);
	color: rgba(255,255,255,0.75);
	padding-top: var(--space-16);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--space-12);
	padding-bottom: var(--space-12);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand__logo {
	color: var(--c-white);
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: var(--space-4);
	display: block;
}

.footer-brand__logo:hover {
	color: var(--c-white);
}

.footer-brand p {
	font-size: 0.9rem;
	line-height: 1.7;
	margin-bottom: var(--space-6);
	color: rgba(255,255,255,0.6);
}

.footer-brand__email a {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
}

.footer-brand__email a:hover {
	color: var(--c-accent);
}

.footer-col__title {
	color: var(--c-white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-5);
}

.footer-nav li {
	margin-bottom: var(--space-2);
}

.footer-nav a {
	color: rgba(255,255,255,0.65);
	font-size: 0.9rem;
	transition: color var(--duration);
}

.footer-nav a:hover {
	color: var(--c-white);
}

.footer-address {
	font-size: 0.9rem;
	line-height: 1.8;
	color: rgba(255,255,255,0.65);
	font-style: normal;
}

.footer-address a {
	color: rgba(255,255,255,0.65);
}

.footer-address a:hover {
	color: var(--c-white);
}

.footer-social {
	display: flex;
	gap: var(--space-3);
	margin-top: var(--space-5);
}

.footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.7);
	transition: background var(--duration) var(--ease),
	            color var(--duration) var(--ease);
}

.footer-social__link:hover {
	background: var(--c-red);
	color: var(--c-white);
}

.footer-social__link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.footer-bottom {
	padding: var(--space-5) 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.4);
}

.footer-bottom a {
	color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
	color: rgba(255,255,255,0.85);
}

/* --------------------------------------------------------------------------
   15. Static Page
   -------------------------------------------------------------------------- */
.page .site-main {
	padding-top: 0;
}

.page-hero {
	background: var(--c-light);
	border-bottom: 1px solid var(--c-border);
	padding: var(--space-8) 0 var(--space-6);
}

.page-hero__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--gap);
}

.page-hero__title {
	color: var(--c-navy);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	padding-left: var(--space-4);
	border-left: 3px solid var(--c-red);
	margin: 0;
}

.page-content {
	max-width: 720px;
	padding: var(--space-12) 0;
}

/* --------------------------------------------------------------------------
   16. Single Post
   -------------------------------------------------------------------------- */
.single .site-main {
	padding-top: 0;
}

.post-hero {
	background: var(--c-navy);
	padding: var(--space-12) 0;
}

.post-hero__meta {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
	flex-wrap: wrap;
}

.post-hero__category {
	padding: var(--space-1) var(--space-3);
	background: var(--c-red);
	color: var(--c-white);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 100px;
}

.post-hero__date {
	color: rgba(255,255,255,0.6);
	font-size: 0.875rem;
}

.post-hero__title {
	color: var(--c-white);
	max-width: 800px;
}

.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 800px;
	margin: 0 auto;
	padding: var(--space-12) var(--gap);
}

.post-thumbnail {
	margin-bottom: var(--space-8);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--c-text-soft);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--c-text);
	margin-top: var(--space-8);
	margin-bottom: var(--space-4);
}

.entry-content p {
	margin-bottom: var(--space-5);
}

.entry-content ul,
.entry-content ol {
	list-style: disc;
	margin-left: var(--space-6);
	margin-bottom: var(--space-5);
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: var(--space-2);
}

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

.entry-content img {
	border-radius: var(--radius);
	margin: var(--space-6) 0;
}

.entry-content blockquote {
	border-left: 4px solid var(--c-red);
	padding: var(--space-4) var(--space-6);
	margin: var(--space-6) 0;
	background: var(--c-light);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: italic;
	color: var(--c-text);
}

/* Post navigation */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
	margin-top: var(--space-12);
	padding-top: var(--space-8);
	border-top: 1px solid var(--c-border);
}

.nav-previous,
.nav-next {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.nav-next {
	text-align: right;
	align-items: flex-end;
}

.nav-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.nav-post-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--c-text);
}

.nav-post-title:hover {
	color: var(--c-red);
}

/* --------------------------------------------------------------------------
   16. Archive / Blog Index
   -------------------------------------------------------------------------- */
.archive-intro {
	background: var(--c-navy);
	color: var(--c-white);
	padding: var(--space-12) 0;
}

.archive-intro .page-title {
	color: var(--c-white);
}

.archive-intro .archive-description {
	color: rgba(255,255,255,0.7);
	font-size: 1.0625rem;
	margin-top: var(--space-2);
}

.posts-index {
	padding: var(--space-12) 0;
}

/* --------------------------------------------------------------------------
   17. 404 Page
   -------------------------------------------------------------------------- */
.error-404 {
	padding: var(--space-24) 0;
	text-align: center;
}

.error-404__code {
	font-size: clamp(5rem, 15vw, 10rem);
	font-weight: 800;
	color: var(--c-border);
	line-height: 1;
	margin-bottom: var(--space-4);
}

.error-404 .page-title {
	margin-bottom: var(--space-4);
}

.error-404 p {
	color: var(--c-muted);
	font-size: 1.0625rem;
	max-width: 400px;
	margin: 0 auto var(--space-8);
}

/* --------------------------------------------------------------------------
   18. Pagination
   -------------------------------------------------------------------------- */
.posts-pagination {
	margin-top: var(--space-12);
	display: flex;
	justify-content: center;
}

.posts-pagination .nav-links {
	display: flex;
	gap: var(--space-2);
	align-items: center;
	flex-wrap: wrap;
}

.posts-pagination a,
.posts-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--space-3);
	border-radius: var(--radius);
	font-size: 0.9rem;
	font-weight: 500;
	border: 1px solid var(--c-border);
	color: var(--c-text);
	transition: background var(--duration), color var(--duration), border-color var(--duration);
}

.posts-pagination a:hover {
	background: var(--c-red);
	color: var(--c-white);
	border-color: var(--c-red);
}

.posts-pagination .current {
	background: var(--c-red);
	color: var(--c-white);
	border-color: var(--c-red);
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-layout {
		grid-template-columns: 1fr;
		gap: var(--space-12);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
	:root {
		--space-16: 3rem;
		--space-24: 4rem;
	}

	/* Header */
	.menu-toggle {
		display: flex;
	}

	.site-header .container {
		flex-wrap: wrap;
	}

	.main-navigation {
		width: 100%;
		order: 3;
		overflow: hidden;
		max-height: 0;
		transition: max-height 300ms var(--ease);
	}

	.main-navigation.is-open {
		max-height: 400px;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		padding: var(--space-2) 0 var(--space-4);
		gap: 0;
	}

	.main-navigation a {
		padding: var(--space-3) var(--space-2);
		border-radius: 0;
		font-size: 1rem;
	}

	/* Hero */
	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__deco {
		display: none;
	}

	.hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}

	/* Posts grid */
	.posts-grid {
		grid-template-columns: 1fr;
	}

	/* Stats */
	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* Training CTA */
	.training-cta {
		padding: var(--space-8);
		flex-direction: column;
		align-items: flex-start;
	}

	.training-cta .btn {
		width: 100%;
		justify-content: center;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: var(--space-8);
	}

	.footer-brand {
		grid-column: auto;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	/* Post nav */
	.post-navigation {
		grid-template-columns: 1fr;
	}
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------------------
   20. Photo Gallery (Gutenberg gallery block + GLightbox)
   -------------------------------------------------------------------------- */

/* Clip zoom transform and signal clickability */
.wp-block-gallery .wp-block-image a {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	cursor: zoom-in;
}

/* Uniform thumbnail height; object-fit keeps photos well-cropped */
.wp-block-gallery .wp-block-image img {
	height: 200px;
	object-fit: cover;
	border-radius: var(--radius);
	transition: opacity var(--duration) var(--ease),
	            transform 300ms var(--ease);
}

.wp-block-gallery .wp-block-image a:hover img {
	opacity: 0.85;
	transform: scale(1.04);
}

/* Gallery-level caption */
.wp-block-gallery > figcaption {
	font-size: 0.8125rem;
	color: var(--c-muted);
	text-align: center;
	margin-top: var(--space-2);
}

@media (max-width: 480px) {
	.wp-block-gallery .wp-block-image img {
		height: 150px;
	}
}
