/*
 * Additions to css/theme.min.css (compiled, sources not in the repo).
 * @since 2.1.0
 */

/* Footer: columns 1–3 from menus + footer menu + logo, reflow on small screens */
.footer__cols {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 2.5rem;
}
.footer__col {
	flex: 0 1 9.5rem;
	min-width: 8rem;
}
.footer__cols .footer-menu {
	flex-basis: 10rem;
}
.footer__cols .logo-footer {
	margin-left: auto;
}
@media (max-width: 767.98px) {
	.footer__cols {
		gap: 0 1.5rem;
	}
	.footer__col {
		flex: 1 1 calc(50% - 1.5rem);
	}
	.footer__cols .logo-footer {
		flex: 1 1 100%;
		justify-content: flex-start;
		margin-top: 1.5rem;
	}
	.footer__cols .logo-footer img {
		margin-left: 0;
	}
}

/* Buttons block in content (.cms a would make the label brown and underlined) */
.cms .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 2rem 0;
}
.cms .wp-block-buttons.is-content-justification-center {
	justify-content: center;
}
.cms .wp-block-buttons.is-content-justification-right {
	justify-content: flex-end;
}
.cms .wp-block-button .wp-block-button__link,
.cms .wp-block-button .wp-block-button__link:visited {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .9rem 2rem;
	border: 0;
	border-radius: 0;
	background: linear-gradient(90deg, #dcae47 0, #d0ac58 45%, #daaf4c);
	color: #2b2924;
	font: 500 1rem/1.2 Cabin, sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: .02em;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	transition: filter .15s ease;
}
.cms .wp-block-button .wp-block-button__link:hover,
.cms .wp-block-button .wp-block-button__link:focus {
	color: #2b2924;
	text-decoration: none;
	filter: brightness(.92);
}
.cms .wp-block-button .wp-block-button__link:focus-visible {
	outline: 2px solid #73540c;
	outline-offset: 3px;
}
.cms .wp-block-button__link .icon-download {
	margin-right: 0;
}
.cms .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	box-shadow: inset 0 0 0 1px #947635;
}


/* Mobile readability and touch targets. Keep inline prose links in the text flow. */
@media (max-width: 767.98px) {
	html { font-size: 16px; }
	body { font-size: 1rem; line-height: 1.6; }

	/* Explicit small type in the legacy theme does not inherit the body size. */
	.cms, .cms p, .cms li, .hp-contact p, .partner p,
	.contact__mail, .contact__link, .career__place, .career__wage,
	.showroom__top-right h2, .article__bottom a,
	.footer li a, .footer .footer-menu a, .footer .title-style,
	.hp-new__text h2, .hp-new__cats a, .tags a, .project__infos .tags a {
		font-size: 1rem;
		line-height: 1.5;
	}
	.footer__bottom, .hp-contact--special small, .breadscrumb {
		font-size: .9375rem;
		line-height: 1.5;
	}

	.header__top { height: auto; min-height: 64px; }
	.header__inner { min-height: 64px; gap: 8px; }
	.header__logo { flex: 0 1 173px; min-width: 0; }
	.header__logo img { width: 100%; }
	.header-top__right { flex-shrink: 0; align-items: center; }
	.header__top .link-icon {
		min-width: 44px;
		min-height: 44px;
		margin: 0;
		padding: 0;
	}
	.header .search-trigger { margin-right: 0; }
	.header .search-trigger::after, .header__langs::before { display: none; }
	.header__langs { margin-left: 4px; padding-left: 0; }
	.header__langs a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		font-size: 1rem;
	}
	.header .hamburger__wrap {
		min-width: 44px;
		min-height: 44px;
		padding: 10px 12px;
		font-size: 1.0625rem;
	}
	.header .menu { overflow-y: auto; overscroll-behavior: contain; }
	.header .menu__content {
		height: auto;
		min-height: 100%;
		padding: 72px 16px 24px;
	}
	.header .menu__content li { width: 100%; margin-top: 0; }
	.header .menu__content a, .header .menu__content .sub-menu a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 10px 16px;
		font-size: 18px;
		line-height: 1.5;
		white-space: normal;
		text-align: center;
	}
	.header-search { width: calc(100% - 32px); max-width: 400px; margin-left: 0; transform: translateX(-50%); }

	/* Standalone actions can grow vertically when their labels wrap. */
	.btn, .link-more, .contact__link, .contact__phone, .contact__mail,
	.hp-c-speciall__number, .hp-c-speciall__mail,
	.tags a, .project__infos .tags a, .hp-new__cats a,
	.archive-content__cat a, .breadscrumb a, .article__bottom a, .fb-custom-share,
	.footer li a, .footer__bottom a, .wp-block-button__link {
		display: inline-flex;
		align-items: center;
		min-width: 44px;
		min-height: 44px;
		max-width: 100%;
		height: auto;
		padding-top: 10px;
		padding-bottom: 10px;
		line-height: 1.5;
		overflow-wrap: anywhere;
	}
	.btn, .link-more { font-size: 1rem; }
	.btn span { top: 0; }
	.btn::before, .btn::after { top: calc(100% - 5px); }
	.footer li a { display: flex; }
	.footer__bottom { flex-wrap: wrap; gap: 12px; }
	.footer__bottom > * { max-width: 100%; }
	.breadscrumb li { min-width: 0; align-items: center; }
	.breadscrumb span { white-space: normal; overflow: visible; }
	.hp-new__text { flex-wrap: wrap; gap: 4px; }
	.hp-new__cats { flex-wrap: wrap; }
	.hp-new__cats a { white-space: normal; }
	.project__infos .tags a { margin-left: 0; margin-right: 8px; }

	.pagination { gap: 8px; }
	.pagination a, .pagination span {
		min-width: 44px;
		min-height: 44px;
		margin: 0;
		padding: 8px;
		font-size: 1rem;
		line-height: 28px;
	}
	.form-control, input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),
	select, textarea {
		font-size: 16px;
		min-height: 44px;
		max-width: 100%;
	}
	textarea { line-height: 1.5; }
	button.search-submit, input[type=submit], button.mfp-close,
	.slick-arrow:not(.slick-hidden) { min-width: 44px; min-height: 44px; }

	/* The base theme removes outlines; restore visible keyboard focus. */
	a:focus-visible, button:focus-visible, input:focus-visible,
	select:focus-visible, textarea:focus-visible {
		outline: 3px solid #947635;
		outline-offset: 3px;
	}
}

@media (max-width: 460px) {
	.header.active .header-top__right { height: auto; }
	.header.active .link-icon:not(.search-trigger) {
		width: 44px;
		height: 44px;
		padding: 10px;
	}
}
