/* Customizer-driven colors, typography and component visibility. */
body {
  color: var(--ic-body-text);
  background: var(--ic-page-bg);
  font-family: var(--ic-font-body);
  font-size: var(--ic-font-size);
}

html, body { max-width: 100%; overflow-x: clip; }

h1, h2, h3, h4, h5, h6 { font-family: var(--ic-font-heading); }
.site-header, .desktop-header { background: var(--ic-header-bg); color: var(--ic-header-text); }
.desktop-header .text-logo, .primary-menu a { color: var(--ic-header-text); }
.topbar { background: var(--ic-topbar-bg); color: var(--ic-topbar-text); }
.topbar { font-size: var(--ic-topbar-font-size, 12px); }
.topbar__inner { min-height: var(--ic-topbar-height, 36px); }
.topbar a { color: var(--ic-topbar-text); }
.topbar a:hover, .topbar a:focus { color: var(--ic-topbar-hover); }
.topbar__contacts { margin-left: auto; }
.primary-nav { min-width: 0; }
.desktop-header__inner, .site-header--compact .desktop-header__inner { min-height: var(--ic-desktop-header-height, 84px); }
.desktop-header .custom-logo { max-height: calc(var(--ic-desktop-header-height, 84px) - 16px); }
.desktop-header .text-logo, .desktop-header .header-cta, .primary-menu a { font-size: var(--ic-desktop-header-font-size, 14px); }
.primary-menu { gap: clamp(14px, 1.8vw, 30px); }
.primary-menu > li > a { white-space: nowrap; }
.primary-menu .sub-menu {
  margin: 0;
  padding: 12px;
  list-style: none !important;
  background: var(--ic-submenu-bg);
}
.primary-menu .sub-menu li { margin: 0; padding: 0; list-style: none !important; }
.primary-menu .sub-menu li::marker { content: ""; }
.primary-menu .sub-menu a { border-radius: 8px; color: var(--ic-submenu-text); white-space: normal; line-height: 1.4; }
.primary-menu .sub-menu a:hover, .primary-menu .sub-menu a:focus { background: var(--ic-submenu-hover-bg); color: var(--ic-submenu-hover-text); }
.primary-menu .sub-menu .current-menu-item > a,
.primary-menu .sub-menu .current-menu-ancestor > a,
.primary-menu .sub-menu .current-page-item > a,
.primary-menu .sub-menu a[aria-current="page"] { background: var(--ic-submenu-active-bg); color: var(--ic-submenu-active-text); }
.primary-menu a:hover, .primary-menu a:focus { color: var(--ic-header-menu-hover); }
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-page-item > a,
.primary-menu .current-page-ancestor > a,
.primary-menu a[aria-current="page"] { color: var(--ic-header-menu-active); }
.protected-contact { cursor: pointer; }
.mobile-header { background: var(--ic-mobile-header-bg); color: var(--ic-mobile-header-text); }
.mobile-header__inner { min-height: var(--ic-mobile-header-height, 64px); }
.mobile-header .custom-logo { max-height: calc(var(--ic-mobile-header-height, 64px) - 14px); }
.mobile-header .text-logo, .mobile-header .menu-toggle { font-size: var(--ic-mobile-header-font-size, 14px); }
.mobile-header .mobile-phone { font-size: max(20px, var(--ic-mobile-header-font-size, 14px)); }
.mobile-header .text-logo, .mobile-header .menu-toggle { color: var(--ic-mobile-header-text); }
.mobile-header .menu-toggle__icon { color: var(--ic-mobile-menu-icon); }
.mobile-header .menu-toggle__icon i { width: var(--ic-mobile-menu-icon-size, 23px); background: currentColor; }
.mobile-drawer__panel { background: var(--ic-mobile-menu-bg); color: var(--ic-mobile-menu-text); }
.mobile-drawer .mobile-menu a, .mobile-drawer__contacts a:first-child { color: var(--ic-mobile-menu-text); }
.mobile-drawer .mobile-menu > li > a { font-size: var(--ic-mobile-menu-font-size, 16px); }
.mobile-drawer .mobile-menu .sub-menu a { font-size: max(12px, calc(var(--ic-mobile-menu-font-size, 16px) - 2px)); }
.mobile-drawer > .mobile-drawer__panel > .button { font-size: var(--ic-mobile-menu-font-size, 16px); }
.mobile-drawer .mobile-menu a:hover, .mobile-drawer .mobile-menu a:focus { color: var(--ic-mobile-menu-hover); }
.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-ancestor > a,
.mobile-menu .current-page-item > a,
.mobile-menu .current-page-ancestor > a,
.mobile-menu a[aria-current="page"] { color: var(--ic-mobile-menu-active); }
.site-footer { background: var(--ic-footer-bg); color: var(--ic-footer-text); }
.site-footer .footer-brand > p { color: var(--ic-footer-about); }
.site-footer .text-logo, .site-footer .footer-widget__title, .site-footer .footer-contacts a, .site-footer .social-links a { color: var(--ic-footer-heading); }
.site-footer a:hover, .site-footer a:focus { color: var(--ic-footer-link-hover); }
.site-footer .current-menu-item > a,
.site-footer .current-menu-ancestor > a,
.site-footer .current-page-item > a,
.site-footer .current-page-ancestor > a,
.site-footer a[aria-current="page"] { color: var(--ic-footer-link-active); }
.footer-logo-link { display: inline-block; }
.footer-custom-logo { display: block; max-width: 100%; height: auto; }
.footer-brand .social-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 0; }
.footer-brand .social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--ic-accent-rgb), .25);
  border-radius: 12px;
  background: rgba(var(--ic-accent-rgb), .09);
  color: var(--ic-accent);
  transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
}
.footer-brand .social-link:hover, .footer-brand .social-link:focus {
  transform: translateY(-3px);
  border-color: var(--ic-accent);
  background: var(--ic-accent);
  color: #fff;
}
.footer-brand .social-link svg { width: 20px; height: 20px; fill: currentColor; }
.footer-brand .social-link--instagram svg,
.footer-brand .social-link--youtube svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-brand .social-link--youtube .icon-fill,
.footer-brand .social-link--instagram .icon-dot { fill: currentColor; stroke: none; }
.footer-bottom { background: var(--ic-footer-bottom-bg); color: var(--ic-footer-bottom-text); font-size: var(--ic-footer-bottom-font-size); }
.footer-bottom__html p { margin: 0; }
.footer-bottom__html a { color: inherit; text-decoration: underline; }
.footer-bottom__html img { display: inline-block; vertical-align: middle; }
.builder-empty { padding-block: 100px; text-align: center; }
.builder-empty p { max-width: 720px; margin: 18px auto 30px; }
.wpbakery-page { width: 100%; max-width: 100%; overflow: hidden; }
.wpbakery-page > .vc_row[data-vc-full-width] {
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.ic-container-narrow .desktop-header__inner { gap: 18px; }
.ic-container-narrow .desktop-header .custom-logo { max-width: 160px; }
.ic-container-narrow .primary-menu { gap: 12px; }
.ic-container-narrow .primary-menu > li > a { font-size: min(var(--ic-desktop-header-font-size, 14px), 13px); }
.ic-container-narrow .header-cta { padding-right: 14px; padding-left: 14px; }
.ic-container-narrow .footer-main { gap: 45px; }
.ic-container-narrow .footer-widgets--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ic-container-wide .posts-grid { gap: 30px; }

@media (min-width: 1025px) {
  .site-header.is-sticky-desktop { position: -webkit-sticky; position: sticky !important; top: 0; z-index: 1000; }
  .admin-bar .site-header.is-sticky-desktop { top: 32px; }
  .site-footer.desktop-footer-disabled { display: none; }
}

@media (max-width: 1024px) {
  .site-header.is-sticky-mobile { position: -webkit-sticky; position: sticky !important; top: 0; z-index: 1000; }
  .site-footer { background: var(--ic-mobile-footer-bg); color: var(--ic-mobile-footer-text); }
  .site-footer.mobile-footer-disabled { display: none; }
}

@media (min-width: 783px) and (max-width: 1024px) {
  .admin-bar .site-header.is-sticky-mobile { top: 32px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header.is-sticky-mobile { top: 0; }
}
