/*
 * Shared components: buttons, logo, social links.
 * Figma: 02 · Components → Button, Brand / Optimore logo, Social links.
 */

/* Buttons ---------------------------------------------------------------
 * .btn--outline  white with brand border (e.g. "Kontakt")
 * .btn--brand    brand gradient (e.g. "Zatražite Demo")
 * .btn--block    full width (mobile menu)
 */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-8);
	min-height: 2.25rem; /* 36 */
	padding: var(--space-8) var(--space-16);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--ff-heading);
	font-size: var(--fs-button);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.btn--outline {
	border-color: var(--c-brand);
	background: var(--c-surface);
	color: var(--c-brand);
}

.btn--outline:hover {
	background: var(--c-brand);
	color: var(--c-surface);
}

.btn--brand {
	background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-accent-2) 100%);
	color: var(--c-surface);
}

.btn--brand:hover {
	filter: brightness(1.08);
	box-shadow: 0 4px 14px rgb(24 72 149 / 0.25);
}

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

/* Logo ------------------------------------------------------------------ */

.site-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--c-text);
	text-decoration: none;
}

.site-logo__img {
	width: auto;
	height: 2rem; /* phone */
}

.site-logo__text {
	font-family: var(--ff-heading);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

@media (min-width: 768px) {
	.site-logo__img {
		height: 2.25rem;
	}
}

@media (min-width: 1200px) {
	.site-logo--header .site-logo__img,
	.site-logo--footer .site-logo__img {
		height: 2.75rem; /* 44 – Figma desktop */
	}
}

/* Social links (gradient circles) --------------------------------------- */

.social {
	display: flex;
	gap: var(--space-20);
	padding: 0;
	margin: 0;
	list-style: none;
}

.social__link {
	display: grid;
	place-items: center;
	width: 3.125rem; /* 50 */
	height: 3.125rem;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-accent-2) 100%);
	color: var(--c-surface);
	transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.social__link,
.site-footer .social__link {
	color: var(--c-surface);
}

.social__link:hover,
.site-footer .social__link:hover {
	color: var(--c-surface);
	filter: brightness(1.1);
	transform: translateY(-1px);
}
