/*
Theme Name: Telyatin Child
Template: petlife-lite
Description: Дочерняя тема сайта telyatin.com на базе Petlife Lite: фирменные цвета, системные шрифты с кириллицей, исправленная шапка (без второго H1), подвал с контактами, боковая карточка записи.
Version: 1.0.0
Text Domain: telyatin-child
*/

:root {
	--tl-green: #0e7c5a;
	--tl-green-dark: #0a5c43;
	--tl-amber: #f5a623;
	--tl-ink: #1f2a26;
	--tl-muted: #5b6b65;
	--tl-bg-soft: #eef6f2;
	--tl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Системные шрифты с поддержкой кириллицы вместо Quicksand/Karla */
body, h1, h2, h3, h4, h5, h6, p, li, a, input, button, .sitenav ul, a.main-button,
#header .header-inner .logo h1, #header .header-inner .logo p, .entry-title, .section-title {
	font-family: var(--tl-font) !important;
}
body { color: var(--tl-ink); line-height: 1.65; }

/* Название сайта в шапке — не H1 (H1 — заголовок страницы) */
#header .header-inner .logo .site-title {
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}
#header .header-inner .logo .site-title a { color: var(--tl-green); text-decoration: none; }
#header .header-inner .logo .site-description { color: var(--tl-muted); font-size: 14px; margin: 4px 0 0; font-weight: 600; }
/* Шапка: круглая эмблема слева, название и подпись справа */
/* Размеры блока увеличены на ~15% по просьбе владельца (01.11.2026) */
#header .header-inner .logo { display: flex; align-items: center; gap: 16px; }
.custom-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.custom-logo { height: 124px; width: 124px; }
.site-branding-text { min-width: 0; max-width: 335px; }
/* В родительской теме колонка логотипа — 18% ширины: название с эмблемой не помещалось */
.left-header-box { flex: 0 0 auto; }
#header .header-inner .logo .site-title { font-size: 25px; }
#header .header-inner .logo .site-description { font-size: 15px; }
/* Меню в одну строку при увеличенном блоке логотипа */
@media (min-width: 981px) {
	.sitenav > div > ul, .sitenav > ul { white-space: nowrap; }
	.sitenav ul li { margin-right: 0; }
	.sitenav ul li a { padding-left: 9px; padding-right: 9px; }
	.right-header-box { flex: 1 1 auto; text-align: center; }
}
@media (min-width: 721px) and (max-width: 1180px) {
	.site-branding-text { max-width: 215px; }
	#header .header-inner .logo .site-title { font-size: 20px; }
	#header .header-inner .logo .site-description { font-size: 13px; }
	.custom-logo { height: 96px; width: 96px; }
}
@media (max-width: 720px) {
	#header .header-inner .logo { justify-content: center; }
	.custom-logo { height: 89px; width: 89px; }
	.site-branding-text { text-align: left; }
}

/* Кнопка «Позвонить» в шапке */
.header-button a.tl-call {
	background-color: var(--tl-green);
	color: #fff;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
}
.header-button a.tl-call:hover, .header-button a.tl-call:focus { background-color: var(--tl-green-dark); }

/* Верхняя панель */
.top-bar { background: var(--tl-green-dark); }
.top-bar, .top-bar a { color: #fff; }

/* Контент */
.entry-content h2 { color: var(--tl-green-dark); margin-top: 1.6em; }
.entry-content h3 { color: var(--tl-ink); margin-top: 1.3em; }
.entry-content a { color: var(--tl-green); }
.entry-content img { border-radius: 8px; height: auto; max-width: 100%; }

/* Кнопки в контенте (блок «Кнопки»): отступ сверху от текста и снизу до фото */
.entry-content .wp-block-buttons { margin: 1.25em 0 2em; }
.wp-block-button__link, a.main-button {
	background-color: var(--tl-green) !important;
	color: #fff !important;
	border-radius: 6px !important;
	font-weight: 700;
	text-decoration: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--tl-green) !important;
	border: 2px solid var(--tl-green) !important;
}
.wp-block-button__link:hover { background-color: var(--tl-green-dark) !important; }

/* Плашка с ключевыми фактами */
.tl-facts {
	background: var(--tl-bg-soft);
	border-left: 4px solid var(--tl-green);
	padding: 16px 20px;
	border-radius: 6px;
}
.tl-note { color: var(--tl-muted); font-size: 0.92em; }

/* Боковая карточка записи */
.tl-card {
	background: #fff;
	border: 1px solid #d9e7e0;
	border-top: 4px solid var(--tl-green);
	border-radius: 8px;
	padding: 18px;
	margin-bottom: 24px;
}
.tl-card .widget-title { margin-top: 0; }
.tl-card p { margin: 0 0 10px; }
.tl-card .tl-phone { font-size: 20px; font-weight: 700; color: var(--tl-green); text-decoration: none; }

/* Подвал */
.tl-footer { background: #10231c; color: #dfe9e4; padding: 32px 0 8px; }
.tl-footer a { color: #fff; }
.tl-footer .container { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.tl-footer .tl-col { flex: 1 1 220px; min-width: 0; }
.tl-footer .tl-col-title { font-weight: 700; color: #fff; margin: 0 0 8px; }
.tl-footer ul { list-style: none; margin: 0; padding: 0; }
.tl-footer li { margin: 0 0 6px; }
.copyright-wrapper .copyright p { margin: 0; }

/* Фокус с клавиатуры */
.header-button a:focus-visible { outline: 3px solid var(--tl-amber); outline-offset: 2px; }

@media (max-width: 720px) {
	#header .header-inner .logo .site-title { font-size: 21px; }
	.header-button { width: 100%; text-align: left; margin: 8px 0 0; }
}
