/*
 * Martin Pavlov — design system
 * Owned by the design-system agent. Page agents: use these classes,
 * put page-specific tweaks in assets/css/pages/{slug}.css (.p-{slug}-*).
 *
 * Tokens come from theme.json presets:
 *   --wp--preset--color--green | lime | petrol | petrol-deep | mist | white
 *   --wp--preset--font-family--asap
 * Breakpoints: 720px (grids), 800px (nav), 1000px (wide grids / hero split).
 */

:root {
	--mp-green: var(--wp--preset--color--green, #05D16E);
	--mp-lime: var(--wp--preset--color--lime, #CDF534);
	--mp-petrol: var(--wp--preset--color--petrol, #044653);
	--mp-petrol-deep: var(--wp--preset--color--petrol-deep, #0D3B46);
	--mp-mist: var(--wp--preset--color--mist, #EDF3F3);
	--mp-white: var(--wp--preset--color--white, #FFFFFF);
	--mp-text: #0C3642;
	--mp-text-soft: #3D5F68;
	--mp-font: var(--wp--preset--font-family--asap, 'Asap', 'Segoe UI', system-ui, sans-serif);
	--mp-section-pad: clamp(3.5rem, 8vw, 6.5rem);
	--mp-radius-card: 24px;
	--mp-shadow-card: 0 8px 30px rgba(4, 70, 83, .08);
	--mp-blob-radius: 45% 55% 52% 48% / 42% 46% 54% 58%;
}

/* ---------------------------------------------------------------------------
 * Base reset
 * ------------------------------------------------------------------------ */

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

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

body {
	margin: 0;
	font-family: var(--mp-font);
	color: var(--mp-text);
	line-height: 1.6;
	overflow-wrap: break-word;
}

img,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--mp-petrol);
	font-weight: 700;
	line-height: 1.15;
}

h2 {
	font-size: clamp(1.75rem, 1.35rem + 2vw, 2.5rem);
	font-weight: 800;
}

h3 {
	font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--mp-petrol);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* Focus — every interactive element, keyboard-visible. */
:focus-visible {
	outline: 3px solid #05D16E;
	outline-offset: 2px;
}

.section--green :focus-visible,
.proof-band :focus-visible {
	outline-color: var(--mp-petrol);
}

/* Reduced motion — kill transitions/animations globally. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* WP layout guards: patterns are full-bleed <section> bands sitting directly
 * inside the post content block — undo constrained max-width and block gap. */
.wp-block-post-content > * {
	max-width: none;
	margin-block-start: 0;
}

/* Same guard one level up: block-gap would otherwise leave a white strip
 * between header / main / footer. Bands must butt up against each other. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------------ */

.container {
	max-width: 1160px;
	margin-inline: auto;
	padding-inline: 20px;
}

.section {
	position: relative;
	overflow: clip;
	padding-block: var(--mp-section-pad);
}

.section--green {
	background: var(--mp-green);
	color: var(--mp-petrol);
}

.section--green .lead {
	color: var(--mp-petrol);
}

.section--mist {
	background: var(--mp-mist);
}

.section--petrol {
	background: var(--mp-petrol);
	color: var(--mp-mist);
}

.section--petrol h1,
.section--petrol h2,
.section--petrol h3,
.section--petrol h4 {
	color: var(--mp-white);
}

.section--petrol a {
	color: var(--mp-lime);
}

.section--petrol .lead {
	color: var(--mp-mist);
}

.section--petrol .eyebrow {
	color: var(--mp-lime);
}

.section__head {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 0 auto clamp(2rem, 5vw, 3.25rem);
	text-align: center;
}

.grid-2,
.grid-3,
.grid-4 {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
	.grid-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------------------
 * Typography
 * ------------------------------------------------------------------------ */

.eyebrow {
	display: inline-block;
	margin-bottom: 0.75em;
	color: var(--mp-petrol);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lead {
	font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
	font-weight: 500;
	line-height: 1.55;
	color: var(--mp-text-soft);
}

.h-display {
	font-size: clamp(2.5rem, 6vw, 4.25rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: var(--mp-petrol);
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.8em 1.8em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--mp-mist);
	color: var(--mp-petrol);
	font-family: var(--mp-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--mp-lime);
	color: var(--mp-petrol);
}

.btn--primary:hover {
	background: #BCE428;
}

.btn--dark {
	background: var(--mp-petrol);
	color: var(--mp-white);
}

.btn--dark:hover {
	background: #03323C;
}

.btn--ghost {
	background: transparent;
	border-color: var(--mp-petrol);
	color: var(--mp-petrol);
}

.btn--ghost:hover {
	background: rgba(4, 70, 83, 0.08);
}

/* ---------------------------------------------------------------------------
 * Blob language
 * ------------------------------------------------------------------------ */

.badge-blob {
	display: inline-block;
	padding: 0.45em 1.1em;
	background: var(--mp-lime);
	border-radius: 1.25em 2em 1.25em 2em;
	color: var(--mp-petrol);
	font-weight: 700;
	line-height: 1.3;
}

.quote-mark {
	display: block;
	color: var(--mp-lime);
	font-size: clamp(3.5rem, 6vw, 5rem);
	font-weight: 800;
	line-height: 0.4;
	margin-bottom: 0.18em;
	user-select: none;
}

/* Decorative absolute shapes — parent .section provides position + clip.
 * Default size is a hint; size/position per use via page CSS or the
 * contextual rules below (hero, proof-band). */
.blob {
	position: absolute;
	z-index: 0;
	width: 260px;
	height: 230px;
	border-radius: var(--mp-blob-radius);
	pointer-events: none;
}

.blob--mist {
	background: var(--mp-mist);
}

.blob--green {
	background: var(--mp-green);
}

.blob--lime {
	background: var(--mp-lime);
}

/* ---------------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------------ */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: var(--mp-white);
	border-radius: var(--mp-radius-card);
	box-shadow: var(--mp-shadow-card);
}

.card h2,
.card h3 {
	font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
	line-height: 1.2;
}

.card p {
	margin-bottom: 1.25rem;
}

.card > .btn {
	align-self: flex-start;
	margin-top: auto;
}

.card--dark {
	background: var(--mp-petrol-deep);
	color: var(--mp-white);
	box-shadow: 0 8px 30px rgba(4, 70, 83, 0.22);
}

.card--dark h1,
.card--dark h2,
.card--dark h3,
.card--dark h4 {
	color: var(--mp-white);
}

.card--dark a {
	color: var(--mp-lime);
}

.card--dark a.btn--primary {
	color: var(--mp-petrol);
}

.card__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	background: var(--mp-green);
	border-radius: 50%;
	color: var(--mp-white);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
}

/* ---------------------------------------------------------------------------
 * Proof band — green rounded band with one huge number
 * ------------------------------------------------------------------------ */

/* Sits inside a .container — a narrower card that lifts off the page, not a
 * full-bleed band. */
.proof-band {
	position: relative;
	overflow: clip;
	max-width: 880px;
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
	background: var(--mp-green);
	border-radius: 36px 52px 40px 56px;
	box-shadow: 0 18px 44px rgba(4, 70, 83, 0.16);
	color: var(--mp-petrol);
	text-align: center;
}

.proof-band p {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin-inline: auto;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	font-weight: 600;
}

.proof-band p.proof-band__number,
.proof-band__number {
	display: block;
	margin-bottom: 0.15em;
	color: var(--mp-petrol);
	font-size: clamp(2.75rem, 7vw, 5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------------
 * Hero — green band, giant mist blob, portrait bottom-anchored
 * ------------------------------------------------------------------------ */

.hero {
	background: var(--mp-green);
	color: var(--mp-petrol);
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 40px;
	align-items: center;
	grid-template-columns: minmax(0, 1fr);
}

.hero__content {
	max-width: 640px;
}

.hero__content .h-display {
	margin-bottom: 0.35em;
}

.hero__content .lead {
	margin-bottom: 1.75rem;
}

/* Landscape visual placeholder in the hero content column (per wireframe). */
.ph.hero__visual {
	aspect-ratio: auto;
	width: 100%;
	height: clamp(140px, 18vw, 210px);
	margin-top: 0.25rem;
}

/* Real photos in placeholder slots. */
.hero__visual-img {
	display: block;
	width: 100%;
	height: clamp(180px, 24vw, 300px);
	object-fit: cover;
	border-radius: 18px;
	margin-top: 0.25rem;
}

.card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 14px;
	margin-bottom: 16px;
}

.card-row__photo {
	flex: 0 0 220px;
	width: 220px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 14px;
	align-self: flex-start;
}

@media (max-width: 719px) {
	.card-row__photo {
		flex-basis: auto;
		width: 100%;
	}
}

.hero__form {
	align-self: center;
}

.hero__media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	align-self: end;
	min-height: 300px;
}

.hero__media img {
	display: block;
	width: min(100%, 560px);
	max-height: 700px;
	object-fit: contain;
	object-position: bottom;
	margin-bottom: calc(-1 * var(--mp-section-pad));
	filter: drop-shadow(0 24px 40px rgba(4, 70, 83, 0.28));
}

/* Giant mist "0" behind the portrait side. */
.hero > .blob--mist {
	right: -14%;
	bottom: -20%;
	width: min(720px, 115vw);
	height: min(640px, 100vw);
	transform: rotate(-8deg);
}

/* Small lime accent tucked behind the headline edge. */
.hero > .blob--lime {
	top: 7%;
	left: -70px;
	width: 170px;
	height: 145px;
	transform: rotate(14deg);
}

@media (min-width: 1000px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: 56px;
	}

	.hero > .blob--mist {
		top: -34%;
		right: -8%;
		bottom: auto;
		width: min(520px, 42vw);
		height: min(460px, 38vw);
	}
}

/* ---------------------------------------------------------------------------
 * Steps (1-2-3) + check list
 * ------------------------------------------------------------------------ */

.steps {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mp-step;
}

@media (min-width: 720px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.step {
	counter-increment: mp-step;
	list-style: none;
}

.step::before {
	content: counter(mp-step);
	display: grid;
	place-items: center;
	width: 58px;
	height: 52px;
	margin-bottom: 14px;
	background: var(--mp-lime);
	border-radius: 18px 28px 16px 26px;
	color: var(--mp-petrol);
	font-size: 1.5rem;
	font-weight: 800;
	transform: rotate(-3deg);
}

.step h3 {
	margin-bottom: 0.35em;
}

.list-check {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.list-check li {
	position: relative;
	margin-bottom: 0.6em;
	padding-left: 1.9em;
}

.list-check li::before {
	content: "✓";
	position: absolute;
	left: 0.15em;
	top: 0;
	color: var(--mp-green);
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
 * Photo placeholder
 * ------------------------------------------------------------------------ */

.ph {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 16px;
	background: var(--mp-mist);
	border: 2px dashed rgba(4, 70, 83, 0.45);
	border-radius: 18px;
	color: var(--mp-petrol);
	font-weight: 600;
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * Forms (tip form)
 * ------------------------------------------------------------------------ */

.mp-form {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 16px;
	padding: 28px;
	background: var(--mp-white);
	border-radius: var(--mp-radius-card);
	box-shadow: 0 8px 30px rgba(4, 70, 83, 0.14);
	color: var(--mp-text);
	text-align: left;
}

.mp-form h2,
.mp-form h3 {
	margin-bottom: 0;
	font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
	line-height: 1.2;
}

.mp-form p {
	margin: 0;
}

/* Two fields side by side on wider screens (e.g. place + email in the hero). */
.form-row {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
	.form-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form-field {
	display: grid;
	gap: 6px;
}

.form-label {
	color: var(--mp-petrol);
	font-size: 0.95rem;
	font-weight: 700;
}

.form-input {
	width: 100%;
	padding: 12px 14px;
	background: var(--mp-white);
	border: 1.5px solid rgba(4, 70, 83, 0.25);
	border-radius: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
	color: rgba(12, 54, 66, 0.45);
}

.form-input:focus {
	border-color: var(--mp-green);
	box-shadow: 0 0 0 3px rgba(5, 209, 110, 0.3);
	outline: none;
}

.form-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--mp-text-soft);
	font-size: 0.9rem;
	line-height: 1.45;
}

.form-check input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--mp-green);
}

.form-hint {
	color: #5B7B84;
	font-size: 0.85rem;
}

/* Honeypot wrapper (mp_website) — visually removed, present for bots. */
.form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Site header + no-JS burger nav
 * ------------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--mp-white);
	border-bottom: 1px solid rgba(4, 70, 83, 0.1);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 10px;
}

/* Brand logo (lime blob + leaf, supplied asset). Text stays in the markup for
 * screen readers and is pushed out of view. */
.site-logo {
	display: block;
	width: 124px;
	height: 47px;
	background: url(../img/logo.webp) left center / contain no-repeat;
	font-size: 0;
}

.site-nav {
	display: flex;
	align-items: center;
}

/* Hidden checkbox drives the burger — no JavaScript. */
.site-nav__toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.site-nav__toggle:focus-visible ~ .site-nav__burger {
	outline: 3px solid #05D16E;
	outline-offset: 2px;
}

.site-nav__burger {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	cursor: pointer;
}

.site-nav__burger span {
	display: block;
	width: 24px;
	height: 3px;
	background: var(--mp-petrol);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle:checked ~ .site-nav__burger span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.site-nav__toggle:checked ~ .site-nav__burger span:nth-child(2) {
	opacity: 0;
}

.site-nav__toggle:checked ~ .site-nav__burger span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile: white panel slides down under the sticky header. */
.site-nav__links {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px 26px;
	background: var(--mp-white);
	border-bottom: 1px solid rgba(4, 70, 83, 0.1);
	box-shadow: 0 18px 30px rgba(4, 70, 83, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
}

.site-nav__toggle:checked ~ .site-nav__links {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-nav__links a:not(.btn) {
	color: var(--mp-petrol);
	font-size: 1.1rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav__links a:not(.btn):hover {
	text-decoration: underline;
	text-decoration-color: var(--mp-green);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

@media (min-width: 800px) {
	.site-nav__toggle,
	.site-nav__burger {
		display: none;
	}

	.site-nav__links {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 28px;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav__links a:not(.btn) {
		font-size: 1rem;
	}
}

/* ---------------------------------------------------------------------------
 * Site footer
 * ------------------------------------------------------------------------ */

.site-footer {
	background: var(--mp-petrol);
	color: var(--mp-mist);
	padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.site-footer__inner {
	display: grid;
	gap: 36px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 800px) {
	.site-footer__inner {
		grid-template-columns: 1.1fr 0.8fr 1.1fr;
		gap: 32px;
	}
}

.site-footer__logo {
	display: block;
	width: 156px;
	height: 59px;
	background: url(../img/logo.webp) left center / contain no-repeat;
	font-size: 0;
}

.site-footer__brand p {
	margin: 14px 0 0;
	color: var(--mp-mist);
	font-weight: 500;
}

.site-footer__nav {
	display: grid;
	gap: 10px;
	justify-items: start;
	align-content: start;
}

.site-footer a {
	color: var(--mp-white);
	font-weight: 600;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--mp-lime);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.site-footer__legal {
	color: rgba(237, 243, 243, 0.78);
	font-size: 0.875rem;
}

.site-footer__legal p {
	margin: 0 0 0.5em;
}

.site-footer__legal a {
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------
 * Breadcrumb — "Domov › Stránka" (works on white and mist)
 * ------------------------------------------------------------------------ */

/* Slim row hugging the top edge of the hero band (pulled up over the section
 * padding), always left-aligned and muted so it reads as chrome, not content. */
.breadcrumb {
	position: relative;
	z-index: 1;
	margin: calc(-1 * var(--mp-section-pad) + 1.1rem) 0 calc(var(--mp-section-pad) - 2rem);
	color: var(--mp-text-soft);
	font-size: 0.8rem;
	font-weight: 500;
	text-align: left;
	opacity: 0.75;
}

.breadcrumb a {
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--mp-petrol);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.breadcrumb strong,
.breadcrumb [aria-current="page"] {
	color: inherit;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Chips — small pills (use on white sections)
 * ------------------------------------------------------------------------ */

.chip {
	display: inline-block;
	padding: 4px 12px;
	background: var(--mp-mist);
	border: 1.5px solid rgba(4, 70, 83, 0.25);
	border-radius: 999px;
	color: var(--mp-petrol);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.5;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------------------------------------------------------------------------
 * Icon tile — small centered link card (icon above label)
 * ------------------------------------------------------------------------ */

.icon-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 12px;
	background: var(--mp-white);
	border-radius: 16px;
	box-shadow: var(--mp-shadow-card);
	color: var(--mp-petrol);
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.icon-tile svg {
	width: 28px;
	height: 28px;
	color: var(--mp-green);
}

.icon-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(4, 70, 83, 0.16);
}

/* ---------------------------------------------------------------------------
 * Card variants — horizontal card + whole-card links
 * ------------------------------------------------------------------------ */

.card-row {
	flex-direction: row;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.card-row .ph {
	flex: 0 0 220px;
	width: 220px;
	aspect-ratio: 4 / 3;
}

.card-row > :not(.ph) {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 719px) {
	.card-row {
		flex-direction: column;
	}

	.card-row .ph {
		flex-basis: auto;
		width: 100%;
	}

	.card-row > :not(.ph) {
		flex: initial;
	}
}

/* Whole card as a link (e.g. project teasers). */
a.card {
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(4, 70, 83, 0.16);
}

/* ---------------------------------------------------------------------------
 * Inline SVG icons (Tabler-style, stroke currentColor)
 * ------------------------------------------------------------------------ */

.icon-svg {
	width: 1em;
	height: 1em;
	stroke: currentColor;
	vertical-align: -0.125em;
}

/* ---------------------------------------------------------------------------
 * Social icon links (Facebook / Instagram)
 * ------------------------------------------------------------------------ */

.social-links {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	color: var(--mp-petrol);
	transition: color 0.18s ease;
}

.social-links svg {
	width: 20px;
	height: 20px;
}

.social-links a:hover {
	color: var(--mp-green);
}

.site-footer .social-links a,
.section--petrol .social-links a {
	color: var(--mp-mist);
}

.site-footer .social-links a:hover,
.section--petrol .social-links a:hover {
	color: var(--mp-green);
}

/* ---------------------------------------------------------------------------
 * Teaser "O mne" — portrait left, content right
 * ------------------------------------------------------------------------ */

.teaser-about {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 28px;
}

/* 420px matches .p-o-mne-portret on the O mne page — client asked for the
 * teaser photo to be the same size as the one there. */
.teaser-about img {
	flex: 0 0 420px;
	align-self: flex-start;
	width: 420px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--mp-mist);
	border-radius: 24px;
}

.teaser-about > :not(img) {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 719px) {
	.teaser-about {
		flex-direction: column;
		align-items: flex-start;
	}

	.teaser-about img {
		flex-basis: auto;
		width: min(78%, 420px);
		align-self: center;
	}

	.teaser-about > :not(img) {
		flex: initial;
	}
}
