html {
	height: 100%;
}

body {
	font-family: Arial, sans-serif;
	background: #f4f6f9;
	margin: 0;
	padding: 1rem;
	color: #333;
	box-sizing: border-box;
}

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

::selection {
	background-color: color-mix(in srgb, #7399b1 35%, transparent);
	color: #002b49;
}

::-moz-selection {
	background-color: color-mix(in srgb, #7399b1 35%, transparent);
	color: #002b49;
}

h1 {
	text-align: center;
	margin: 0rem 0 1.5rem;
	color: #363636;
	font-family: "PlutoSansBold", sans-serif;
}

.section-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 920px;
	margin: 0 auto 1.25rem;
	padding: 0 0.5rem;
	color: #363636;
	font-family: "PlutoSansBold", sans-serif;
	font-size: 1.05rem;
	font-weight: bold;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
}

.section-heading::before,
.section-heading::after {
	content: "";
	flex: 1;
	border-bottom: 2px solid #5b5f47;
}

.container + .section-heading {
	margin-top: 2rem;
}

/* Centered rows no matter how many items per line */
.container {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
}

/* Fixed card width so centering is consistent */
.card {
	flex: 0 0 280px;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
	position: relative;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h2 {
	margin: 0 0 1rem;
	text-align-last: center;
	font-size: 1.5rem;
	color: #363636;
	border-bottom: 2px solid #5b5f47;
	padding-bottom: 0.5rem;
	font-family: "PlutoSansBold", sans-serif;
}

ul {
	list-style: none;
	text-align-last: center;
	padding: 0;
	margin: 0;
	font-size: 1.25rem;
}

li {
	margin: 0.5rem 0;
}

a {
	text-decoration: none;
	color: #34495e;
	font-weight: 600;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

a:hover {
	background: #6e93ad;
	color: #fff;
}

a.card.aerospace:hover {
	background: yellow;
	color: black;
}
/* Aerospace cards with helicopter silhouette */
.card.aerospace {
	background-image: url("../assets/images/helicopter-silhouette.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.card.aerospace::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	z-index: 0;
}

/* Other cards with tank silhouette */
.card.tank {
	background-image: url("../assets/images/tank.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.card.tank::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	z-index: 0;
}

/* Text stays above overlay */
.card h2,
.card ul,
.card li,
.card a {
	position: relative;
	z-index: 1;
}

.footer {
	text-align: center;
	font-family: "PlutoSansBold", sans-serif;
	color: #363636;
	margin-top: 3rem;
}

.tools-section {
	max-width: 980px;
	margin: 0 auto 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
}

.tool-link {
	display: inline-block;
	font-family: "PlutoSansBold", sans-serif;
	font-size: 1.75rem;
	color: #363636;
	font-weight: 600;
	padding: 0.4rem 0.75rem;
	border-radius: 6px;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.tool-link:hover {
	background: #6e93ad;
	color: #fff;
}

.regen-section {
	max-width: 980px;
	margin: 2rem auto 0;
	padding: 1.25rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.regen-section h2 {
	margin: 0 0 0.5rem;
	text-align: center;
	color: #363636;
	font-family: "PlutoSansBold", sans-serif;
}

.regen-section p {
	margin: 0 0 1rem;
	text-align: center;
	color: #5d6772;
	font-size: 0.95rem;
}

/* Option A (active): card-style action buttons */
.regen-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.75rem;
}

.regen-btn {
	position: relative;
	overflow: hidden;
	border: 1px solid #ccd6e0;
	background: #f7fafc;
	color: #1f2d3d;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.regen-btn:hover {
	background: #eaf1f7;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.regen-btn:active {
	transform: translateY(0);
}

.regen-btn.is-running {
	color: #0f2236;
	border-color: #7db2e8;
	background: #eaf4ff;
	cursor: wait;
}

.regen-btn.is-running::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(66, 145, 230, 0.15) 0%,
		rgba(66, 145, 230, 0.35) 50%,
		rgba(66, 145, 230, 0.15) 100%
	);
	transform: translateX(-100%);
	animation: btnSweep 1.15s linear infinite;
	pointer-events: none;
}

.regen-btn.is-running::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--btn-progress, 0%);
	background: rgba(87, 161, 236, 0.24);
	transition: width 0.25s linear;
	pointer-events: none;
}

.regen-btn-label {
	position: relative;
	z-index: 1;
}

/* Option B (alternate): switch container class to regen-actions compact */
.regen-actions.compact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.regen-actions.compact .regen-btn {
	background: #1f2d3d;
	color: #ffffff;
	border-color: #1f2d3d;
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font-weight: 600;
}

.regen-actions.compact .regen-btn:hover {
	background: #31465c;
}

.regen-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(17, 24, 39, 0.5);
	z-index: 999;
}

.regen-modal.is-open {
	display: flex;
}

.regen-modal-panel {
	width: min(92vw, 420px);
	background: #ffffff;
	border-radius: 12px;
	padding: 1.1rem 1.1rem 1rem;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.regen-modal-title {
	margin: 0 0 0.45rem;
	font-family: "PlutoSansBold", sans-serif;
	color: #1f2d3d;
	font-size: 1.1rem;
}

.regen-modal-text {
	margin: 0 0 0.75rem;
	color: #3b4958;
	font-size: 0.95rem;
}

.regen-modal-track {
	height: 9px;
	border-radius: 999px;
	background: #e7eef6;
	overflow: hidden;
}

.regen-modal-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4f8fce, #75b7f3);
	transition: width 0.25s linear;
}

.regen-modal-meta {
	margin-top: 0.55rem;
	display: flex;
	justify-content: space-between;
	font-size: 0.84rem;
	color: #4d5e70;
}

@keyframes btnSweep {
	to {
		transform: translateX(100%);
	}
}

@media (max-width: 320px) {
	.card {
		flex: 1 1 100%;
		text-align-last: center;
	}
}

/* Logo container centers the image and reduces spacing */
.logo-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
}

/* Control the size of the logo */
.site-logo {
	display: block;
	max-width: 250px;
	width: 100%;
	height: auto;
}

/* Desktop: shrink vertical spacing only — keep horizontal layout */
@media (min-width: 900px) {
	html,
	body {
		height: 100%;
		max-height: 100dvh;
		overflow: hidden;
	}

	body {
		padding: clamp(0.5rem, 1.5dvh, 1rem);
	}

	.site-logo {
		max-width: clamp(140px, 18dvh, 250px);
	}

	h1 {
		margin: 0 0 clamp(0.5rem, 1.5dvh, 1.5rem);
	}

	.section-heading {
		width: 100%;
		margin: 0 auto clamp(0.5rem, 1.2dvh, 1.25rem);
	}

	.container + .section-heading {
		margin-top: clamp(0.75rem, 2dvh, 2rem);
	}

	.container {
		gap: clamp(0.85rem, 2dvh, 1.5rem);
	}

	.card {
		padding: clamp(0.85rem, 2dvh, 1.5rem);
	}

	.card h2 {
		margin: 0 0 clamp(0.5rem, 1.2dvh, 1rem);
		padding-bottom: clamp(0.3rem, 0.8dvh, 0.5rem);
	}

	li {
		margin: clamp(0.25rem, 0.8dvh, 0.5rem) 0;
	}

	.tools-section {
		margin: 0 auto clamp(0.5rem, 1.2dvh, 1.5rem);
	}

	.regen-section {
		margin: clamp(0.75rem, 2dvh, 2rem) auto 0;
		padding: clamp(0.85rem, 1.8dvh, 1.25rem);
	}

	.regen-section h2 {
		margin: 0 0 clamp(0.25rem, 0.7dvh, 0.5rem);
	}

	.regen-section p {
		margin: 0 0 clamp(0.5rem, 1.2dvh, 1rem);
	}

	.regen-btn {
		padding: clamp(0.55rem, 1.3dvh, 0.75rem) 0.9rem;
	}

	.footer {
		margin-top: clamp(0.75rem, 2dvh, 3rem);
	}
}

@font-face {
	font-family: "PlutoSansBold";
	src: url("../assets/fonts/Pluto Sans W04 Bold.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;
}
