/*
Theme Name: Igual Child
Description: Child Theme for Igual Theme
Author: zozothemes
Version: 1.0
Template: igual
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: zozothemes
*/

/* FOOTER */
.insta-footer-wrap a.phone {
    font-family: 'Lora', sans-serif;
    font-size: 32px;
}

/* Service page */
.igual-slider-wrapper a {
    color: #fff;
}

/* BLOG */
h2.entry-title {
    text-transform: none;
}
.igual-masonry .top-meta-wrap {
    bottom: unset !important;
    top: 320px !important;
    border: solid 6px #fff !important;
}


/* Contact us */
.elementor-star-rating__wrapper {
    flex-direction: column;
}

.widget.widget_nav_menu li a {
	display: inline-block;
	position: relative;
	padding-left: 15px;
}

.widget.widget_nav_menu li a:before {
	position: absolute;
	left: 0;
}

ul.nav.wp-menu > li.menu-item-has-children:not(.menu-item-has-mega-children) > .sub-menu {
	width: 380px; /* 320px давало перенос трёх пунктов при наведении (padding-left 15 -> 36) */
}

.author .author__img {
    display: block;
    width: 100%;
    max-height: 490px;
    min-height: 230px;
    height: 100%;
}
.author .author__title {
	font-size: 1.2rem;
    font-weight: bold;
}
.author .author__subtitle {
    
}

/* HEADER */

/* Топбар: разделитель лого-колонки стоит на x=259 (li.header-titles-wrapper 259px
   при margin-left:-30px в контейнере с padding:0 30px), контейнер топбара начинается
   с 34px. 256px под первый элемент ставят телефон на x=290 — вровень с меню. */
.header-topbar ul.topbar-ul.element-left > li:first-child {
	width: 256px;
}

/* Правый блок строки меню пуст, поэтому тема снимает класс .right-element-exist,
   а вместе с ним и колонку лого с разделителем. Возвращаем её явно. */
.header-navbar ul.nav.navbar-ul.element-left .header-titles-wrapper {
	display: block;
	width: 259px;
	padding: 25px 24px;
	margin-top: -50px;
	margin-left: -30px;
	text-align: center;
	border-right: solid 1px rgba(255,255,255,0.2);
}
.header-sticky .header-navbar ul.nav.navbar-ul.element-left .header-titles-wrapper {
	background: transparent;
	padding: 0 58px;
	margin-top: 0;
	border-right: solid 1px rgb(0 0 0 / 8%);
}


/* ===== Перенесено из Кастомайзера (Додатковий CSS) ===== */
/* CTA-форма в сайдбаре блога.
   Тема обнуляет паддинг у последнего виджета сайдбара
   (.content-widgets-wrapper .widget_block:last-child { padding: 0 })
   — это было нужно баннеру-картинке из демо, которая шла в край.
   Отступ возвращаем внутренней обёртке, а не виджету: если блок
   перестанет быть последним, тема даст ему свои 30px и двойного не будет. */
.content-widgets-wrapper .widget_block:last-child .sidebar-cta { padding: 30px; }

/* Логотип в основной строке header.
   Ячейка логотипа поднята на -50px, чтобы её правая граница шла через топбар.
   Вместе с ячейкой уезжал вверх и сам логотип — он вставал на 25px выше центра
   строки меню. Высоту ячейки (150px = 50px над строкой меню + 100px самой строки)
   и границу оставляем как есть, а логотип центруем в нижних 100px. */
.header-navbar ul.nav.navbar-ul.element-left .header-titles-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	padding: 50px 24px 0;
}
.header-sticky .header-navbar ul.nav.navbar-ul.element-left .header-titles-wrapper {
	height: 80px;
	padding: 0 58px;
}

/* Якорь на блок команды (/about-us/#team).
   Плавность даёт бутстраповский :root { scroll-behavior: smooth } из темы.
   scroll-margin-top отводит место под липкую шапку, чтобы заголовок секции
   не уезжал под меню: 80px липкий навбар на десктопе, 60px мобильная панель. */
#team,
#services { scroll-margin-top: 110px; }
@media only screen and (max-width: 1024px) {
	#team,
	#services { scroll-margin-top: 80px; }
}

/* Единый popup для CTA-кнопок. Нативный <dialog>: Esc, фокус-ловушка и
   подложка — из коробки, поэтому своего JS минимум. */
dialog.cta-popup {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	padding: 0;
	border: 0;
	border-radius: 15px 0 15px 0;
	background: #fff;
	color: #797979;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	overflow: auto;
}
dialog.cta-popup::backdrop { background: rgba(9, 23, 46, .72); }
.cta-popup-inner { position: relative; }
.cta-popup-body { padding: 40px; }
.cta-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 1;
	padding: 4px 10px;
	border: 0;
	background: none;
	font-size: 32px;
	line-height: 1;
	color: #797979;
	cursor: pointer;
	transition: color .3s;
}
.cta-popup-close:hover { color: #b8967e; }
.cta-popup-sub {
	color: #b8967e;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.cta-popup h3 { margin-bottom: 24px; }
.cta-popup .wpcf7-response-output { margin: 18px 0 0; }
body.cta-popup-open { overflow: hidden; }
@media only screen and (max-width: 575px) {
	.cta-popup-body { padding: 30px 20px; }
}

/* Форма в сайдбаре блога — типографика из глобальных стилей сайта.

   Заголовок специально БЕЗ класса .widget-title: тема переопределяет заголовки
   виджетов правого сайдбара на 'DM Sans' 600
   (.widget-area-right .widget-title { font-family:'DM Sans'; font-weight:600 }),
   из-за чего они выпадали из фирменного serif. Обычный <h3> наследует
   глобальный стиль заголовков (Alice 400, #111111), поэтому здесь задаём
   только размер под узкую колонку.

   Подпись повторяет значения .sub-title темы: #b8967e / 15px / 600 /
   uppercase / letter-spacing 1px. */
.sidebar-cta-sub {
	color: #b8967e;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.sidebar-cta-title {
	font-size: 28px;
	line-height: 1.2;
	margin-bottom: 22px;
}
/* Полей стало два вместо четырёх — убираем лишний воздух между ними */
.sidebar-cta .contact-form-wrapper span.wpcf7-form-control-wrap input { margin-bottom: 18px; }
.sidebar-cta .wpcf7-response-output { margin: 14px 0 0; }

/* MEDIA QUERIES */
@media screen and (max-width: 1280px) {
    .igual-masonry .top-meta-wrap {
        top: 250px !important;
    }
}
@media screen and (max-width: 1024px) {
    .igual-masonry .top-meta-wrap {
        top: 330px !important;
    }
}
@media screen and (max-width: 768px) {
    .igual-masonry .top-meta-wrap {
        position: static;
        margin-bottom: 5px;
        border: none !important;
    }
}