/*
 * Apollo közös komponensek (konténer, gomb).
 * A saját témában globálisan töltődik (a fejléc is használja), child theme-ben az Apollo sablonnal.
 */

/* ==========================================================================
   Konténer
   ========================================================================== */

.apollo-container {
	width: 100%;
	max-width: calc(var(--apollo-container) + 2 * var(--apollo-gutter));
	margin-inline: auto;
	padding-inline: var(--apollo-gutter);
}

/* ==========================================================================
   Gomb (Figma: Button – Primary, Dark)
   ========================================================================== */

.apollo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--apollo-space-12);
	padding: var(--apollo-space-16) var(--apollo-space-32);
	border: 1px solid var(--apollo-color-bg-accent);
	border-radius: var(--apollo-radius);
	background: var(--apollo-color-bg-accent);
	color: var(--apollo-color-text-on-accent);
	font-family: var(--apollo-font-family);
	font-size: var(--apollo-type-button-size);
	font-weight: var(--apollo-font-weight-regular);
	line-height: var(--apollo-type-button-line);
	letter-spacing: var(--apollo-tracking-button);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color var(--apollo-transition), color var(--apollo-transition);
}

/* Hover (Figma, Köszönjük oldal): fekete kitöltés, fehér szöveg. Fekete hátterű környezetben (CTA szekció,
   technika panel, fekete fejléc) a --apollo-button-hover-* változókkal fordítva: fehér kitöltés, fekete szöveg. */
.apollo-button:hover,
.apollo-button:focus-visible {
	border-color: var(--apollo-button-hover-bg, var(--apollo-color-bg-inverse));
	background: var(--apollo-button-hover-bg, var(--apollo-color-bg-inverse));
	color: var(--apollo-button-hover-text, var(--apollo-color-text-inverse));
}

.apollo-button:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

/* Körvonalas változat (Figma: Button – Outline, Light): világos háttérre. Hover: fekete kitöltés (mint a kitöltött gombé). */
.apollo-button--outline {
	border-color: var(--apollo-color-border);
	background: transparent;
	color: var(--apollo-color-text);
}

.apollo-button--outline:hover,
.apollo-button--outline:focus-visible {
	background: var(--apollo-color-text);
	color: var(--apollo-color-bg);
}

/* Telefonon a hosszú feliratú gomb tördelődik, ne lógjon ki (pl. „Tovább a szolgáltatásokra”) */
@media (max-width: 39.999rem) {
	.apollo-button {
		max-width: 100%;
		white-space: normal;
	}
}

.apollo-button__arrow {
	flex-shrink: 0;
	width: 1.75rem;
	height: 0.625rem;
	background: currentColor;
	-webkit-mask: url("../img/arrow.svg") no-repeat center / contain;
	mask: url("../img/arrow.svg") no-repeat center / contain;
	transition: transform var(--apollo-transition);
}

.apollo-button:hover .apollo-button__arrow {
	transform: translateX(0.25rem);
}

@media (prefers-reduced-motion: reduce) {
	.apollo-button,
	.apollo-button__arrow {
		transition: none;
	}
}
