/* nattercan.com — project showcase. Palette and type carried over from the old agency site (nattercan.css). */

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #454445;
	background-color: #fff;
}

h1, h2, h3 {
	font-weight: 700;
	letter-spacing: 1px;
}

p {
	font-size: 18px;
	line-height: 1.5;
}

a {
	color: #f7941e;
	transition: all .2s ease-in-out;
}

a:hover,
a:focus {
	text-decoration: none;
	color: #1d9b6c;
}

/* --- nav --- */

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	letter-spacing: 1px;
	transition: background .5s ease-in-out, padding .5s ease-in-out;
}

nav.solid {
	padding: 8px 25px;
	border-bottom: 1px solid rgba(255, 255, 255, .3);
	background: rgba(0, 0, 0, .92);
}

nav .brand {
	color: #fff;
	font-weight: 400;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .5s ease-in-out;
}

nav.solid .brand { opacity: 1; }

nav .brand img {
	height: 20px;
	padding-right: 10px;
	vertical-align: middle;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

nav ul a {
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	text-decoration: none;
}

nav ul a:hover { color: #18bc9c; }

/* --- hero --- */

header {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 100px 25px;
	text-align: center;
	color: #fff;
	background-color: #57463f;
}

header img {
	width: 100%;
	max-width: 650px;
}

.fadein {
	opacity: 0;
	animation: fadein 1s ease-in-out .2s forwards;
}

@keyframes fadein {
	to { opacity: 1; }
}

.tagline {
	margin-top: 30px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.tagline .spacer-dot {
	padding: 10px;
	font-size: 6px;
	vertical-align: middle;
}

/* --- sections --- */

section {
	padding: 100px 25px;
	text-align: center;
	scroll-margin-top: 40px;
}

section h1 {
	margin: 0 0 60px;
	font-size: 36px;
}

section.band-grey { background-color: #f7f7f7; }
section.band-light { background-color: #f0f0f0; }

section.band-dark {
	background-color: #454445;
	color: #fff;
}

/* --- project cards --- */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
	gap: 30px;
	justify-content: center;
	max-width: 1100px;
	margin: 0 auto;
}

.card {
	background-color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	text-align: center;
	color: #454445;
}

.card .media {
	position: relative;
	display: block;
}

.card .media img,
.card .media .thumb {
	display: block;
	width: 100%;
	aspect-ratio: 350 / 209;
	object-fit: cover;
}

.card .media .thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f7941e;
	font-size: 64px;
	background-color: #57463f;
}

.card h3 {
	margin: 22px 15px 0;
	font-size: 19px;
}

.card h3:last-child { margin-bottom: 22px; }

.card .thumb span {
	font-size: 96px;
	line-height: 1;
}

.card p {
	margin: 8px 15px 22px;
	font-size: 15px;
	line-height: 1.5;
}

.card .tech {
	margin-top: -14px;
	font-size: 12px;
	font-style: italic;
	color: #999;
}

.card h3 + .tech { margin-top: 6px; }

/* Linked card (Barbell Tracker only): orange overlay + icon on hover, like the old portfolio tiles. */
a.card {
	display: block;
	color: #454445;
	text-decoration: none;
}

a.card .media .overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	color: #fff;
	background: rgba(247, 148, 30, .7);
	opacity: 0;
	transition: opacity .5s ease;
}

a.card:hover .media .overlay { opacity: 1; }

/* --- footer --- */

footer {
	padding: 50px 25px;
	text-align: center;
	color: #ccc;
	background-color: #57463f;
}

footer p {
	margin: 0;
	font-size: 16px;
}

footer .fa { margin-right: 10px; }

@media (min-width: 768px) {
	section h1 {
		font-size: 60px;
		line-height: 72px;
	}

	.tagline { font-size: 30px; }

	p {
		font-size: 20px;
		line-height: 1.6;
	}
}
