/* ==========================================================================
   Grimming Holiday Home
   ========================================================================== */

/* ---------- Fonty (vše hostováno lokálně, licence OFL) ---------- */

@font-face { font-family: "Poppins"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/poppins-200.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 200; font-style: italic; font-display: swap; src: url("../fonts/poppins-200-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/poppins-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Jost – variabilní font, pokrývá řezy 300–400 */
@font-face { font-family: "Jost"; font-weight: 300 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 300 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/bodoni-moda-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/bodoni-moda-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ---------- Proměnné – tady se ladí vzhled ---------- */

:root {
	--c-dark: #242323;        /* hlavička, tlačítka, patička */
	--c-text: #242323;        /* nadpisy */
	--c-muted: #737373;       /* běžný text */
	--c-soft: #a0a09f;        /* popisky, kurzíva */
	--c-light: #f5f5f5;       /* pozadí kontaktu */
	--c-white: #fff;
	--c-line: #dcdcdc;

	--f-heading: "Jost", "Futura", "Century Gothic", sans-serif;
	--f-body: "Poppins", system-ui, sans-serif;
	--f-accent: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

	--header-h: 80px;
	--container: 980px;
	--section-gap: clamp(72px, 10vw, 140px);
	--gallery-ratio: 9 / 16;   /* poměr stran dlaždic v galerii, např. 3 / 4 nebo 1 / 1 */
}


/* ---------- Základ ---------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--f-body);
	font-weight: 200;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-muted);
	background: var(--c-white);
}

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

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

.container {
	width: min(100% - 40px, var(--container));
	margin-inline: auto;
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px; left: 16px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-white);
	color: var(--c-dark);
}
.skip-link:focus { top: 16px; }

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

.section { padding-block: var(--section-gap) 0; }

.section-title {
	font-family: var(--f-heading);
	font-weight: 300;
	font-size: clamp(22px, 2.4vw, 25px);
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
	color: var(--c-text);
	margin-bottom: clamp(32px, 4vw, 48px);
}


/* ---------- Tlačítka ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 32px;
	font-family: var(--f-body);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-white);
	background: var(--c-dark);
	border: 1px solid var(--c-dark);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--c-white); color: var(--c-dark); }

.btn--wide { min-width: min(100%, 430px); min-height: 56px; }

.btn--outline {
	background: transparent;
	border-color: var(--c-white);
	color: var(--c-white);
}
.btn--outline:hover { background: var(--c-white); color: var(--c-dark); }


/* ---------- Hlavička ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--c-dark);
	color: var(--c-white);
}

.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding-inline: 20px;
}

.nav__list {
	display: flex;
	gap: clamp(20px, 4.5vw, 64px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__link {
	font-weight: 300;
	font-size: 13px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-white);
	transition: color .2s;
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-soft); }

.site-header .btn { margin-left: clamp(0px, 2vw, 32px); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--c-white);
	cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 24px; height: 1px;
	margin-inline: auto;
	background: currentColor;
	transition: transform .25s, background-color .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	:root { --header-h: 64px; }

	.site-header__inner { justify-content: space-between; }
	.nav-toggle { display: block; }
	.site-header .btn { margin-left: auto; padding-inline: 20px; }

	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: var(--c-dark);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}
	.nav.is-open { max-height: 100vh; }
	.nav__list { flex-direction: column; gap: 0; padding: 8px 20px 24px; }
	.nav__link { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
}


/* ---------- Hero s videem ---------- */

.hero {
	position: relative;
	height: min(calc(100vh - var(--header-h)), 56.25vw);
	min-height: 420px;
	overflow: hidden;
	background: var(--c-dark) url("../img/hero-poster.jpg") center / cover no-repeat;
	color: var(--c-white);
}

.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::after {
	/* jemné ztmavení nahoře kvůli čitelnosti nadpisu */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 40%;
	background: linear-gradient(rgba(0,0,0,.25), transparent);
	pointer-events: none;
}

.hero__title {
	position: absolute;
	z-index: 1;
	top: clamp(40px, 6vw, 72px);
	left: 0; right: 0;
	text-align: center;
	text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.hero__title strong {
	display: block;
	font-family: var(--f-heading);
	font-weight: 400;
	font-size: clamp(32px, 4vw, 44px);
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.2;
}
.hero__title span {
	display: block;
	font-weight: 300;
	font-size: clamp(16px, 1.4vw, 20px);
	letter-spacing: .02em;
}


/* ---------- O nás ---------- */

.about__text {
	max-width: 600px;
	margin-inline: auto;
	font-size: 16px;
	line-height: 1.7;
}
.about__text p + p { margin-top: 1.6em; }

.about__cta { margin-top: 56px; text-align: center; }


/* ---------- Karta přes fotku (Pokoje, Recenze) ---------- */

.photo-card {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(420px, 42vw, 560px);
	padding: 48px 20px;
	background: var(--c-light) center / cover no-repeat;
}

.photo-card__box {
	width: min(100%, 392px);
	padding: 44px 40px 48px;
	background: var(--c-white);
	text-align: center;
}
.photo-card__box .section-title { margin-bottom: 24px; }

.photo-card__lead {
	font-style: italic;
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-soft);
	margin-bottom: 32px;
}

.rooms .photo-card { background-image: url("../img/gallery/14.jpg"); }
.review .photo-card { background-image: url("../img/review-bg.jpg"); }

.review__icon { width: 22px; height: 18px; margin: 0 auto 16px; color: var(--c-text); }
.review blockquote { margin: 0; }
.review blockquote p { margin-bottom: 0; }


/* ---------- Služby a Aktivity – mřížka 3 × 2 ---------- */

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 56px 40px;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: center;
}

.feature__icon {
	width: 44px; height: 32px;
	margin: 0 auto 14px;
	color: var(--c-muted);
}

.feature__title {
	font-weight: 500;
	font-size: 16px;
	color: var(--c-text);
	margin-bottom: 20px;
}

.feature__text {
	max-width: 220px;
	margin-inline: auto;
	font-style: italic;
	font-size: 15px;
	line-height: 1.6;
	color: var(--c-soft);
}

.feature__tip {
	display: inline-block;
	margin-top: 28px;
	padding: 8px 28px 9px;
	font-family: var(--f-accent);
	font-style: italic;
	font-size: 18px;
	line-height: 1.3;
	color: var(--c-white);
	background: var(--c-dark);
	border: 1px solid var(--c-dark);
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.feature__tip:hover { background: var(--c-white); color: var(--c-dark); }

@media (max-width: 760px) {
	.features { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (max-width: 480px) {
	.features { grid-template-columns: 1fr; }
}


/* ---------- Galerie (karusel + lightbox) ---------- */

.gallery { position: relative; --gallery-inset: clamp(20px, 2vw, 40px); }

.gallery__track {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0 var(--gallery-inset);
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gallery-inset);
	scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
	flex: 0 0 clamp(220px, 24vw, 354px);
	scroll-snap-align: start;
}

.gallery__btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--c-light);
	cursor: zoom-in;
}
.gallery__btn img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--gallery-ratio);
	object-fit: cover;
	transition: opacity .25s;
}
.gallery__btn:hover img { opacity: .88; }

.gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px; height: 64px;
	transform: translateY(-50%);
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	cursor: pointer;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.gallery__arrow svg { width: 20px; height: 40px; margin: auto; }
.gallery__arrow--prev { left: var(--gallery-inset); }
.gallery__arrow--next { right: var(--gallery-inset); }
.gallery__arrow[disabled] { opacity: 0; pointer-events: none; }

.lightbox {
	width: 100vw; height: 100vh;
	max-width: none; max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 20, 20, .95);
	color: var(--c-white);
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; place-items: center; }

.lightbox__img {
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 80px);
	object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.lightbox__close svg { width: 22px; height: 22px; margin: auto; }
.lightbox__nav { top: 50%; width: 60px; height: 80px; transform: translateY(-50%); }
.lightbox__nav svg { width: 20px; height: 40px; margin: auto; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

.lightbox__counter {
	position: absolute;
	bottom: 16px; left: 0; right: 0;
	text-align: center;
	font-size: 13px;
	opacity: .7;
}

@media (max-width: 600px) {
	.lightbox__img { max-width: 100vw; }
	.lightbox__nav { top: auto; bottom: 4px; transform: none; }
}


/* ---------- Kontakt ---------- */

.contact {
	margin-top: var(--section-gap);
	padding-block: var(--section-gap) 96px;
	background: var(--c-light);
}

.contact__info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 0;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
	font-style: italic;
	font-weight: 300;
	font-size: 16px;
	color: var(--c-text);
	text-align: center;
}
.contact__info li:not(:last-child)::after {
	content: "/";
	margin-inline: 24px;
	color: var(--c-soft);
	font-style: normal;
}
.contact__info a { text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }

.form {
	max-width: 600px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 30px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }

.form label {
	font-style: italic;
	font-weight: 300;
	font-size: 14px;
	color: var(--c-text);
}

.form input,
.form textarea {
	width: 100%;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 300;
	color: var(--c-text);
	background: var(--c-white);
	border: 1px solid transparent;
	border-radius: 0;
	transition: border-color .2s;
}
.form input { height: 36px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--c-dark); }
.form input::placeholder,
.form textarea::placeholder { color: var(--c-soft); font-style: italic; }

/* past na roboty – musí zůstat prázdné a skryté */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { grid-column: 1 / -1; width: 100%; text-transform: none; font-size: 15px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

.form__status {
	grid-column: 1 / -1;
	min-height: 1.6em;
	margin: 0;
	text-align: center;
	font-size: 15px;
	color: var(--c-text);
}
.form__status.is-error { color: #b3261e; }

@media (max-width: 560px) {
	.form { grid-template-columns: 1fr; }
	.contact__info { flex-direction: column; }
	.contact__info li::after { display: none; }
}


/* ---------- Mapa a patička ---------- */

.map iframe {
	width: 100%;
	height: 380px;
	border: 0;
}

.site-footer {
	padding: 20px;
	background: var(--c-dark);
	color: var(--c-white);
	text-align: center;
	font-size: 13px;
	font-weight: 300;
}

.site-footer__credit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}

.instagram {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-dark);
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	transition: transform .2s;
}
.instagram:hover { transform: scale(1.08); }
.instagram svg { width: 22px; height: 22px; }


/* ---------- Omezení animací ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
