/* =========================================================================
   Custom Theme - Core stylesheet
   Loaded on every page. Page-specific tweaks live in home.css / about.css.
   ========================================================================= */

:root {
	--color-bg: #ffffff;
	--color-surface: #f6f7fb;
	--color-text: #1c2230;
	--color-muted: #6b7280;
	--color-primary: #2f6df6;
	--color-primary-dark: #1f4fc4;
	--color-border: #e4e7ee;
	--radius: 12px;
	--max-width: 1140px;
	--shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }

.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 16px;
}
.site-title {
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--color-text);
}
.site-title:hover { color: var(--color-text); }

.main-navigation ul {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation a {
	color: var(--color-text);
	font-weight: 600;
	font-size: .95rem;
}
.main-navigation a:hover { color: var(--color-primary); }

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--color-text);
	display: block;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	border: 0;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	margin-top: 64px;
	padding: 48px 0 28px;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-bottom: 28px;
}
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--color-border);
	padding-top: 20px;
	color: var(--color-muted);
	font-size: .9rem;
}
.footer-bottom ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-bottom a { color: var(--color-muted); }

/* ---------- Generic sections ---------- */
.section-title {
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 28px;
}

/* ---------- Responsive header ---------- */
@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	.main-navigation {
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}
	.main-navigation.toggled { max-height: 320px; }
	.main-navigation ul {
		flex-direction: column;
		padding: 12px 24px 20px;
		gap: 14px;
	}
}
