/* Zákaznický portál – vzhled podle osetrenidreva.cz. Fonty jsou hostované u nás (bez Google Fonts kvůli GDPR). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400.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: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-ext-500.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500.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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600.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: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-ext-500.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500.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: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700.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; }

:root {
	--black: #1e1e1e;
	--text: #333;
	--muted: #6b6b6b;
	--accent: #d0a04c;
	--accent-hover: #d1b37e;
	--accent-soft: #d0a04c1a;
	--green: #004238;
	--paper: #f5f1ea;
	--light: #fafafa;
	--white: #fff;
	--stroke: #eee;
	--stroke-box: #e2e2e2;
	--error: #a8321e;
	--radius: 12px;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
	/* Ovládací prvky (tlačítka, štítky, popisky, hlavička) mají na webu Space Grotesk, Inter jen běžný text. */
	--font-ui: var(--font-heading);
	--tagline-bg: rgba(47, 140, 82, 0.05);
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

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

a {
	color: var(--green);
}

a:hover {
	color: var(--black);
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	color: var(--black);
	line-height: 1.2;
	margin: 0 0 0.5em;
}

h1 {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 700;
}

h2 {
	font-size: 1.3rem;
	font-weight: 700;
}

h3 {
	font-size: 1.05rem;
	font-weight: 500;
}

/* Okraj 5 % šířky okna jako na webu (.padding-global), obsah nejvýš 1040px. */
.container {
	width: min(90%, 1040px);
	margin: 0 auto;
}

/* Hlavička – zelený pruh i bílá lišta zůstávají při rolování nahoře, stejně jako na webu. */
.site-top {
	position: sticky;
	top: 0;
	z-index: 80;
}

/* Stejně jako na webu: textura dřeva pod zeleným překryvem (90 %). */
.top-bar {
	background-color: var(--green);
	background-image: linear-gradient(rgba(0, 66, 56, 0.9), rgba(0, 66, 56, 0.9)), url("top-bar-wood.png");
	background-position: 0 0, 50% 50%;
	background-size: auto, auto;
	color: var(--white);
	font-family: var(--font-ui);
	font-size: 0.925rem;
}

.top-bar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 2.75rem;
	flex-wrap: wrap;
}

.top-bar a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--white);
	font-weight: 500;
	white-space: nowrap;
}

.top-bar__slogan {
	margin: 0;
	width: 100%;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: #ffffffb3;
}

.top-bar .top-bar__slogan a {
	display: inline;
	white-space: normal;
}

.top-bar__mobile {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.top-bar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffc107;
	color: var(--green);
}

.top-bar__icon svg {
	width: 14px;
	height: 14px;
}

.top-bar a:hover {
	color: var(--accent-hover);
}

.site-header {
	font-family: var(--font-ui);
	background: var(--white);
	border-bottom: 1px solid var(--stroke);
}

/* Hlavička je na webu širší než obsah (max 85rem, okraj 2 %). */
.site-header .container {
	width: min(96%, 85rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 5rem;
	flex-wrap: wrap;
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
}

.site-logo img {
	width: 150px;
	height: auto;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.site-header__phone svg {
	width: 14px;
	height: 14px;
}

.tagline {
	display: inline-block;
	background: var(--tagline-bg);
	color: var(--green);
	font-family: var(--font-ui);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 5px 16px;
	border-radius: 4px;
	margin-bottom: 12px;
}

/* Obsah */
main {
	flex: 1;
	padding: 32px 0 48px;
}

.page-intro {
	margin-bottom: 24px;
}

.page-intro p {
	margin: 0;
	color: var(--muted);
}

.back-link {
	display: inline-block;
	margin-bottom: 16px;
	text-decoration: none;
	font-family: var(--font-ui);
	font-weight: 500;
}

.card {
	background: var(--white);
	border: 1px solid var(--stroke-box);
	border-radius: var(--radius);
	padding: 20px;
}

.card + .card {
	margin-top: 16px;
}

/* Breakpointy jako na webu (Webflow): 991 / 767 / 479 px. */
@media (max-width: 991px) {
	.top-bar__slogan {
		font-size: 0.7rem;
	}
}

@media (max-width: 767px) {
	.top-bar .container {
		min-height: auto;
		padding-top: 0.3rem;
		padding-bottom: 0.3rem;
	}

	/* .site-header před třídou, jinak to přebije .button { display } níže v souboru. */
	.top-bar__slogan,
	.site-header .site-header__phone {
		display: none;
	}

	.top-bar__mobile {
		display: flex;
	}

	.site-header .container {
		min-height: 4rem;
	}

	.card {
		padding: 1.5rem 1rem;
	}
}

@media (max-width: 479px) {
	.top-bar .container {
		padding-top: 0.2rem;
		padding-bottom: 0.2rem;
	}

	.site-header .container {
		width: 90%;
	}

	.site-logo img {
		width: 140px;
	}

	.tagline {
		font-size: 0.7rem;
	}
}

.card--narrow {
	max-width: 480px;
	margin: 0 auto;
}

.order-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.order-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.order-card:hover {
	border-color: var(--accent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	color: inherit;
}

.order-card h2 {
	margin: 0;
	font-size: 1.15rem;
}

.status {
	align-self: flex-start;
	display: inline-block;
	background: var(--accent-soft);
	color: var(--green);
	font-family: var(--font-ui);
	font-size: 0.85rem;
	font-weight: 500;
	padding: 2px 10px;
	border-radius: 999px;
}

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 16px;
	margin: 0;
}

.facts dt {
	color: var(--muted);
}

.facts dd {
	margin: 0;
	color: var(--black);
	font-weight: 500;
}

@media (max-width: 479px) {
	.facts {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.facts dd {
		margin-bottom: 8px;
	}
}

.order-title {
	margin-top: 12px;
}

.text-block {
	white-space: pre-line;
	margin: 0;
}

.empty {
	text-align: center;
	color: var(--muted);
	padding: 32px 20px;
}

/* Dokumenty */
.document-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.document-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--stroke);
	flex-wrap: wrap;
}

.document-list li:first-child {
	border-top: 0;
}

.document-list__meta {
	display: block;
	font-size: 0.875rem;
	color: var(--muted);
}

/* Fotky */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.photo-grid a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--light);
}

.photo-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(30, 30, 30, 0.9);
	cursor: zoom-out;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

/* Formuláře a tlačítka */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--black);
	font: 500 1rem var(--font-ui);
	text-decoration: none;
	cursor: pointer;
	/* Zlatá záře jako u hlavních výzev na webu (.zlata-shadow). */
	box-shadow: 0 0 25px -10px var(--accent);
	transition: all 0.14s;
}

/* Hover jako na webu: světlejší zlatá a text vybledne na 50 %. */
.button:hover,
.button:focus-visible {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: rgba(30, 30, 30, 0.5);
}

.button:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

.button--outline {
	background: var(--white);
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: none;
}

/* Obrysové tlačítko na webu: pozadí zůstává bílé, okraj zesvětlí, text vybledne. */
.button--outline:hover,
.button--outline:focus-visible {
	background: var(--white);
	border-color: var(--accent-hover);
	color: #d0a04c80;
}

.button--small {
	min-height: 36px;
	padding: 6px 16px;
	font-size: 0.9rem;
}

.button--block {
	width: 100%;
}

.inline-form {
	display: inline;
	margin: 0;
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	font-family: var(--font-ui);
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--black);
}

.field input {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--stroke-box);
	border-radius: 8px;
	font: 1rem var(--font-body);
	color: var(--black);
	background: var(--white);
}

.field input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}

.field-error {
	display: block;
	margin-top: 4px;
	color: var(--error);
	font-size: 0.9rem;
}

.notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	background: var(--accent-soft);
	color: var(--green);
	border: 1px solid #d0a04c55;
}

.notice--error {
	background: #a8321e0f;
	color: var(--error);
	border-color: #a8321e40;
}

/* Patička */
.site-footer {
	background: var(--green);
	color: #ffffffcc;
	padding: 32px 0;
	font-size: 0.925rem;
}

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

.site-footer a:hover {
	color: var(--accent-hover);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 24px;
}

.site-footer h2 {
	color: var(--white);
	font-size: 1rem;
	margin-bottom: 8px;
}

.site-footer p {
	margin: 0 0 4px;
}

.site-footer__bottom {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #ffffff26;
	font-size: 0.85rem;
}
