/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
*/

/* Логотип */
.navbar-brand img {
    width: 180px !important;
    height: auto !important;
    display: block !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-brand img,
.navbar-brand img.logo,
header .navbar-brand img {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    width: 180px !important;
    height: auto !important;
    max-width: 180px !important;
    background: none !important;
    content: none !important;
}

/* Fix логотип */
.navbar-brand img[alt="Logo"] {
    filter: none !important;
    -webkit-filter: none !important;
    max-width: 180px !important;
    width: 180px !important;
    height: auto !important;
}

/* Прибрати фон логотипу */
.navbar-brand,
.navbar-brand img {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Прозорий хедер */
body:not(.blog):not(.archive):not(.single-post) header.main-header,
body:not(.blog):not(.archive):not(.single-post) header.main-header .header-sticky,
body:not(.blog):not(.archive):not(.single-post) header.main-header .header-sticky.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* CSS змінні шаблону */
:root {
    --primary-color: #222222;
    --secondary-color: #FCFFEF;
    --bg-color: #F7F3F1;
    --text-color: #666666;
    --accent-color: #274543;
    --accent-secondary-color: #ADB295;
    --white-color: #FFFFFF;
    --divider-color: #2222221A;
    --dark-divider-color: #FFFFFF1A;
    --default-font: "DM Sans", sans-serif;
    --accent-font: "Mona Sans", sans-serif;
}

/* Прозорий navbar */
.navbar,
.navbar.navbar-expand-lg,
header.main-header .navbar {
    background: transparent !important;
    background-color: transparent !important;
}

/* Фікс розміру логотипу */
.navbar-brand {
    padding: 0 !important;
    margin-right: 20px !important;
    width: auto !important;
    flex-shrink: 0 !important;
}
.navbar-brand img[alt="Logo"] {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    display: block !important;
}

/* Приховати Kadence hero section */
.entry-hero.page-hero-section {
    display: none !important;
}

/* Прибрати простір від прихованої hero секції */
.entry-hero.page-hero-section {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Хедер поверх hero */
header.main-header {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: 15px !important;
    z-index: 100 !important;
}

/* Прибрати відступ після хедера */
body {
    padding-top: 0 !important;
}

#inner-wrap,
.content-area,
#primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Scroll to top */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}
#scroll-top.active {
    opacity: 1;
    visibility: visible;
}
#scroll-top:hover {
    background: var(--accent-secondary-color);
}

/* Scroll top test */
#scroll-top {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix CLS for logo */
.navbar-brand img,
.site-logo img {
    width: 180px;
    height: 40px;
    aspect-ratio: 180/40;
}

/* Fix CLS - reserve space for logo */
.navbar-brand,
.navbar-brand a {
    display: inline-block;
    width: 180px;
    height: 40px;
    min-width: 180px;
    min-height: 40px;
}

.navbar-brand img,
.site-branding img {
    width: 180px;
    height: 40px;
    display: block;
}

/* ── btn-call ── */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #465C5AED;
  border-radius: 5px;
  padding: 8px 12px 8px 12px;
  text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(15px);
}
.btn-call:hover, .btn-call:focus {
    background-color: #374a48;
    text-decoration: none !important;
}
.btn-call:active { transform: translateY(0); }
.btn-call__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.20);
    flex-shrink: 0;
    transition: background 0.25s ease;
}
.btn-call__icon svg { width: 15px; height: 15px; }
.btn-call:hover .btn-call__icon { background: rgba(255,255,255,0.18); }
.btn-call__text { display: flex; flex-direction: column; line-height: 1.2; }
.btn-call__label { color: #ffffff; font-weight: 400; font-size: 15px; opacity: 0.85; }
.btn-call__number { color: #ffffff; font-weight: 400; font-size: 17px; white-space: nowrap; }
@media (max-width: 991px) {
    .btn-call__number { font-size: 18px; }
    .btn-call__label { font-size: 13px; }
    .btn-call__icon { width: 36px; height: 36px; }
    .btn-call__icon svg { width: 18px; height: 18px; }
    .btn-call { padding: 6px 14px 6px 10px; gap: 8px; }
}
@media (max-width: 575px) {
    .btn-call__number { font-size: 15px; }
    .btn-call__label { font-size: 11px; }
}

/* ── Мовний перемикач CS/EN у хедері ── */
.lang-switcher-wrapper {
    display: flex;
    align-items: center;
    margin-right: 25px;
}
.lang-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0px;
}
.lang-menu li a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 4px 4px;
    border: 0px solid rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lang-menu li.menu-item-5963::after {
    content: '/';
    color: rgba(255, 255, 255, 0.5);
    margin: 0 2px;
}
.lang-menu li a:hover,
.lang-menu li.current-menu-item a {
    background: none;
}
.lang-switcher-wrapper ul li.menu-item-5962 {
  margin: 0px;
}
.lang-switcher-wrapper ul li.menu-item-5963 {
  margin: 0px;
}
@media (max-width: 991px) {
    .lang-switcher-wrapper { display: none; }
}
