/* CSS Variables */
:root {
	--primary-color: #003366;
	--highlight-color: #1375b3;
	--highlight-color-light: #9ecbf8;
	--text-color: #4b4b4b;
	--background-color: #102040;
	--background-color-light: #f5f5f5;
	--header-height: 100px;
	--font-primary: "Roboto", sans-serif;
	--font-secondary: "Oswald", sans-serif;
	--container-padding: 2rem;
	--section-spacing: 3rem;
}

.roboto-400 {
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 100;
}

.oswald-400 {
	font-family: "Oswald", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Responsive Base Styles */
html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	line-height: 1.6;
	color: var(--text-color);
	padding-top: var(--header-height);
	position: relative;
	overflow-x: hidden;
}

.landing-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 1170px;
	background-image: url("../images/city-freeway-at-night.jpg");
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: -1;
}

.landing-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
}


/* Header styles */
header {
	background-color: transparent;
	padding: 1rem;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	z-index: 1000;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	justify-content: center;
	align-items: center;
}

header.scrolled {
	background-color: var(--background-color-light);
	height: 100px;
}

nav {
	width: 100%;
}

nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
}

.header-logo {
	height: 120px;
	width: auto;
	display: block;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0.5rem;
}

header.scrolled .header-logo {
	height: 90px;
	padding: 0.125rem;
}

nav a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: bold;
}

nav a:hover {
	color: var(--primary-color);
}

/* Main content styles */
main {
	padding: 2rem;
}

@media (min-width: 768px) {
	main {
		min-height: calc(100vh - var(--header-height));
	}
}

.section-container {
	width: 100%;
	max-width: 950px;
	margin: 0 auto;
	min-height: calc(100vh - var(--header-height));
}

h1 {
	font-family: var(--font-secondary);
	font-size: clamp(2.5rem, 5vw, 3.875rem);
	line-height: 1.2;
	font-weight: 400;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	color: #fff;
	letter-spacing: 2px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.2rem;
	text-wrap: pretty;
}

h2 {
	font-family: var(--font-secondary);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	letter-spacing: -1px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--primary-color);
	margin-bottom: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	text-wrap: pretty;
}

h3 {
	font-family: var(--font-primary);
	font-size: clamp(1.125rem, 2vw, 1.25rem);
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 1.2rem;
	text-align: center;
	text-wrap: balance;
}
p {
	font-size: clamp(1rem, 2vw, 1.125rem);
	font-weight: 400;
	text-transform: none;
	color: var(--text-color);
	margin-bottom: 1.2rem;
	text-wrap: pretty;
}

a {
	color: inherit;
}

strong {
	font-weight: 700;
}

ul {
	text-wrap: pretty;
}

.hero {
	text-align: center;
	padding: 0 1rem 0 1rem;
	color: #fff;
	position: relative;
	z-index: 1;
}
.hero h1,
.hero h2 {
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(0, 0, 0, 0.18);
	text-wrap: balance;
}
.hero p {
	font-size: 1.25rem;
	margin-bottom: 1.2rem;
	color: #fff;
	max-width: min(700px, 90%);
	margin-left: auto;
	margin-right: auto;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(0, 0, 0, 0.18);
}
.hero .button {
	background: white;
	color: var(--primary-color);
}
.hero .button:hover,
.hero .button:focus {
	background: var(--highlight-color);
	color: white;
}

/* Factbook Section */
.factbook {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--background-color-light);
	margin: clamp(1rem, 3vw, 2rem) auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	max-width: min(600px, 90%);
	position: relative;
	z-index: 2;
}

.factbook-image {
	background: #fff;
	min-height: auto;
	width: clamp(200px, 40vw, 260px);
	height: clamp(200px, 40vw, 260px);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 5px solid #222;
	margin: 0 auto;
	font-family: var(--font-secondary);
	font-size: 1.3rem;
	color: var(--text-color);
	text-align: center;
}

.factbook-content {
	padding: 0.5rem;
	margin: 0 auto;
}

.factbook-content h2 {
	font-family: var(--font-secondary);
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 1.2rem;
	font-size: 1.625rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.factbook-content ul {
	list-style: none;
	margin-bottom: 1.5rem;
	padding-left: 0;
}

.factbook-content ul li {
	font-family: var(--font-secondary);
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 3rem;
	font-size: 1.625rem;
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: pretty;
	border-bottom: 1px solid var(--text-color);
}
.factbook-content ul li:last-child {
	border-bottom: none;
}
.factbook-content ul li ul {
	list-style: disc;
	margin-left: 0;
	margin-top: 0.5rem;
}

.factbook-content ul li ul li {
	font-family: var(--font-primary);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.4;
	text-transform: none;
	color: var(--text-color);
	list-style: disc;
	margin-left: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	border: none;
}

.factbook-content ul li ul li.single-list-item {
	list-style: none;
	margin-left: 0;
	text-wrap: balance;
}
.factbook p {
	text-align: center;
	text-wrap: pretty;
}
.factbook .button {
	margin-top: 1.2rem;
}

/* Features Section */
.features h2 {
	text-align: center;
	margin-top: 3.75rem;
	margin-bottom: 1.875rem;
}
.features h2 span {
	text-transform: none;
}
.features p {
	text-align: center;
	text-wrap: pretty;
}
.features p strong {
	text-transform: uppercase;
}
.features ul {
	columns: 1;
	max-width: 550px;
	margin: 0 auto 1.5rem;
}
@media (min-width: 600px) {
	.features ul {
		columns: 2;
		column-gap: 2rem;
		max-width: 550px;
		margin: 0 auto 1.5rem;
	}
}
.features ul li {
	font-family: var(--font-primary);
	font-weight: 400;
	font-size: 1.125rem;
	text-transform: none;
	transition: all 0.25s;
}

/* Responsive Features Section */
.features {
	padding: clamp(1rem, 3vw, 2rem) 0;
}

/* Button styles */
.button {
	display: inline-block;
	background: var(--primary-color);
	color: #fff;
	font-family: var(--font-primary);
	font-weight: 600;
	border: none;
	border-radius: 4px;
	padding: 0.5rem 2rem;
	margin: 0 0.5rem;
	font-size: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s;
}

.button:hover {
	background: var(--highlight-color);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero .button {
	background: white;
	color: var(--primary-color);
}

.hero .button:hover,
.hero .button:focus {
	background: var(--highlight-color);
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add loading states */
.button.loading {
	position: relative;
	pointer-events: none;
	opacity: 0.8;
}

/* Lazy loading for images */
img {
	loading: lazy;
}

/* Media Queries */
@media (min-width: 768px) {
	:root {
		--header-height: 120px;
		--container-padding: 1rem;
		--section-spacing: 2rem;
	}

	.hero {
		padding: 5rem 1rem 3rem 1rem;
	}

	.factbook-content ul li {
		margin-bottom: 2rem;
	}
	.factbook-content ul li ul {
		margin-left: 1.5rem;
	}
	.features .section-container {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem;
		justify-content: center;
		align-items: flex-start;
	}
	.features .section-container > .left-column,
	.features .section-container > .right-column {
		flex: 1 1 220px;
		min-width: 220px;
		max-width: 320px;
	}
	.features .section-container > .center-column {
		flex: 2 1 100%;
		min-width: 320px;
		max-width: 100%;
		margin-top: 1rem;
		width: 100%;
	}
	.features .section-container > .left-column,
	.features .section-container > .right-column {
		margin-bottom: 0;
	}
	.features .section-container > .center-column {
		margin-bottom: 0;
	}
}

/* Footer styles */
footer {
	background-color: var(--background-color);
	text-align: center;
	padding: 1rem;
	position: relative;
	width: 100%;
}

footer p {
	color: #fff;
	font-size: 0.875rem;
	margin-bottom: 0;
}

footer p a {
	display: block;
}

/* Accessibility */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--primary-color);
	color: white;
	padding: 8px;
	z-index: 100;
	transition: top 0.3s;
}

.skip-link:focus {
	top: 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus styles */
:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

:focus:not(:focus-visible) {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
	.button {
		border: 2px solid currentColor;
	}
}

/* Back to top button */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	opacity: 0;
	transition: all 0.25s;
}

.back-to-top.visible {
	opacity: 1;
}

/* Section animations */
.section {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Dark mode */
/*@media (prefers-color-scheme: dark) {
	:root {
		--background-color: #1a1a1a;
		--text-color: #ffffff;
	}
}*/

.features .section-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.features .section-container > div {
	width: 100%;
}
.features .section-container > div:nth-child(2) {
	flex: 2;
	min-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.features .section-container {
		flex-direction: column;
		gap: 1rem;
	}
}

/* Responsive adjustments */
@media (max-width: 1280px) {
	.features .section-container {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem;
	}

	.features .section-container > div {
		width: 100%;
	}

	.features .section-container > div:first-child,
	.features .section-container > div:last-child {
		min-height: 100px;
	}

	.features .section-container > div:first-child {
		order: 1;
	}

	.features .section-container > div:last-child {
		order: 2;
	}

	.features .section-container > div:nth-child(2) {
		order: 3;
	}
}

.toc-card {
	background: #0a3a6a;
	color: #fff;
	box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.16);
	display: flex;
	align-items: center;
	padding: 2.5rem 3rem;
	margin: 1.5rem 0;
	min-height: 220px;
	min-width: 0;
	max-width: 100%;
	text-align: left;
	text-decoration: none;
	transition: all 0.3s ease;
	transform: translateY(0);
}
.toc-card:link,
.toc-card:visited {
	text-decoration: none;
}
.toc-card:hover,
.toc-card:focus,
.toc-card:active {
	background: var(--highlight-color-light);
	color: var(--primary-color);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	outline: none;
	transform: translateY(-4px);
}
.toc-card:hover .toc-card-title,
.toc-card:focus .toc-card-title,
.toc-card:active .toc-card-title {
	color: var(--primary-color);
}
.toc-card:hover .toc-card-subtitle,
.toc-card:focus .toc-card-subtitle,
.toc-card:active .toc-card-subtitle {
	color: var(--primary-color);
}
.toc-card:hover .toc-card-icon svg path,
.toc-card:focus .toc-card-icon svg path,
.toc-card:active .toc-card-icon svg path {
	fill: var(--primary-color);
}
.toc-card-icon {
	flex-shrink: 0;
	margin-right: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.toc-card-icon svg {
	width: 64px;
	height: 64px;
}
.toc-card-title {
	font-family: var(--font-primary);
	font-size: 1.375rem;
	font-weight: 400;
	text-align: left;
}
.toc-card-subtitle {
	font-family: var(--font-primary);
	font-size: 1rem;
	color: var(--highlight-color-light);
	text-align: left;
}
.toc-card-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

@media (min-width: 1024px) {
	.features .section-container {
		flex-direction: column;
		align-items: center;
		max-width: 1200px;
		margin: 0 auto;
	}
	.features .section-container .top-row {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
		max-width: 900px;
		margin: 0 auto 2rem auto;
		gap: 2rem;
	}
	.features .section-container > .center-column {
		max-width: 900px;
		margin: 0 auto;
		width: 100%;
	}
	.features .section-container > .left-column,
	.features .section-container > .right-column {
		max-width: 350px;
		flex: 1 1 0;
	}
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Button focus styles */
button:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* TOC card focus styles */
.toc-card:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 4px;
	border-radius: var(--border-radius);
}
