/*
 * Úvodní stránka – úvodní dlaždice, karty (hp-card z vlastního CSS Arku) a banner.
 * Načítá se jen na úvodní stránce.
 */

/* Horní sekce odsazená od hlavičky (s 4px rámečkem hero viditelně 24 px, od 992 px 44 px –
 * stejně jako záhlaví ostatních stránek v theme.css). */
body .basta-home-top {
	padding-top: 20px;
}

@media (min-width: 992px) {
	body .basta-home-top {
		padding-top: 40px;
	}
}

/* ---------- Úvodní dlaždice ----------
 * Zelený banner s logem: text vlevo, symbol Bašty vpravo (pod 768 px nad textem).
 * Barvy podle návrhu: pozadí #2b5342, nadpis bílý, podnadpis a tlačítko #b59553. */
body .basta-home-hero {
	--basta-hero-bg: #2b5342;
	--basta-hero-gold: #b59553;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 16px;
	margin-inline: -4px;
	padding: 32px 24px;
	border: 4px solid var(--wp--preset--color--background);
	border-radius: 14px;
	background-color: var(--basta-hero-bg);
	text-align: center;
}

body .basta-home-hero .basta-home-hero__text {
	margin: 0;
}

body .basta-home-hero h1 {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

body .basta-home-hero .basta-home-hero__lead {
	margin: 0 0 24px;
	color: var(--basta-hero-gold);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body .basta-home-hero .basta-home-hero__buttons {
	justify-content: center;
	margin: 0;
}

.basta-home-hero .basta-home-hero__button .wp-block-button__link {
	padding: 8px 18px;
	border: 0;
	color: #fff;
	background-color: var(--basta-hero-gold);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
}

.basta-home-hero .basta-home-hero__button .wp-block-button__link:hover,
.basta-home-hero .basta-home-hero__button .wp-block-button__link:focus-visible {
	color: var(--basta-hero-bg);
	background-color: #fff;
}

/* SVG má nad kresbou i pod ní ~8,5 % volného místa – nezapočítávat ho do výšky dlaždice. */
body .basta-home-hero .basta-home-hero__logo {
	flex: 0 0 auto;
	width: 140px;
	margin: -12px 0;
}

.basta-home-hero__logo img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	body .basta-home-hero {
		flex-direction: row;
		justify-content: space-between;
		gap: 32px;
		padding: 40px 48px;
		text-align: left;
	}

	body .basta-home-hero h1 {
		font-size: 40px;
	}

	body .basta-home-hero .basta-home-hero__lead {
		font-size: 18px;
	}

	body .basta-home-hero .basta-home-hero__buttons {
		justify-content: flex-start;
	}

	body .basta-home-hero .basta-home-hero__logo {
		width: 200px;
		margin-block: -17px;
	}
}

@media (min-width: 992px) {
	body .basta-home-hero {
		gap: 48px;
		padding: 36px 80px 36px 56px;
	}

	body .basta-home-hero h1 {
		margin-bottom: 20px;
		font-size: 54px;
		line-height: 1.22;
	}

	body .basta-home-hero .basta-home-hero__lead {
		max-width: 540px;
		margin-bottom: 36px;
		font-size: 18px;
		letter-spacing: 0.01em;
	}

	body .basta-home-hero .basta-home-hero__logo {
		width: 290px;
		margin-block: -24px;
	}
}

/* ---------- Karty Ubytování / Wellness (Ark hp-card) ---------- */
body .basta-home-cards {
	margin-top: 24px;
}

body .basta-home-cards > .wp-block-column + .wp-block-column {
	margin-top: 24px;
}

@media (min-width: 992px) {
	body .basta-home-cards > .wp-block-column + .wp-block-column {
		margin-top: 0;
	}
}

.hp-card {
	display: flex;
	flex-direction: row;
	height: 210px;
	overflow: hidden;
	border-radius: 8px;
}

.hp-card > * {
	flex: 0 0 50%;
	min-width: 0;
	max-width: 50%;
	box-sizing: border-box;
}

body .hp-card .hp-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	padding: 22px 18px;
	overflow: hidden;
	border-radius: 8px 0 0 8px;
}

body .hp-card .hp-card__image {
	height: 100%;
	margin: 0;
	border-radius: 0 8px 8px 0;
	background-position: right center !important;
	background-repeat: no-repeat;
	background-size: cover;
}

/* Na úzkém mobilu menší, aby se „Ubytování“ vešlo celé (slova se nedělí). */
.hp-card .hp-card__content .wp-block-heading {
	margin: 0 0 15px;
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: clamp(22px, 7vw, 30px);
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.hp-card .hp-card__content p {
	margin: 0 0 10px;
	color: var(--wp--preset--color--heading);
	text-align: center;
}

.hp-card .wp-block-buttons {
	justify-content: center;
}

/* Bootstrap .btn: text tlačítka se nezalamuje. */
.hp-card .wp-block-button__link {
	white-space: nowrap;
}

.hp-card--white {
	border: 1px solid #111;
	background: var(--wp--preset--color--white);
}

.hp-card--white .hp-card__content {
	align-items: flex-start;
	background: var(--wp--preset--color--white);
}

.hp-card--gold .hp-card__content {
	align-items: center;
	background: #c49a43;
}

.hp-card--gold .hp-card__content .wp-block-heading {
	color: var(--wp--preset--color--white);
}

@media (min-width: 768px) {
	.hp-card {
		height: 245px;
	}

	body .hp-card .hp-card__content {
		padding: 34px 40px;
	}
}

@media (min-width: 992px) {
	body .hp-card .hp-card__content {
		padding: 42px 56px;
	}

	.hp-card .hp-card__content .wp-block-heading {
		font-size: 26px;
	}
}

@media (min-width: 1200px) {
	body .hp-card .hp-card__content {
		padding: 46px 58px;
	}
}

/* ---------- Banner dárkového poukazu ----------
 * Čistě textový podle grafických předloh (barvy z nich: pozadí #192621, nadpis #f6f7f9,
 * zlatá #bb9446, tlačítko s přechodem do #675227). Písmo jako na stránce (Roboto Slab).
 * Rozložení: pod 520 px vše pod sebou na středu, 520–767 px nadpis a podtitul pod sebou
 * s tlačítkem vpravo, od 768 px jeden řádek. Ikona chmele je images/chmel.svg.
 * Celý banner je odkaz (odkaz tlačítka roztažený přes banner). */
body .basta-home-banner {
	--basta-voucher-gold: #bb9446;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 24px -4px 0;
	padding: 22px 16px 24px;
	border: 4px solid var(--wp--preset--color--background);
	/* Viditelné rohy 8 px jako dlaždice nad bannerem (12 px vnějšího zaoblení − 4px rámeček). */
	border-radius: 12px;
	background: #192621;
	background-clip: padding-box;
	text-align: center;
}

/* Text s ikonou chmele po obou stranách. */
body .basta-home-banner .basta-home-banner__text {
	display: grid;
	grid-template-columns: auto auto auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: clamp(8px, 2.5vw, 14px);
	margin: 0;
}

.basta-home-banner__text::before,
.basta-home-banner__text::after {
	content: "";
	grid-row: 1 / span 2;
	width: clamp(18px, 5vw, 24px);
	aspect-ratio: 428.5 / 471.2;
	background: url("../images/chmel.svg") center / contain no-repeat;
}

.basta-home-banner__text::before {
	grid-column: 1;
}

.basta-home-banner__text::after {
	grid-column: 3;
	/* Pravá ikona zrcadlově proti levé. */
	transform: scaleX(-1);
}

body .basta-home-banner .basta-home-banner__title,
body .basta-home-banner .basta-home-banner__subtitle {
	grid-column: 2;
	margin: 0;
	font-family: var(--wp--preset--font-family--roboto-slab);
	line-height: 1.2;
}

body .basta-home-banner .basta-home-banner__title {
	color: #f6f7f9;
	font-size: clamp(24px, 7.5vw, 34px);
	font-weight: 700;
}

body .basta-home-banner .basta-home-banner__subtitle {
	color: var(--basta-voucher-gold);
	font-size: clamp(15px, 4.6vw, 21px);
	font-weight: 400;
}

body .basta-home-banner .basta-home-banner__buttons {
	margin: 0;
}

.basta-home-banner .basta-home-banner__button .wp-block-button__link {
	padding: 7px 18px;
	border: 0;
	color: #fff;
	background: linear-gradient(to bottom, var(--basta-voucher-gold) 0%, #675227 100%);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	white-space: nowrap;
}

/* Celý banner je proklikávací. */
.basta-home-banner .basta-home-banner__button .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
}

/* Zesvětlení přechodem pozadí, ne filtrem: filter by z odkazu udělal obal pro roztažené
 * ::after a klik mimo tlačítko by přestal fungovat. */
.basta-home-banner:hover .basta-home-banner__button .wp-block-button__link,
.basta-home-banner .basta-home-banner__button .wp-block-button__link:focus-visible {
	background: linear-gradient(to bottom, #cca557 0%, #7a6131 100%);
}

/* 520–767 px: nadpis a podtitul pod sebou mezi ikonami, tlačítko vpravo. */
@media (min-width: 520px) {
	body .basta-home-banner {
		flex-direction: row;
		justify-content: space-between;
		gap: 16px;
		padding: 24px 28px;
		text-align: left;
	}

	.basta-home-banner__text::before,
	.basta-home-banner__text::after {
		width: clamp(28px, 4.7vw, 36px);
	}

	body .basta-home-banner .basta-home-banner__title {
		font-size: clamp(24px, 5vw, 38px);
	}

	body .basta-home-banner .basta-home-banner__subtitle {
		font-size: clamp(15px, 3.1vw, 24px);
	}

	.basta-home-banner .basta-home-banner__button .wp-block-button__link {
		padding: 9px 20px;
		font-size: 13px;
	}
}

/* Od 768 px jeden řádek: ikona, „Dárkový poukaz na příjemný pobyt a zážitky“, ikona, tlačítko. */
@media (min-width: 768px) {
	body .basta-home-banner {
		min-height: 78px;
		padding: 12px 26px 12px 26px;
	}

	body .basta-home-banner .basta-home-banner__text {
		grid-template-columns: auto auto auto auto;
		grid-template-rows: auto;
		align-items: baseline;
		column-gap: 0;
	}

	.basta-home-banner__text::before,
	.basta-home-banner__text::after {
		grid-row: 1;
		align-self: center;
		width: 21px;
	}

	.basta-home-banner__text::before {
		margin-right: 22px;
	}

	.basta-home-banner__text::after {
		grid-column: 4;
		margin-left: 22px;
	}

	body .basta-home-banner .basta-home-banner__title {
		margin-right: 0.3em;
		font-size: 20px;
	}

	body .basta-home-banner .basta-home-banner__subtitle {
		grid-column: 3;
		font-size: 20px;
	}

	.basta-home-banner .basta-home-banner__button .wp-block-button__link {
		padding: 6px 16px;
		font-size: 11px;
	}
}

@media (min-width: 992px) {
	body .basta-home-banner {
		min-height: 100px;
		padding-inline: 38px 40px;
	}

	.basta-home-banner__text::before,
	.basta-home-banner__text::after {
		width: 28px;
	}

	.basta-home-banner__text::before {
		margin-right: 30px;
	}

	.basta-home-banner__text::after {
		margin-left: 30px;
	}

	body .basta-home-banner .basta-home-banner__title,
	body .basta-home-banner .basta-home-banner__subtitle {
		font-size: 25.5px;
	}

	.basta-home-banner .basta-home-banner__button .wp-block-button__link {
		padding: 9px 22px;
		font-size: 13px;
	}
}

@media (min-width: 1200px) {
	body .basta-home-banner {
		min-height: 118px;
		padding-inline: 46px 46px;
	}

	.basta-home-banner__text::before,
	.basta-home-banner__text::after {
		width: 34px;
	}

	.basta-home-banner__text::before {
		margin-right: 34px;
	}

	.basta-home-banner__text::after {
		margin-left: 34px;
	}

	body .basta-home-banner .basta-home-banner__title,
	body .basta-home-banner .basta-home-banner__subtitle {
		font-size: 31px;
	}

	.basta-home-banner .basta-home-banner__button .wp-block-button__link {
		padding: 12px 28px;
		font-size: 15px;
	}
}
