/* --- CSS Variables (Design Tokens) --- */
:root {
	/* Colors */
	--bg-surface: #f7f9fb;
	--text-primary: #191c1e;
	--text-variant: #45464d;
	--brand-primary: #000000;
	--brand-secondary: #006591;
	--brand-secondary-hover: #004c6e;
	--btn-bg: #39b8fd;
	--btn-text: #004666;
	--surface-low: #f2f4f6;
	--surface-lowest: #ffffff;
	--surface-highest: #e0e3e5;
	--surface-variant: #e0e3e5;
	--outline: #76777d;
	--outline-variant: #c6c6cd;
	/* Typography */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Hanken Grotesk', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
	/* Spacing */
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 32px;
	--space-lg: 64px;
	--gutter: 24px;
	--margin-desktop: 40px;
	--margin-mobile: 16px;
	--container-max: 1280px;
	/* Borders */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
}

/* --- Base & Reset --- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--bg-surface);
	color: var(--text-primary);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--margin-desktop);
}

/* --- Typography --- */
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--brand-primary);
}


.menu-toggle {
	display: none;
}

.text-display {
	font-size: 48px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.text-headline-md {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 600;
}

.text-headline-sm {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 600;
}

.text-body-lg {
	font-size: 18px;
	line-height: 1.6;
}

.text-body-md {
	font-size: 16px;
	line-height: 1.5;
}

.text-body-sm {
	font-size: 14px;
	line-height: 1.4;
}

.text-label {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.text-variant {
	color: var(--text-variant);
}

.text-center {
	text-align: center;
}

/* --- Icons --- */
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
}

/* --- Navigation --- */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 64px;
	background-color: rgba(247, 249, 251, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--outline-variant);
	z-index: 50;
	display: flex;
	align-items: center;
}

	.navbar .container {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 100%;
	}

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

.nav-links {
	display: flex;
	gap: var(--gutter);
	height: 100%;
	align-items: center;
}

.nav-link {
	font-size: 16px;
	color: var(--text-variant);
	transition: color 0.2s ease;
}

	.nav-link:hover {
		color: var(--brand-secondary);
	}

	.nav-link.active {
		color: var(--brand-secondary);
		border-bottom: 2px solid var(--brand-secondary);
		padding-bottom: 2px;
	}

.btn {
	background-color: var(--btn-bg);
	color: var(--btn-text);
	padding: 8px var(--space-sm);
	border-radius: var(--radius-sm);
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: var(--font-body);
	font-size: 16px;
}

	.btn:hover {
		background-color: var(--brand-secondary);
		color: #ffffff;
	}

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

/* --- Main Layout --- */
main {
	padding-top: 64px; /* Offset for fixed nav */
	min-height: 100vh;
}

/* --- Hero Section --- */
.hero {
	background-color: var(--surface-low);
	padding: var(--space-lg) 0;
	border-bottom: 1px solid var(--outline-variant);
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--text-variant);
	margin-bottom: var(--space-sm);
}

	.breadcrumbs a:hover {
		color: var(--brand-secondary);
	}

	.breadcrumbs .active {
		color: var(--brand-primary);
		font-weight: 700;
	}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
	align-items: center;
}

.hero-content h1 {
	margin-bottom: var(--space-sm);
}

.hero-image-wrapper {
	position: relative;
	background-color: var(--surface-highest);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--outline-variant);
	aspect-ratio: 16 / 9;
}

	.hero-image-wrapper img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.7s ease;
	}

	.hero-image-wrapper:hover img {
		transform: scale(1.05);
	}

.badge {
	position: absolute;
	bottom: -16px;
	left: -16px;
	background-color: var(--brand-secondary);
	color: #ffffff;
	padding: var(--space-sm);
	border-radius: var(--radius-sm);
	box-shadow: 0px 10px 15px -3px rgba(15, 23, 42, 0.1);
}

/* --- Content Section --- */
.content-section {
	padding: var(--space-lg) 0;
}

.article-intro {
	margin-bottom: var(--space-lg);
}

	.article-intro h2 {
		margin-bottom: var(--space-md);
	}

	.article-intro p {
		margin-bottom: var(--space-sm);
		max-width: 800px;
	}

/* --- Bento Grid --- */
.bento-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--gutter);
	margin-bottom: var(--space-lg);
}

.card {
	background-color: var(--surface-lowest);
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	border: 1px solid var(--outline-variant);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

	.card:hover {
		transform: translateY(-2px);
		box-shadow: 0px 10px 15px -3px rgba(15, 23, 42, 0.05);
	}

.card-small {
	grid-column: span 2;
}

.card-medium {
	grid-column: span 3;
}

.card-wide {
	grid-column: span 4;
}

.card-accent {
	background-color: #131b2e; /* Primary container from config */
	color: #7c839b; /* On primary container */
	text-align: center;
	align-items: center;
	justify-content: center;
}

	.card-accent h3 {
		color: #ffffff;
	}

.card-icon {
	font-size: 32px !important;
	color: var(--brand-secondary);
	margin-bottom: var(--space-sm);
}

.card-accent .card-icon {
	font-size: 48px !important;
	color: var(--btn-bg);
}

.card h3 {
	margin-bottom: var(--space-xs);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-top: var(--space-md);
}

.tag {
	background-color: var(--surface-variant);
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-family: var(--font-mono);
	font-weight: 500;
}

.card-horizontal {
	flex-direction: row;
	align-items: center;
	gap: var(--space-md);
}

.card-image {
	width: 33.333%;
	aspect-ratio: 1 / 1;
	background-color: var(--surface-low);
	border-radius: var(--radius-md);
	overflow: hidden;
}

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

.card-content {
	width: 66.666%;
}

/* --- Approach Section --- */
.approach-box {
	background-color: var(--surface-lowest);
	padding: var(--space-lg);
	border-radius: var(--radius-lg);
	border: 1px solid var(--outline-variant);
	box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.approach-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gutter);
	margin-top: var(--space-md);
}

.step-item {
	text-align: center;
}

.step-number {
	width: 48px;
	height: 48px;
	background-color: rgba(0, 101, 145, 0.1);
	color: var(--brand-secondary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px auto;
	font-weight: 700;
	font-size: 18px;
}

.step-item h4 {
	margin-bottom: var(--space-xs);
}

/* --- Footer --- */
.footer {
	background-color: var(--surface-highest);
	border-top: 1px solid var(--outline-variant);
	padding: var(--space-md) 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gutter);
}

.footer-col-desc .logo-img {
	margin-bottom: var(--space-sm);
}

.footer-col-desc p {
	margin-bottom: var(--space-sm);
}

.social-links {
	display: flex;
	gap: var(--space-sm);
}

	.social-links .material-symbols-outlined {
		color: var(--brand-secondary);
		cursor: pointer;
		transition: transform 0.15s ease;
	}

		.social-links .material-symbols-outlined:hover {
			transform: scale(1.1);
		}

.footer-title {
	margin-bottom: var(--space-sm);
	color: var(--brand-primary);
}

.footer-links li {
	margin-bottom: var(--space-xs);
}

.footer-links a {
	transition: color 0.2s ease;
}

	.footer-links a:hover {
		color: var(--brand-secondary);
		text-decoration: underline;
	}

.footer-bottom {
	margin-top: var(--space-lg);
	padding-top: var(--space-sm);
	border-top: 1px solid var(--outline-variant);
	text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

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

	.card-wide, .card-horizontal {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 var(--margin-mobile);
	}

	

	.nav-links {
		display: none; /* Hide standard nav on mobile */
	}

		.nav-links.open {
			display: flex;
			flex-direction: column;
			position: absolute;
			top: 70px;
			right: 20px;
			background: white;
			padding: 1rem;
			background-color: var(--bg-surface);
			border-radius: 8px;
			box-shadow: 0 8px 20px rgba(0,0,0,0.15);
			z-index: 1000;
			height: auto; /* <-- ADD THIS: Allows the background to wrap all links */
			align-items: flex-start; /* <-- ADD THIS: Aligns links to the left nicely */
		}

	.contact-btn {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.text-display {
		font-size: 36px;
	}

	.badge {
		display: none; /* Hide absolute badge on small screens */
	}

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

	.card-wide, .card-horizontal {
		grid-column: span 1;
	}

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

	.card-image {
		width: 100%;
		aspect-ratio: 16/9;
	}

	.card-content {
		width: 100%;
	}

	.approach-grid, .footer-grid {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

	.footer-bottom {
		text-align: left;
	}
}


.text-copy_footer {
	border-color: rgb(198 198 205 / var(--tw-border-opacity, 1));
	color: rgb(69 70 77 / var(--brand-secondary, 1));
}