/* Barvy projektu Nové Dvory (Figma nove-dvory-01) + neutrální tóny pro firmu */
:root {
	--gold: #d5ac78;
	--green: #7c886b;
	--anthracite: #2a2b2d;
	--paper: #f6f3ee;
	--muted: #6b6c6e;
	--line: rgb(42 43 45 / 0.12);
	--white: #fff;

	--font: "roc-grotesk", system-ui, sans-serif;
	--font-condensed: "roc-grotesk-condensed", "roc-grotesk", system-ui, sans-serif;

	--gutter: clamp(20px, 5vw, 96px);
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--anthracite);
	font-family: var(--font);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

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

p,
ul {
	margin: 0;
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ---------- Rozvržení: firma vlevo, projekt vpravo ---------- */

.page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100svh;
}

/* ---------- Firma ---------- */

.company {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 48px var(--gutter) 40px;
	border-top: 3px solid var(--gold);
}

.company__logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4em;
	font-weight: 600;
	font-size: 28px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.company__logo span {
	color: var(--green);
	font-family: var(--font-condensed);
	font-weight: 500;
	font-size: 0.6em;
	letter-spacing: 0.28em;
}

.company__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 620px;
}

.company__title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(34px, 3.2vw, 60px);
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-wrap: balance;
}

.company__text {
	margin-top: 28px;
	color: var(--muted);
	font-size: 19px;
	line-height: 1.6;
}

.company__services {
	display: grid;
	gap: 12px;
	margin-top: 32px;
	padding: 0;
	list-style: none;
	font-size: 17px;
	line-height: 1.4;
}

.company__services li {
	display: flex;
	align-items: baseline;
	gap: 14px;
}

.company__services li::before {
	content: "";
	flex: none;
	width: 14px;
	height: 2px;
	background: var(--gold);
	transform: translateY(-0.3em);
}

.company__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 40px;
}

.contact-link {
	color: var(--anthracite);
	font-family: var(--font-condensed);
	font-weight: 500;
	font-size: 22px;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-bottom: 2px solid var(--gold);
	transition: color 0.2s;
}

.contact-link:hover {
	color: var(--green);
}

.company__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.company__footer p {
	max-width: 360px;
}

.company__footer strong {
	color: var(--anthracite);
	font-weight: 500;
}

/* ---------- Projekt: celá pravá půlka je jedna klikací dlaždice ---------- */

.project-tile {
	display: flex;
}

.project {
	position: relative;
	flex: 1;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
	color: var(--white);
	text-decoration: none;
}

.project:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: -3px;
}

.project__bg,
.project__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.project__bg {
	z-index: -2;
}

.project__bg img {
	object-fit: cover;
	object-position: 50% 50%;
	transition: transform 0.6s ease;
}

.project:hover .project__bg img,
.project:focus-visible .project__bg img {
	transform: scale(1.04);
}

/* Tmavý přechod zespodu kvůli čitelnosti textu */
.project::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(0deg, rgb(17 19 6 / 0.85) 25%, rgb(15 22 4 / 0) 65%);
}

.project__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 48px var(--gutter);
}

.project__badge {
	display: block;
	padding: 10px 20px;
	background: var(--green);
	font-family: var(--font-condensed);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.project__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 28px;
}

/* Logo je tmavé, na fotce ho zesvětlíme */
.project__mark {
	width: 72px;
	height: auto;
	filter: brightness(0) invert(1);
}

.project__title {
	display: block;
	margin-top: 18px;
	font-weight: 600;
	font-size: clamp(36px, 3.4vw, 64px);
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.project__tagline {
	display: block;
	margin-top: 10px;
	color: var(--gold);
	font-family: var(--font-condensed);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.project__text {
	display: block;
	max-width: 440px;
	margin-top: 20px;
	font-size: 19px;
	line-height: 1.5;
}

.project__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
	padding: 18px 40px;
	border-radius: 60px;
	background: var(--gold);
	color: var(--anthracite);
	font-family: var(--font-condensed);
	font-weight: 500;
	font-size: 19px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: background-color 0.2s;
}

.project:hover .project__link,
.project:focus-visible .project__link {
	background: var(--white);
}

/* ---------- Mobil a tablet: pod sebou ---------- */

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

	.company {
		gap: 40px;
		padding-top: 32px;
	}

	.project {
		min-height: 80vh;
		min-height: 80svh;
	}
}

@media (max-width: 767.98px) {
	.company__logo {
		font-size: 22px;
	}

	.company__text {
		font-size: 17px;
	}

	.contact-link {
		font-size: 20px;
	}

	.project__content {
		padding-block: 32px;
	}

	.project__bg img {
		object-position: 58% 50%;
	}
}
