/*

Theme Name: Vatek

Theme URI: https://vatek.com.ua

Author: SEO-Studio

Author URI: https://seo-studio.ua

Description: Тема медичного центру «Vatek» — послуги, лікарі, блог. Розроблено SEO-Studio (info@seo-studio.ua).

Version: 1.10.28

Requires at least: 6.4

Tested up to: 6.8

Requires PHP: 8.1

Text Domain: vatek

*/



/* Main styles are enqueued from assets/css/main.css */

/* --- Pro-centr about block: featured image in frame --- */
.about__frame--photo .about__pattern {
	display: none;
}

.about__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* Mobile/tablet header: larger logo, highlighted call button */
@media (max-width: 960px) {
	.site-header__inner {
		gap: 0.5rem;
		min-height: 84px;
	}

	.site-header__logo {
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-header__logo img {
		width: min(240px, 58vw);
	}

	.site-header__mobile-booking {
		display: none !important;
	}

	.site-header__mobile-action--phone {
		background: #f16991;
		border-color: #f16991;
		color: #ffffff;
		box-shadow: 0 2px 8px rgba(241, 105, 145, 0.45);
	}

	.site-header__mobile-action--phone:hover,
	.site-header__mobile-action--phone:focus {
		background: #e05580;
		border-color: #e05580;
		color: #ffffff;
	}

	.site-header__mobile-action--phone svg {
		stroke: #ffffff;
	}

	.site-nav,
	.site-header__actions {
		display: none;
	}

	.site-header__mobile-actions {
		display: flex;
	}

	.site-header__burger {
		display: flex;
		flex-shrink: 0;
	}

	body.is-nav-open .site-header__inner {
		flex-wrap: wrap;
	}

	body.is-nav-open .site-nav {
		display: flex;
		order: 4;
		width: 100%;
		padding: 1rem 0 0.5rem;
		border-top: 1px solid var(--line);
	}

	body.is-nav-open .site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	body.is-nav-open .site-nav__item {
		border-bottom: 1px solid var(--line);
	}

	body.is-nav-open .site-nav__item:last-child {
		border-bottom: 0;
	}

	body.is-nav-open .site-nav__item > a {
		display: block;
		padding: 0.75rem 0;
	}

	body.is-nav-open .site-nav__sub {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		margin: 0 0 0.75rem;
		padding: 0 0 0.5rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	body.is-nav-open .site-nav__sub a {
		padding: 0.4rem 0 0.4rem 0.75rem;
		font-size: 0.875rem;
	}

	body.is-nav-open .site-header__actions {
		display: flex;
		order: 5;
		flex-direction: column;
		width: 100%;
		padding-bottom: 0.5rem;
	}

	body.is-nav-open .site-header__actions .btn {
		width: 100%;
	}

	.topbar__inner {
		justify-content: center;
		text-align: center;
	}
}

/* Compact desktop nav: 961–1120px */
@media (min-width: 961px) and (max-width: 1120px) {
	.site-header__inner {
		gap: 0.625rem;
		min-height: 68px;
	}

	.site-header__logo {
		flex-shrink: 0;
	}

	.site-header__logo img {
		width: min(168px, 22vw);
	}

	.site-nav {
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-nav__list {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 0.5rem 0.875rem;
	}

	.site-nav a {
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	.site-header__actions {
		flex-shrink: 0;
	}

	.site-header__actions .btn {
		padding: 0.55rem 0.95rem;
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	.topbar {
		font-size: 0.75rem;
	}

	.topbar__inner {
		gap: 0.5rem;
		min-height: 36px;
	}
}

@media (max-width: 480px) {
	.site-header__inner {
		min-height: 76px;
	}

	.site-header__logo img {
		width: min(200px, 54vw);
	}
}

/* Hero CTAs: stack on mobile */
@media (max-width: 640px) {
	.hero__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__buttons .btn {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.hero__stats {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.hero__stats li {
		flex: 1 1 0;
		align-items: center;
		text-align: center;
		padding: 0 0.5rem;
	}

	.hero__stats li + li {
		border-left: 1px solid var(--line);
	}

	.hero__stats strong {
		font-size: 1.375rem;
	}

	.hero__stats span {
		font-size: 0.8125rem;
		line-height: 1.3;
	}
}

/* 404 search: centered, match site forms/buttons */
.error-404__search {
	display: flex;
	justify-content: center;
	width: min(100%, 28rem);
	margin: 0.5rem auto 3rem;
}

.error-404 .search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
}

.error-404 .search-form__label {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
}

.error-404 .search-form__field,
.error-404 .search-field {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.8125rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--ink);
	appearance: none;
}

.error-404 .search-form__field::placeholder,
.error-404 .search-field::placeholder {
	color: var(--muted);
}

.error-404 .search-form__field:focus,
.error-404 .search-field:focus {
	outline: 2px solid rgba(0, 137, 127, 0.25);
	outline-offset: 1px;
	border-color: var(--teal);
}

.error-404 .search-form__submit,
.error-404 .search-submit {
	flex: 0 0 auto;
	min-height: 3rem;
	padding-inline: 1.35rem;
	border: 0;
	cursor: pointer;
}

@media (max-width: 480px) {
	.error-404 .search-form {
		flex-direction: column;
	}

	.error-404 .search-form__submit,
	.error-404 .search-submit {
		width: 100%;
	}
}

/* WP body_class() adds `blog` on the posts index. main.css uses bare `.blog`
 * for section spacing (padding-block: 4rem), which also matched body and left
 * a white strip under the dark footer. Scope the reset to body only.
 */
body.blog {
	padding-block: 0;
}

/* Blog covers: keep faces in frame (16/9 + cover was cutting heads) */
.blog-card__cover,
.blog-article__cover {
	aspect-ratio: 3 / 2;
}

.blog-card__cover img,
.blog-article__cover img,
.blog-sidebar__related-thumb img {
	object-fit: cover;
	object-position: center 18%;
}

