/* ---------- Reset & base ---------- */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #26313c;
	background: #ffffff;
	line-height: 1.6;
}

h1, h2, h3 {
	font-weight: 600;
	color: #16232f;
	margin: 0 0 0.5em;
}

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

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

:root {
	--navy: #16232f;
	--navy-light: #24384a;
	--accent: #2d6a8f;
	--accent-light: #3f88b3;
	--surface: #f5f6f8;
	--border: #e1e4e8;
	--max-width: 1200px;
}

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

section {
	padding: 64px 0;
	scroll-margin-top: 64px;
}

.section-title {
	font-size: 1.6rem;
	border-bottom: 2px solid var(--border);
	padding-bottom: 16px;
	margin-bottom: 32px;
}

[hidden] {
	display: none !important;
}

/* ---------- Nav ---------- */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.nav-logo {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--navy);
}

.nav-logo b {
	color: var(--accent);
}

.nav-links {
	display: flex;
	gap: 8px;
}

.nav-links a {
	padding: 10px 16px;
	border-radius: 4px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
	background: var(--surface);
	color: var(--accent);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	max-height: 560px;
	overflow: hidden;
}

.hero img {
	width: 100%;
	height: 560px;
	object-fit: cover;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 35, 47, 0.15) 0%, rgba(22, 35, 47, 0.55) 100%);
}

.hero-text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 1;
}

.hero-text h1 {
	color: #ffffff;
	font-size: 2.6rem;
	letter-spacing: 0.5px;
	margin: 0;
}

.hero-text span.light {
	font-weight: 300;
	color: #d7dee4;
}

/* ---------- Grids (projects & team) ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.card-grid {
		grid-template-columns: 1fr;
	}
}

.project-card {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

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

.project-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.project-card .card-label {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(22, 35, 47, 0.85);
	color: #fff;
	padding: 8px 14px;
	font-weight: 500;
	font-size: 0.95rem;
}

.team-card {
	text-align: left;
}

.team-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 6px;
}

.team-card h3 {
	margin-top: 16px;
	margin-bottom: 2px;
}

.team-card .title {
	color: var(--accent);
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 8px;
}

.team-card .contact-link {
	display: inline-block;
	margin-top: 8px;
	color: var(--accent);
	font-weight: 500;
	font-size: 0.9rem;
}

.team-card .contact-link:hover {
	text-decoration: underline;
}

/* ---------- About ---------- */
#about p {
	max-width: 900px;
}

/* ---------- Contact ---------- */
form {
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.field {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
}

.field:focus {
	outline: none;
	border-color: var(--accent);
}

textarea.field {
	resize: vertical;
	min-height: 100px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	background: var(--navy);
	color: #fff;
	border: none;
	padding: 12px 22px;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.btn:hover {
	background: var(--navy-light);
}

.btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ---------- Map ---------- */
#map-wrap {
	line-height: 0;
}

#map-wrap iframe {
	width: 100%;
	height: 450px;
	border: 0;
	display: block;
}

/* ---------- Project detail view ---------- */
#project-view {
	max-width: 900px;
	margin: 0 auto;
	padding: 48px 24px;
}

.back-link {
	display: inline-block;
	margin-bottom: 24px;
	color: var(--accent);
	font-weight: 500;
}

.back-link:hover {
	text-decoration: underline;
}

#project-image {
	width: 100%;
	height: 480px;
	object-fit: contain;
	background: var(--surface);
	border-radius: 6px;
	margin-top: 24px;
}

/* ---------- Footer ---------- */
footer {
	background: var(--navy);
	color: #cfd6dc;
	text-align: center;
	padding: 24px;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 700px) {
	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: #ffffff;
		flex-direction: column;
		gap: 0;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s ease;
	}

	.nav-links.open {
		max-height: 240px;
	}

	.nav-links a {
		padding: 14px 24px;
		border-radius: 0;
		border-bottom: 1px solid var(--border);
	}

	.hero-text h1 {
		font-size: 1.9rem;
	}
}
