/* =========================================================
   flotila mydoručujeme — design tokens
   ========================================================= */
:root {
	--ink: #16181d;
	--muted-ink: #5b6169;
	--paper: #ffffff;
	--muted: #f7f8f9;
	--border: #e7e9ec;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(20, 20, 30, .08);
	--container: 1120px;

	--mint: #A2E4B8;
	--bolt: #34D186;
	--wolt-blue: #00C2E8;

	/* overridden per page by .theme-wolt / .theme-bolt */
	--accent: var(--mint);
	--accent-ink: #000;
}

/* Wolt runs on its own cyan, Bolt Food on its green. The ink colour is
   the text that sits on top of the accent, picked for contrast. */
.theme-wolt { --accent: var(--wolt-blue); --accent-ink: #fff; }
.theme-bolt { --accent: var(--bolt); --accent-ink: #fff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

/* =========================================================
   Header / nav
   ========================================================= */
/* No backdrop-filter here on purpose: it would make the header the
   containing block for the position:fixed mobile menu, collapsing the
   overlay to the header's own height. Solid background instead. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
}

/* Home page: the header sits on top of the full-bleed chooser so the
   colour runs edge to edge, with no bar breaking the two apart. */
.is-home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
}
.is-home .logo,
.is-home .nav a { color: #fff; }
.is-home .nav-toggle span,
.is-home .nav-toggle span:before,
.is-home .nav-toggle span:after { background: #fff; }
.is-home .icon-link { background: rgba(255, 255, 255, .22); }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-block: 14px;
}
.logo {
	font-size: 19px;
	font-weight: 300;
	white-space: nowrap;
	flex-shrink: 0;
}
@media (max-width: 860px) {
	/* On phones the bar is tight, so the wordmark may shrink — but never
	   far enough to run under the toggle beside it. */
	.logo {
		flex-shrink: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: calc(100vw - 130px);
	}
}
.logo strong { font-weight: 700; }

.nav {
	display: flex;
	gap: 28px;
	margin-left: auto;
}
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--accent); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--muted);
	flex-shrink: 0;
}
.icon-link img { width: 18px; height: 18px; }

/* Duplicated into the mobile nav overlay (see .nav-social) so the
   Telegram/WhatsApp links stay reachable even on the narrowest phones,
   where the header bar itself only has room for the logo + toggle. */
.nav-social { display: none; gap: 16px; margin-top: 10px; }
/* Only surfaces inside the mobile overlay (see the 860px block). Scoped
   to .nav so it outranks `.btn { display: inline-flex }` further down. */
.nav .nav-cta { display: none; }

.nav-toggle {
	display: none;
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
	content: '';
	position: absolute;
	left: 6px;
	right: 6px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span { top: 16px; }
.nav-toggle span:before { top: -8px; }
.nav-toggle span:after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span:before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:after { top: 0; transform: rotate(-45deg); }

/* Between the mobile breakpoint and ~1050px the bar is at its tightest
   (the Wolt page carries an extra nav item), so close the gaps up. */
@media (min-width: 861px) and (max-width: 1050px) {
	.site-header__inner { gap: 14px; }
	.nav { gap: 18px; }
	.header-actions { gap: 8px; }
	.btn-header { padding: 13px 20px; font-size: 14px; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; order: 3; }
	.header-actions { margin-left: auto; }
	/* Keep the wordmark and the toggle clickable above the open overlay. */
	.logo,
	.header-actions { position: relative; z-index: 2; }
	.nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		z-index: 1;
		margin: 0;
		padding: 90px 24px 40px;
		overflow-y: auto;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		background: #101216;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .25s ease, visibility .25s ease;
	}
	.nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
	/* Text links only — the icon links keep their own round 34px box, and
	   the CTA keeps the pill padding from .btn. */
	.nav a:not(.icon-link):not(.nav-cta) {
		color: #fff !important;
		font-size: 20px;
		font-weight: 600;
		padding: 12px;
	}
	.nav .nav-cta {
		display: inline-flex;
		margin-top: 18px;
		color: var(--accent-ink) !important;
		font-size: 15px;
	}

	/* With the overlay open, the header sits on top of it — flip the
	   wordmark and toggle to white so they stay legible, and freeze the
	   page behind. */
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { background: transparent; }
	body.nav-open .logo { color: #fff; }
	body.nav-open .nav-toggle span,
	body.nav-open .nav-toggle span:before,
	body.nav-open .nav-toggle span:after { background: #fff; }
}

/* Below this, the header bar itself is too narrow for the logo text
   plus both social icons plus the toggle — drop the icons from the bar
   and surface them inside the mobile nav overlay instead. */
@media (max-width: 520px) {
	.logo { font-size: 17px; }
	.logo-rockets { display: none; }
	/* Only crowded on pages that also carry a toggle + CTA; elsewhere
	   (the chooser, 404) the bar has room, so the icons stay put. */
	.has-nav .header-actions .icon-link { display: none; }
	.has-nav .header-actions .btn-header { display: none; }
	.nav-social { display: flex; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	background: var(--accent);
	color: var(--accent-ink);
	border: none;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
	background: none;
	border: 1.5px solid var(--border);
	color: var(--ink);
}
@media (max-width: 600px) {
	.btn { padding: 12px 20px; font-size: 14px; gap: 6px; }
}

/* =========================================================
   Sections (shared rhythm)
   ========================================================= */
.section { padding-block: 90px; }
.section--muted { background: var(--muted); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted-ink); }
.eyebrow-link { font-weight: 600; }
.eyebrow-link a { text-decoration: underline; }

/* Links sitting inside running text need to look like links: the global
   `a { color: inherit }` reset exists for nav/buttons/cards, and left
   these indistinguishable from the sentence around them. */
.faq-body a,
.section-head p a,
.hero p a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.faq-body a:hover,
.section-head p a:hover,
.hero p a:hover { color: var(--accent); }


/* =========================================================
   Hero
   ========================================================= */
.hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
	padding-block: 70px 40px;
}
.hero .eyebrow {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 13px;
	color: var(--muted-ink);
	margin-bottom: 10px;
}
.hero p { color: var(--muted-ink); font-size: 18px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img.hero-photo {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.hero-media img.hero-badge {
	position: absolute;
	top: -24px;
	left: -24px;
	width: 110px;
	transform: rotate(-16deg);
	filter: drop-shadow(0 8px 16px rgba(0,0,0,.15));
}
/* The badge artwork is mint green; nudge its hue so it sits with the
   cyan Wolt theme instead of clashing against it. */
.theme-wolt .hero-media img.hero-badge {
	filter: hue-rotate(50deg) drop-shadow(0 8px 16px rgba(0,0,0,.15));
}
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; padding-block: 40px 20px; }
	.hero-media { order: -1; max-width: 320px; margin-inline: auto; }
}

/* =========================================================
   Feature grid ("Prečo sa stať kuriérom")
   ========================================================= */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
}
.feature-card {
	background: var(--muted);
	border-radius: var(--radius);
	padding: 28px;
}
.feature-card .emoji { font-size: 32px; display: block; margin-bottom: 14px; }

/* =========================================================
   Calculator
   ========================================================= */
.calculator {
	background: var(--accent);
	border-radius: var(--radius);
	padding: 44px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 30px;
	align-items: center;
	color: var(--accent-ink);
}
.calculator h2 { margin: 0; }
.field-card {
	background: var(--paper);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	/* Reset the accent ink inherited from .calculator — these sit on a
	   white card, so white label text would be invisible. */
	color: var(--ink);
}
.field-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field-card .value { display: flex; align-items: baseline; gap: 8px; }
.field-card input {
	border: none;
	font-size: 26px;
	line-height: 1.2;
	font-family: inherit;
	font-weight: 600;
	width: 100%;
	min-width: 0;
	color: var(--ink);
	background: none;
}
.field-card input:disabled { color: var(--ink); opacity: 1; }
.field-card span { font-size: 16px; color: var(--muted-ink); }
@media (max-width: 860px) {
	.calculator { grid-template-columns: 1fr; text-align: center; }
}

/* =========================================================
   Rental grid
   ========================================================= */
.rental-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
.rental-card {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 3 / 4;
}
.rental-card img { width: 100%; height: 100%; object-fit: cover; }
.rental-card .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
}
.rental-card .overlay h3 { color: #fff; margin-bottom: 2px; }
.rental-card .overlay span { font-size: 14px; opacity: .9; }

/* =========================================================
   FAQ (native <details>, no JS needed)
   ========================================================= */
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-item {
	border-bottom: 1px solid var(--border);
	padding-block: 6px;
}
.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 14px 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
	content: '+';
	font-size: 22px;
	font-weight: 400;
	color: var(--muted-ink);
	transition: transform .2s ease;
}
.faq-item[open] summary:after { transform: rotate(45deg); }
.faq-item .faq-body { padding-bottom: 18px; color: var(--muted-ink); }
.faq-item ul.zoznam {
	margin-bottom: 12px;
}
.faq-item ul.zoznam li {
	margin: 6px 0 6px 20px;
	list-style: disc;
}
.faq-item .faq-body > *:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
	.faq-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	justify-content: space-between;
}
.contact-cards { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-card {
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--radius);
	padding: 28px 34px;
	text-align: center;
	min-width: 200px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card a { font-size: 20px; font-weight: 700; white-space: nowrap; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.testimonial-card {
	background: var(--muted);
	border-radius: var(--radius);
	padding: 28px;
}
.testimonial-card strong { display: block; margin-bottom: 6px; }

/* =========================================================
   Interest-form page (wolt-mam-zaujem / bolt-mam-zaujem)
   ========================================================= */
.form-card {
	max-width: 560px;
	margin: 70px auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.form-card .meta {
	border-top: 8px solid var(--accent);
	padding: 26px;
}
.form-card .meta h1 { font-size: 22px; margin-bottom: 10px; }
.form-card .meta p { color: var(--muted-ink); margin: 0; }
.form-card .cta-row { border-top: 1px solid var(--border); padding: 20px 26px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--muted);
	padding-block: 40px;
}
.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: var(--muted-ink);
}
.site-footer a { font-weight: 600; color: var(--ink); }

@media (max-width: 600px) {
	.site-footer__inner { flex-direction: column; text-align: center; }
	.section { padding-block: 56px; }
}
