/* Barevná paleta webu */
:root {
	--ink: #29241f;
	--muted: #7a7268;
	--paper: #faf8f4;
	--sand: #eee8df;
	--accent: #97764e;
	--line: #ded7cc;
}

/* Základní nastavení a společné prvky */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.65 Arial, sans-serif;
}

button,
a,
input,
textarea {
	font: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	cursor: pointer;
}

img {
	display: block;
	width: 100%;
	object-fit: cover;
}

button:focus-visible,
a:focus-visible {
	outline: 3px solid #b39262;
	outline-offset: 5px;
}

.wrap {
	width: min(1240px, calc(100% - 80px));
	margin: auto;
}

/* Horní informační pruh, hlavička a navigace */
.topline {
	background: var(--ink);
	color: #e3d9cc;
	text-align: center;
	font-size: 11px;
	letter-spacing: 2px;
	padding: 8px 20px;
}

.header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(250, 248, 244, .97);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	min-height: 95px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.logo {
	font: 43px/1 Georgia, serif;
	letter-spacing: 8px;
}

.logo small {
	display: block;
	font: 8px/1 Arial, sans-serif;
	letter-spacing: 3px;
	margin-top: 9px;
}

.nav {
	display: flex;
	gap: 30px;
	align-items: center;
	font-size: 13px;
}

.nav a:hover {
	color: var(--accent);
}

.nav .contact-link {
	border-bottom: 1px solid var(--accent);
	padding-bottom: 5px;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	padding: 8px 14px;
}

/* Úvodní slider — fotografie, překryv a obsah */
.hero {
	position: relative;
	min-height: 620px;
	height: min(750px, 77vh);
	isolation: isolate;
	background: #4c463e;
	overflow: hidden;
	color: white;
}

.hero-image {
	position: absolute;
	inset: 0;
	height: 100%;
	z-index: -2;
	opacity: 0;
	transition: opacity 1.8s ease-in-out;
	object-position: center 55%;
}

/* Aktivní snímek a výchozí obrázek před spuštěním JavaScriptu. */
.hero-image.is-active,
.hero-image:not([aria-hidden]):not(.is-initialized) {
	opacity: 1;
}

/* Respektování systémové předvolby pro omezení pohybu */
@media (prefers-reduced-motion: reduce) {
	.hero-image {
		transition: none;
	}

}

.hero:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(17, 16, 13, .74), rgba(17, 16, 13, .22) 70%);
	z-index: -1;
}

.hero-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-bottom: 30px;
}

.eyebrow {
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: bold;
	color: var(--accent);
	margin: 0 0 22px;
}

.hero .eyebrow {
	color: #e0c7a7;
}

.hero h1 {
	font: clamp(42px, 5.5vw, 76px)/1.1 Georgia, serif;
	font-weight: normal;
	letter-spacing: -2px;
	margin: 0 0 25px;
	max-width: 780px;
}

.hero-copy {
	max-width: 420px;
	font-size: 15px;
	color: #e4ded6;
	margin: 0 0 33px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	padding: 15px 24px;
	background: var(--accent);
	color: white;
	border: 1px solid var(--accent);
	font-size: 12px;
	letter-spacing: 1px;
	transition: background .2s;
}

.button:hover {
	background: #7a5c39;
}

.button.outline {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.button.outline:hover {
	background: var(--sand);
}

/* Ovládání slideru a ukazatel aktuálního snímku */
.hero-controls {
	position: absolute;
	bottom: 35px;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dots {
	display: flex;
	gap: 12px;
}

.dot {
	border: 0;
	background: #ffffff60;
	width: 28px;
	height: 24px;
	padding: 10px 0;
	background-clip: content-box;
	cursor: pointer;
}

.dot[aria-current=true] {
	background-color: #fff;
	width: 48px;
}

.slide-count {
	font-size: 11px;
	letter-spacing: 3px;
}

/* Představení značky */
.intro {
	padding: 85px 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 100px;
	align-items: center;
}

h2 {
	font: normal clamp(32px, 3vw, 46px)/1.2 Georgia, serif;
	letter-spacing: -1px;
	margin: 0 0 24px;
}

.intro p:not(.eyebrow) {
	color: var(--muted);
	font-size: 14px;
}

.text-link {
	display: inline-flex;
	gap: 35px;
	font-size: 12px;
	border-bottom: 1px solid var(--accent);
	padding: 10px 0;
}

.intro-photo {
	position: relative;
	padding: 0 0 22px 22px;
}

.intro-photo:before {
	content: '';
	position: absolute;
	inset: 22px 22px 0 0;
	background: var(--sand);
	z-index: -1;
}

.intro-photo img {
	height: 370px;
}

/* Přehled hlavních hodnot značky */
.values {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 28px 0;
	margin-bottom: 80px;
	gap: 35px;
}

.value {
	display: flex;
	align-items: center;
	gap: 20px;
}

.value svg {
	width: 35px;
	height: 35px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.3;
	flex-shrink: 0;
}

.value strong {
	display: block;
	font: 20px Georgia, serif;
}

.value span {
	font-size: 12px;
	color: var(--muted);
}

/* Katalog produktů, filtry a produktové karty */
.catalog {
	background: #f0ece5;
	padding: 75px 0 80px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	margin-bottom: 32px;
}

.section-head h2 {
	margin-bottom: 0;
}

.filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.filter {
	background: none;
	border: 1px solid var(--line);
	color: var(--muted);
	padding: 8px 16px;
	font-size: 11px;
}

.filter[aria-pressed=true] {
	background: var(--ink);
	color: white;
	border-color: var(--ink);
}

.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.product[hidden] {
	display: none;
}

.product .category-link {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	color: var(--ink);
}

/* Fotografie kategorií drží poměr stran 3:2 na všech velikostech obrazovky. */
.product-image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #e4ddd3;
	position: relative;
}

.product-image img {
	height: 100%;
	transition: transform .5s;
}

.product .category-link:hover img {
	transform: scale(1.05);
}

.product-image span {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: var(--paper);
	width: 30px;
	height: 30px;
	text-align: center;
	font-size: 20px;
}

.product-category {
	color: var(--muted);
	font-size: 10px;
	letter-spacing: 1px;
	margin: 18px 0 5px;
	text-transform: uppercase;
}

.product h3 {
	font: 23px Georgia, serif;
	margin: 24px 0 4px;
}

.price {
	font-size: 12px;
}

.demo-note {
	font-size: 11px;
	color: var(--muted);
	margin: 28px 0 0;
}

/* Inspirace a realizované interiéry */
.projects {
	padding: 85px 0;
}

.project-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 28px;
}

.project {
	position: relative;
	overflow: hidden;
	min-height: 390px;
	background: #50473e;
}

.project img {
	height: 100%;
	position: absolute;
	transition: transform .5s;
}

.project:hover img {
	transform: scale(1.03);
}

.project:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, #16120ed9);
}

.project-caption {
	position: absolute;
	bottom: 30px;
	left: 30px;
	right: 30px;
	z-index: 1;
	color: white;
}

.project-caption small {
	font-size: 10px;
	letter-spacing: 2px;
}

.project-caption h3 {
	font: 28px Georgia, serif;
	margin: 7px 0;
}

/* Kontaktní sekce */
.contact {
	background: var(--sand);
	padding: 65px 0;
}

.contact-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 35px;
}

.contact h2 {
	margin-bottom: 12px;
}

.contact p {
	font-size: 14px;
	color: var(--muted);
	max-width: 550px;
}

/* Patička webu */
.footer {
	background: var(--ink);
	color: #e5ddd2;
	padding: 60px 0 20px;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px;
}

.footer-showroom,
.footer-map {
	width: calc(100% * 2 / 3);
	aspect-ratio: 558 / 363;
}

/* Výřez soustředí fotografii na výlohu a vstup do prodejny. */
.footer-showroom {
	align-self: start;
	position: relative;
	overflow: hidden;
	border-radius: 2px;
}

.footer-showroom img {
	position: absolute;
	top: -32%;
	left: -15%;
	width: 130.3%;
	height: auto;
}

.footer-map {
	display: block;
	border: 0;
	margin-bottom: 8px;
}

.footer-contacts {
	font-style: normal;
	overflow-wrap: anywhere;
}

.footer p,
.footer a:not(.logo) {
	font-size: 12px;
	color: #b9afa1;
}

.footer h3 {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0 0 20px;
}

.footer-links {
	display: grid;
	gap: 10px;
}

.footer-bottom {
	border-top: 1px solid #ffffff20;
	margin-top: 45px;
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	font-size: 10px;
	color: #b9afa1;
}

/* Modální okno s detailem produktu */
dialog {
	border: 0;
	padding: 0;
	background: var(--paper);
	color: var(--ink);
	width: min(800px, calc(100% - 32px));
	max-height: 90vh;
	overflow: auto;
}

dialog::backdrop {
	background: #16120dbb;
}

.dialog-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.dialog-inner img {
	height: 100%;
	min-height: 350px;
}

.dialog-content {
	padding: 45px 30px;
}

.dialog-content h2 {
	font-size: 32px;
}

.dialog-content p {
	font-size: 14px;
	color: var(--muted);
}

.dialog-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border: 0;
	background: var(--paper);
	width: 34px;
	height: 34px;
	font-size: 24px;
}

.dialog-content .button {
	margin-top: 15px;
}

/* Zpráva pro návštěvníky s vypnutým JavaScriptem */
.no-js-note {
	padding: 15px;
	text-align: center;
}

/* Při otevřeném detailu produktu se stránka na pozadí neposouvá. */
body:has(dialog[open]) {
	overflow: hidden;
}

/* Velké obrazovky — od 1600 px */
@media (min-width: 1600px) {
	.hero {
		height: 750px;
	}

}

/* Tablety a menší obrazovky — do 1000 px */
@media (max-width: 1000px) {
	.footer-grid {
		gap: 20px;
	}

	.wrap {
		width: calc(100% - 48px);
	}

	.nav {
		gap: 18px;
	}

	.intro {
		gap: 40px;
	}

	.products {
		gap: 18px;
		grid-template-columns: repeat(2, 1fr);
	}

	.hero {
		min-height: 560px;
	}

	.values {
		gap: 20px;
	}

	.value {
		gap: 12px;
	}

	.value strong {
		font-size: 17px;
	}

}

/* Mobilní zobrazení — do 700 px */
@media (max-width: 700px) {
	.wrap {
		width: calc(100% - 36px);
	}

	.topline {
		font-size: 9px;
		letter-spacing: 1px;
	}

	.header-inner {
		min-height: 78px;
	}

	.logo {
		font-size: 33px;
	}

	.menu-toggle {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		padding: 20px;
		box-shadow: 0 12px 15px #0001;
		align-items: stretch;
	}

	.nav.open {
		display: flex;
		flex-direction: column;
	}

	.nav a {
		padding: 8px;
	}

	.hero {
		height: 590px;
		min-height: 0;
	}

	.hero h1 {
		font-size: 47px;
		letter-spacing: -1.5px;
	}

	.hero-inner {
		padding-bottom: 40px;
	}

	.hero-copy {
		max-width: 310px;
		font-size: 14px;
	}

	.intro {
		grid-template-columns: 1fr;
		padding: 55px 0;
		gap: 30px;
	}

	.intro-photo img {
		height: 300px;
	}

	.values {
		grid-template-columns: 1fr;
		margin-bottom: 50px;
		padding: 25px 0;
		gap: 25px;
	}

	.catalog,
	.projects {
		padding: 50px 0;
	}

	.section-head {
		align-items: start;
		flex-direction: column;
		gap: 12px;
	}

	/* Na mobilu se nabídka skládá do jednoho sloupce. */
	.products {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.product h3 {
		font-size: 21px;
	}

	.project-grid {
		grid-template-columns: 1fr;
	}

	.project {
		min-height: 330px;
	}

	.contact-inner {
		align-items: start;
		flex-direction: column;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 6px;
	}

	.dialog-inner {
		grid-template-columns: 1fr;
	}

	.dialog-inner img {
		height: 230px;
		min-height: 0;
	}

	.dialog-content {
		padding: 25px;
	}

	.eyebrow {
		margin-bottom: 16px;
	}

}

/* Respektování systémové předvolby pro omezení pohybu */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*:before,
	*:after {
		transition: none!important;
	}

}

/* Doplňující poznámka v sekci inspirace */
.inspiration-note {
	font-size: 12px;
	color: var(--muted);
}

/* Odcházející obsah slideru překrývá nový obsah během prolínání. */
.hero-content-outgoing {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Karty kategorií — název a doplňující popis bez produktové ceny. */
.product h3 {
	overflow-wrap: anywhere;
}

.category-description {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

/* Přehled podkategorií po výběru hlavní kategorie. */
.category-back {
	margin-bottom: 28px;
}

.subcategory-heading {
	font: 28px Georgia, serif;
	margin: 0 0 20px;
}

.subcategories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.subcategories li {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--paper);
}

.subcategories img {
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
}

.subcategories h4 {
	font: 23px Georgia, serif;
	margin: 24px 20px;
	overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
	.subcategories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.subcategories {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Ukázkový katalog klasických sedacích souprav a detail modelu. */
.catalog-breadcrumbs {
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--muted);
}

.catalog-breadcrumbs a:hover {
	text-decoration: underline;
}

.subcategory-link {
	display: block;
}

.subcategory-link:hover h4 {
	color: var(--accent);
}

.sofa-detail {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 40px;
	align-items: start;
}

.sofa-gallery {
	position: sticky;
	top: 120px;
}

.sofa-photo {
	display: block;
	position: relative;
	background: var(--paper);
	cursor: zoom-in;
}

.sofa-photo img {
	aspect-ratio: 9 / 7;
	height: auto;
	object-fit: contain;
}

.sofa-zoom {
	display: block;
	padding: 12px 16px;
	font-size: 12px;
	text-align: right;
	color: var(--muted);
}

.sofa-description {
	border-top: 1px solid var(--line);
	padding-top: 28px;
	margin-top: 28px;
}

.sofa-description p {
	color: var(--muted);
}

.sofa-enquiry {
	margin-top: 28px;
	padding: 24px;
	background: var(--paper);
	border: 1px solid var(--line);
}

.sofa-enquiry p {
	margin: 0 0 16px;
}

.sofa-phone {
	display: block;
	margin-top: 16px;
	font-size: 14px;
}

.photo-dialog {
	width: min(1100px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	background: var(--paper);
	padding: 44px 16px 16px;
}

.photo-dialog img {
	max-height: calc(100dvh - 165px);
	width: 100%;
	object-fit: contain;
}

.photo-dialog-close {
	position: absolute;
	top: 4px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 28px;
}

.sofa-detail h3 {
	font: 32px Georgia, serif;
	margin: 0 0 20px;
}

.sofa-specs {
	margin: 24px 0;
}

.sofa-specs dt {
	font-weight: bold;
}

.sofa-specs dd {
	margin: 4px 0 16px;
	color: var(--muted);
}

@media (max-width: 700px) {
	.sofa-gallery {
		position: static;
	}

	.sofa-detail {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* Náhledy galerie a cena v detailu produktu. */
.sofa-thumbnails {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.sofa-thumbnails a {
	padding: 3px;
	border: 2px solid transparent;
	background: var(--paper);
}

.sofa-thumbnails a[aria-current="true"] {
	border-color: var(--accent);
}

.sofa-thumbnails img {
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: contain;
}

.sofa-price {
	display: grid;
	gap: 6px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.sofa-price span {
	font-size: 13px;
	color: var(--muted);
}

.sofa-price strong {
	font: 30px Georgia, serif;
}

.photo-dialog-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	margin-top: 12px;
}

.photo-dialog-controls button {
	width: 44px;
	height: 40px;
	border: 1px solid var(--line);
	background: var(--paper);
}
