/* History War Museum — new homepage (bilingual) */
:root {
	--bg-deep: #0d1117;
	--bg-card: #161b22;
	--bg-elevated: #1c2333;
	--text: #e6edf3;
	--text-muted: #8b949e;
	--accent: #e3b505;
	--accent-dim: #b8920a;
	--border: rgba(230, 237, 243, 0.12);
	--radius: 12px;
	--shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	--font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--max: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg-deep);
	color: var(--text);
	line-height: 1.6;
	font-size: 1.05rem;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: #f5cc33;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--accent);
	color: var(--bg-deep);
	font-weight: 600;
	border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
	left: 0;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(13, 17, 23, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.logo-link img {
	height: 44px;
	width: auto;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	color: var(--text);
	cursor: pointer;
}

.nav-toggle .icon-close {
	display: none;
}

body.nav-open .nav-toggle .icon-open {
	display: none;
}

body.nav-open .nav-toggle .icon-close {
	display: block;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
}

.site-nav > a,
.site-nav .nav-sub a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.35rem 0;
}

.site-nav > a:hover,
.site-nav .nav-sub a:hover {
	color: var(--accent);
}

.nav-group {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.nav-group > span {
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

.nav-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.lang-switch {
	display: flex;
	gap: 0.35rem;
	margin-left: 0.5rem;
	padding-left: 1rem;
	border-left: 1px solid var(--border);
}

.lang-btn {
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-btn:hover {
	color: var(--text);
	border-color: var(--text-muted);
}

.lang-btn[aria-pressed="true"] {
	background: var(--accent);
	color: var(--bg-deep);
	border-color: var(--accent);
}

/* WP theme (assets/site.css) styles every `button`; keep our header controls readable */
.site-header .lang-switch .lang-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.4rem 0.75rem;
	line-height: 1;
	white-space: nowrap;
	border-width: 1px;
	border-style: solid;
	background-color: transparent !important;
	color: rgba(230, 237, 243, 0.9) !important;
	border-color: var(--border) !important;
}

.site-header .lang-switch .lang-btn:hover {
	color: var(--text) !important;
}

.site-header .lang-switch .lang-btn[aria-pressed="true"] {
	background-color: var(--accent) !important;
	color: #12151c !important;
	border-color: var(--accent) !important;
}

.site-header .lang-switch .lang-btn[aria-pressed="true"]:hover {
	color: #12151c !important;
}

.site-header .nav-toggle {
	border-width: 1px;
	border-style: solid;
	background-color: var(--bg-card) !important;
	color: var(--text) !important;
}

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

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 1.25rem 1.5rem;
		background: rgba(13, 17, 23, 0.98);
		border-bottom: 1px solid var(--border);
		gap: 1rem;
	}

	body.nav-open .site-nav {
		display: flex;
	}

	.nav-sub {
		flex-direction: column;
		gap: 0.35rem;
		padding-left: 0.75rem;
		border-left: 2px solid var(--accent);
	}

	.lang-switch {
		margin-left: 0;
		padding-left: 0;
		border-left: none;
		padding-top: 0.5rem;
		border-top: 1px solid var(--border);
	}
}

/* Hero */
.hero {
	position: relative;
	min-height: min(88vh, 820px);
	display: flex;
	align-items: flex-end;
	padding: 6rem 1.25rem 4rem;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(13, 17, 23, 0.5) 0%, rgba(13, 17, 23, 0.85) 55%, var(--bg-deep) 100%),
		url("/wp-content/uploads/2018/12/tsigantes_slider_web.jpg") center / cover no-repeat;
	z-index: 0;
}

.hero-inner {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	margin: 0 auto;
	width: 100%;
}

.hero-kicker {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.hero h1 {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.hero-sub {
	max-width: 38rem;
	font-size: 1.1rem;
	color: rgba(230, 237, 243, 0.88);
	margin-bottom: 2rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--radius);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s, box-shadow 0.12s;
}

.btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary {
	background: var(--accent);
	color: var(--bg-deep);
	box-shadow: 0 4px 20px rgba(227, 181, 5, 0.35);
}

.btn-primary:hover {
	background: #f5cc33;
	color: var(--bg-deep);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--text);
}

/* Sections */
section {
	padding: 4.5rem 1.25rem;
}

.section-inner {
	max-width: var(--max);
	margin: 0 auto;
}

.section-kicker {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

section h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}

.lead {
	font-size: 1.15rem;
	color: var(--text-muted);
	max-width: 42rem;
	margin-bottom: 1rem;
}

.prose {
	max-width: 42rem;
	color: var(--text-muted);
}

.prose p {
	margin: 0 0 1rem;
}

.bg-alt {
	background: var(--bg-elevated);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

/* Cards */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-top: 2rem;
}

.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
	transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
	border-color: rgba(227, 181, 5, 0.4);
	transform: translateY(-2px);
}

.card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
}

.card p {
	margin: 0 0 1.25rem;
	flex: 1;
	color: var(--text-muted);
	font-size: 0.98rem;
}

.card .btn {
	align-self: flex-start;
	margin-top: auto;
}

/* Visit */
.visit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
	align-items: start;
}

.visit-block h3 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin: 0 0 0.5rem;
}

.visit-block p,
.visit-block a {
	margin: 0;
	color: var(--text-muted);
}

.visit-block a:not(.btn) {
	color: var(--accent);
}

.visit-block .btn-primary {
	margin-top: 1rem;
}

/* Footer */
.site-footer {
	padding: 2.5rem 1.25rem;
	border-top: 1px solid var(--border);
	background: var(--bg-card);
}

.footer-inner {
	max-width: var(--max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: stretch;
}

.footer-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.footer-meta > p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.footer-contact {
	width: 100%;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.footer-contact-title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
}

.footer-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem 2rem;
	align-items: start;
}

.footer-contact-block h4 {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.footer-contact-block p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.footer-contact-link {
	color: var(--accent);
	text-decoration: none;
	font-size: 0.9rem;
}

.footer-contact-link:hover {
	color: #f5cc33;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-contact-block > .footer-contact-link {
	margin-top: 0.5rem;
	display: inline-block;
}

.footer-exhibits {
	width: 100%;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	text-align: center;
}

.footer-exhibits-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.footer-exhibits-title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--text);
}

.footer-exhibits-note {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.footer-exhibits-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
}

.footer-exhibits-strip img {
	width: min(28vw, 150px);
	max-width: none;
	height: auto;
	aspect-ratio: 300 / 188;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
}

@media (min-width: 768px) {
	.footer-exhibits-strip img {
		width: 140px;
	}
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.footer-links a {
	color: var(--text-muted);
	font-size: 0.9rem;
	text-decoration: none;
}

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