*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--white: #ffffff;
	--off-white: #f5f5f3;
	--light-gray: #ebebeb;
	--mid-gray: #c0c0c0;
	--dark: #0e0e0e;
	--navy: #0f1f3d;
	--navy-light: #1a3360;
	--red: #c0392b;
	--red-light: #e74c3c;
	--font-display: "Playfair Display", serif;
	--font-body: "DM Sans", sans-serif;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--white);
	color: var(--dark);
	overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5%;
	height: 70px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--light-gray);
	transition: box-shadow var(--transition);
}

nav.scrolled {
	box-shadow: 0 4px 24px rgba(15, 31, 61, 0.08);
}

.nav-logo {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--navy);
	text-decoration: none;
	letter-spacing: -0.5px;
}

.nav-logo span {
	color: var(--red);
}

.nav-links {
	display: flex;
	gap: 2.5rem;
	list-style: none;
}

.nav-links a {
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dark);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	position: relative;
	transition: color var(--transition);
}

.nav-links a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--red);
	transition: width var(--transition);
}

.nav-links a:hover {
	color: var(--navy);
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-cta {
	background: var(--navy);
	color: var(--white) !important;
	padding: 0.5rem 1.25rem;
	border-radius: 2px;
}

.nav-cta::after {
	display: none !important;
}

.nav-cta:hover {
	background: var(--red);
	color: var(--white) !important;
}

/* ─── HERO ─── */
#hero {
	min-height: 100vh;
	height: 100vh;
	display: grid;
	flex-direction: column;
	padding-top: 70px;
	overflow: hidden;
}

.hero-left {
	flex: 1;
	background: var(--navy);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem 5% 6rem 8%;
	position: relative;
	overflow: hidden;
}

.hero-left::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -100px;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: rgba(192, 57, 43, 0.08);
	pointer-events: none;
}

.hero-left::after {
	content: "";
	position: absolute;
	bottom: -60px;
	left: -60px;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.03);
	pointer-events: none;
}

.hero-tag {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--red-light);
	margin-bottom: 1.25rem;
	opacity: 0;
	animation: fadeUp 0.7s forwards 0.2s;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 4vw, 4rem);
	font-weight: 900;
	color: var(--white);
	line-height: 1.1;
	margin-bottom: 1.5rem;
	opacity: 0;
	animation: fadeUp 0.7s forwards 0.4s;
}

.hero-title em {
	font-style: italic;
	color: var(--mid-gray);
}

.hero-desc {
	font-size: 1rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.65);
	max-width: 420px;
	margin-bottom: 2.5rem;
	opacity: 0;
	animation: fadeUp 0.7s forwards 0.6s;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	opacity: 0;
	animation: fadeUp 0.7s forwards 0.8s;
}

.btn-primary {
	display: inline-block;
	padding: 0.85rem 2rem;
	background: var(--red);
	color: var(--white);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 2px;
	transition:
		background var(--transition),
		transform var(--transition);
}

.btn-primary:hover {
	background: var(--red-light);
	transform: translateY(-2px);
}

.btn-outline {
	display: inline-block;
	padding: 0.85rem 2rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--white);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 2px;
	transition:
		border-color var(--transition),
		background var(--transition),
		transform var(--transition);
}

.btn-outline:hover {
	border-color: var(--white);
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-2px);
}

.hero-right {
	flex: 1;
	background: var(--off-white);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem;
	position: relative;
	overflow: hidden;
}

.hero-cards {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
	max-width: 380px;
	opacity: 0;
	animation: fadeIn 1s forwards 1s;
}

.hero-card {
	background: var(--white);
	border-radius: 4px;
	padding: 1.75rem;
	border-left: 4px solid transparent;
	box-shadow: 0 2px 20px rgba(15, 31, 61, 0.06);
	transition:
		transform var(--transition),
		box-shadow var(--transition);
	cursor: default;
}

.hero-card:hover {
	transform: translateX(6px);
	box-shadow: 0 8px 32px rgba(15, 31, 61, 0.12);
}

.hero-card.web {
	border-left-color: var(--navy);
}
.hero-card.carpentry {
	border-left-color: var(--red);
}

.hero-card-icon {
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

.hero-card h3 {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 0.4rem;
}

.hero-card p {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.6;
}

/* ─── SECTION COMMON ─── */
section {
	padding: 6rem 8%;
}

.section-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 0.75rem;
}

.section-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 900;
	color: var(--navy);
	line-height: 1.15;
	margin-bottom: 1.25rem;
}

.section-subtitle {
	font-size: 1rem;
	color: #666;
	line-height: 1.75;
	max-width: 560px;
}

.divider {
	width: 48px;
	height: 3px;
	background: var(--red);
	margin: 1.5rem 0;
}

/* ─── ABOUT ─── */
#about {
	background: var(--white);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5rem;
	align-items: center;
}

.about-text p {
	font-size: 1rem;
	line-height: 1.8;
	color: #555;
	margin-bottom: 1rem;
}

.about-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.stat {
	padding: 1.75rem;
	background: var(--off-white);
	border-radius: 4px;
	border-top: 3px solid var(--navy);
	transition: transform var(--transition);
}

.stat:hover {
	transform: translateY(-4px);
}

.stat-number {
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--navy);
	line-height: 1;
	margin-bottom: 0.4rem;
}

.stat-number span {
	color: var(--red);
}

.stat-label {
	font-size: 0.8rem;
	font-weight: 500;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ─── SERVICES ─── */
#services {
	background: var(--off-white);
}

.services-header {
	text-align: center;
	margin-bottom: 4rem;
}

.services-header .section-subtitle {
	margin: 0 auto;
}

.services-header .divider {
	margin: 1.5rem auto;
}

.services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.service-category {
	background: var(--white);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 20px rgba(15, 31, 61, 0.05);
}

.service-cat-header {
	padding: 1.75rem 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.service-cat-header.web-header {
	background: var(--navy);
}
.service-cat-header.carpentry-header {
	background: var(--red);
}

.service-cat-icon {
	font-size: 2rem;
}

.service-cat-header h3 {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--white);
}

.service-cat-header p {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0.2rem;
}

.service-list {
	padding: 1.5rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.service-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	border-radius: 4px;
	transition: background var(--transition);
}

.service-item:hover {
	background: var(--off-white);
}

.service-item-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-top: 6px;
	flex-shrink: 0;
}

.web-dot {
	background: var(--navy);
}
.carpentry-dot {
	background: var(--red);
}

.service-item h4 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 0.2rem;
}

.service-item p {
	font-size: 0.8rem;
	color: #888;
	line-height: 1.5;
}

/* ─── GALLERY PREVIEW ─── */
#gallery-preview {
	background: var(--white);
}

.gallery-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.btn-dark {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	background: var(--navy);
	color: var(--white);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 2px;
	transition:
		background var(--transition),
		transform var(--transition);
}

.btn-dark:hover {
	background: var(--red);
	transform: translateY(-2px);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: 1rem;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	cursor: pointer;
	background: var(--light-gray);
}

.gallery-item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: #aaa;
	font-size: 0.8rem;
	transition: transform var(--transition);
}

.gallery-item:first-child .gallery-placeholder {
	aspect-ratio: unset;
	height: 100%;
	min-height: 360px;
}

.gallery-placeholder-icon {
	font-size: 2.5rem;
	opacity: 0.4;
}

.gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 31, 61, 0);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
}

.gallery-overlay span {
	color: var(--white);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity var(--transition),
		transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
	background: rgba(15, 31, 61, 0.55);
}

.gallery-item:hover .gallery-overlay span {
	opacity: 1;
	transform: translateY(0);
}

.gallery-item:hover .gallery-placeholder {
	transform: scale(1.04);
}

.gallery-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--navy);
	color: var(--white);
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.25rem 0.6rem;
	border-radius: 2px;
}

.gallery-tag.red {
	background: var(--red);
}

/* ─── CONTACT ─── */
#contact {
	background: var(--navy);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5rem;
	align-items: start;
}

#contact .section-label {
	color: rgba(255, 255, 255, 0.5);
}
#contact .section-title {
	color: var(--white);
}
#contact .section-subtitle {
	color: rgba(255, 255, 255, 0.6);
}
#contact .divider {
	background: var(--red);
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact-icon {
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.contact-item p {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.1rem;
}

.contact-item strong {
	font-size: 0.95rem;
	color: var(--white);
	font-weight: 500;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.form-group label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 2px;
	padding: 0.8rem 1rem;
	color: var(--white);
	font-family: var(--font-body);
	font-size: 0.9rem;
	outline: none;
	transition:
		border-color var(--transition),
		background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.09);
}

.form-group select option {
	background: var(--navy);
	color: var(--white);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.btn-submit {
	padding: 0.9rem 2.5rem;
	background: var(--red);
	color: var(--white);
	border: none;
	border-radius: 2px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background var(--transition),
		transform var(--transition);
	align-self: flex-start;
}

.btn-submit:hover {
	background: var(--red-light);
	transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
	background: var(--dark);
	padding: 2.5rem 8%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-logo {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 900;
	color: var(--white);
	text-decoration: none;
}

.footer-logo span {
	color: var(--red);
}

footer p {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.35);
}

.footer-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.footer-links a {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	transition: color var(--transition);
}

.footer-links a:hover {
	color: var(--white);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
	#hero,
	#about,
	#contact {
		grid-template-columns: 1fr;
	}

	.hero-left {
		padding: 5rem 6% 4rem;
	}

	.hero-right {
		padding: 3rem 6%;
	}

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

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

	.gallery-item:first-child {
		grid-column: span 2;
		grid-row: span 1;
	}

	.about-stats {
		grid-template-columns: 1fr 1fr;
	}

	.nav-links {
		display: none;
	}

	#about,
	#contact {
		gap: 3rem;
	}

	.form-row {
		grid-template-columns: 1fr;
	}
}
