/* Shared styles for every page: base, header, footer and common components. */

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text-primary);
	background: var(--page-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink-900);
}

p { margin: 0; }

a {
	color: var(--text-link);
	text-decoration: none;
	transition: opacity var(--dur-fast) var(--ease-out);
}
a:hover { opacity: 0.78; }

button, input, select, textarea { font-family: inherit; }

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

[hidden] { display: none !important; }

::selection { background: var(--rose-200); color: var(--ink-900); }

:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--ring);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 999px; }

.container {
	max-width: var(--container);
	margin: 0 auto;
}

.hl {
	color: var(--brand);
	font-weight: 800;
}

.flash {
	max-width: var(--container);
	margin: 16px auto 0;
	padding: 12px 18px;
	border-radius: var(--radius-md);
	background: var(--cream-200);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--header-bg);
	border-bottom: 1px solid var(--header-border);
	backdrop-filter: blur(14px);
}

.site-header__inner {
	max-width: var(--container);
	min-height: 76px;
	margin: 0 auto;
	padding: 14px var(--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}
.logo:hover { opacity: 1; }

.logo img {
	width: 40px;
	height: 40px;
}

.logo__text {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--header-fg);
}
.logo__text span { color: var(--header-accent); }

.main-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: 18px;
	margin-right: auto;
	flex-wrap: wrap;
}

.main-nav__link {
	padding: 9px 14px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.9375rem;
	white-space: nowrap;
	color: var(--nav-fg);
	transition: color var(--dur-fast);
}
.main-nav__link:hover {
	opacity: 1;
	color: var(--nav-hover);
}
.main-nav__link.is-active {
	color: var(--nav-active-fg);
	background: var(--nav-active-bg);
}

.site-header__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
}

.site-header__actions .btn--sm { padding: 0 18px; }

.btn-login {
	padding: 9px 18px;
	border: 1.5px solid var(--header-fg);
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.875rem;
	white-space: nowrap;
	color: var(--header-fg);
	transition: background var(--dur-fast);
}
.btn-login:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--header-fg);
	border-radius: var(--radius-pill);
	background: transparent;
	font-size: 22px;
	color: var(--header-fg);
	cursor: pointer;
}

@media (max-width: 759px) {
	.site-header__inner {
		min-height: 64px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.menu-toggle { display: flex; }

	.main-nav,
	.site-header__actions {
		display: none;
		width: 100%;
		margin: 0;
	}

	.site-header.is-open .main-nav {
		order: 3;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.site-header.is-open .site-header__actions {
		order: 4;
		display: flex;
		justify-content: flex-start;
		padding-bottom: 8px;
	}
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 64px var(--gutter) 40px;
	background: var(--ink-950);
	color: #FAFAFA;
}

.site-footer__grid {
	max-width: var(--container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
}

.logo--footer {
	margin-bottom: 18px;
}
.logo--footer img {
	width: 36px;
	height: 36px;
}
.logo--footer .logo__text {
	font-size: 1.375rem;
	color: #FFFFFF;
}
.logo--footer .logo__text span { color: rgba(255, 255, 255, 0.7); }

.site-footer__claim {
	max-width: 280px;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}

.site-footer__title {
	margin: 0 0 16px;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.9375rem;
	font-weight: 600;
}
.site-footer__links a { color: #FAFAFA; }

.site-footer__contact {
	font-size: 0.9375rem;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.86);
}

.site-footer__bottom {
	max-width: var(--container);
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1023px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 559px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { opacity: 1; }
.btn:active { transform: scale(0.96); }

.btn--sm {
	min-height: 38px;
	padding: 8px 16px;
	gap: 6px;
	font-size: 0.875rem;
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn--primary {
	background: var(--brand);
	color: #FFFFFF;
	box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-hover); }

.btn--blue {
	background: var(--secondary);
	color: #FFFFFF;
}
.btn--blue:hover { background: var(--secondary-hover); }

.btn--soft {
	background: var(--brand-soft);
	color: var(--brand-hover);
}
.btn--soft:hover { background: var(--rose-200); }

.btn--ghost {
	background: transparent;
	color: var(--brand-hover);
	box-shadow: inset 0 0 0 2px var(--brand);
}
.btn--ghost:hover { background: var(--rose-50); }

.btn--outline {
	padding: 13px 24px;
	border: 1.5px solid var(--ink-900);
	background: transparent;
	color: var(--ink-900);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.4); }

.btn--light {
	padding: 0 24px;
	border: 1.5px solid var(--border-default);
	background: #FFFFFF;
	color: var(--ink-900);
}
.btn--light:hover { border-color: var(--ink-400); }

.btn-text {
	padding: 0;
	border: 0;
	background: transparent;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--text-secondary);
	cursor: pointer;
}

.icon-btn {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--border-default);
	border-radius: var(--radius-md);
	background: #FFFFFF;
	color: var(--ink-900);
	cursor: pointer;
	font-size: 20px;
	transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}
.icon-btn:hover { border-color: var(--ink-400); }
.icon-btn:active { transform: scale(0.96); }

.heart-btn {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--border-default);
	border-radius: var(--radius-pill);
	background: #FFFFFF;
	color: var(--ink-400);
	font-size: 20px;
	cursor: pointer;
	transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}
.heart-btn:active { transform: scale(0.96); }
.heart-btn.is-liked { color: var(--like); }

/* ---------- Labels, chips, badges ---------- */
.eyebrow {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.eyebrow--wide { letter-spacing: 0.12em; }

.eyebrow--brand {
	letter-spacing: 0.12em;
	color: var(--brand-hover);
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--ink-50);
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1;
	color: var(--ink-700);
	cursor: pointer;
	transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.tag.is-active {
	border-color: var(--rose-300);
	background: var(--brand-soft);
	color: var(--brand-hover);
}

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

.interest {
	padding: 7px 13px;
	border-radius: var(--radius-pill);
	background: var(--ink-50);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink-700);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1.6;
}

.badge--success {
	background: var(--online-soft);
	color: var(--online-text);
}

.online-dot {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 14px;
	height: 14px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: var(--online);
}

/* ---------- Segmented switch ---------- */
.segment {
	display: flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	padding: 4px;
	border-radius: var(--radius-pill);
	background: var(--cream-200);
}

.segment__btn {
	padding: 11px 20px;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	font-weight: 700;
	font-size: 0.9375rem;
	white-space: nowrap;
	color: var(--text-secondary);
	cursor: pointer;
	transition: background var(--dur-fast), color var(--dur-fast);
}
.segment__btn.is-active {
	background: #FFFFFF;
	color: var(--ink-900);
	box-shadow: var(--shadow-sm);
}

/* ---------- Form fields ---------- */
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.field__label {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.field__label--strong { font-weight: 700; }

.field__hint {
	font-size: 0.75rem;
	color: var(--text-muted);
}

.input {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--border-default);
	border-radius: var(--radius-md);
	background: #FFFFFF;
	font-size: 1rem;
	color: var(--text-primary);
	outline: none;
	transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 4px var(--ring);
}

textarea.input {
	line-height: 1.5;
	resize: vertical;
}

.select {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.select select {
	width: 100%;
	padding: 13px 40px 13px 14px;
	border: 1.5px solid var(--border-default);
	border-radius: var(--radius-md);
	background: #FFFFFF;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.select select:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 4px var(--ring);
}

.select__caret {
	position: absolute;
	right: 14px;
	bottom: 17px;
	z-index: 2;
	width: 18px;
	height: 18px;
	color: var(--ink-500);
	pointer-events: none;
	transition: transform var(--dur-fast) var(--ease-out);
}
.select.is-open .select__caret { transform: rotate(180deg); }

.check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-secondary);
	cursor: pointer;
}
.check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--brand);
}

.dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px dashed var(--border-strong);
	border-radius: var(--radius-xl);
	background: var(--cream-100);
	text-align: center;
	cursor: pointer;
}

/* ---------- Content pieces ---------- */
.ticks {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ticks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--text-primary);
}
.ticks svg {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	fill: var(--online);
}

.hand {
	font-family: var(--font-hand);
	font-weight: 600;
	line-height: 1.05;
	color: var(--hand-ink);
}
.hand__heart { color: var(--hand-heart); }

.card {
	background: var(--surface-card);
	border-radius: var(--radius-2xl);
	box-shadow: var(--shadow-sm);
}

.card-title {
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.photo-slot {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: var(--radius-md);
	background: var(--cream-200);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink-500);
}
.photo-slot i { font-size: 26px; opacity: 0.6; }

.link-arrow {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--text-link);
	white-space: nowrap;
}

/* ---------- Hero (home + "zdarma") ---------- */
.hero {
	padding: 88px var(--gutter) 64px;
	background-image:
		linear-gradient(var(--page-bg), var(--page-bg)),
		linear-gradient(180deg, rgba(244, 249, 251, 0) 60%, #F4F9FB 94%, #F4F9FB 100%),
		linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.4) 62%, rgba(255, 255, 255, 0) 75%),
		url('../img/hero-couple.webp');
	background-size: 100% 14px, 100% 100%, 100% 100%, cover;
	background-position: left bottom, 0 0, 0 0, 78% center;
	background-repeat: no-repeat;
}

.hero__photo { display: none; }

.hero__text { max-width: 520px; }

@media (max-width: 759px) {
	.hero {
		padding: 24px 20px 40px;
		background-image: none;
	}

	.hero__photo {
		display: block;
		width: 100%;
		height: 240px;
		margin-bottom: 24px;
		border-radius: var(--radius-xl);
		object-fit: cover;
		object-position: 78% center;
	}
}
