/* =========================================
   HEADER BUILDER
========================================= */

.iwp-header-builder-wrapper {
    width: 100%;
}

.iwp-header-area {
    width: 100%;
}

.iwp-header-device-layout {
    width: 100%;
}

.iwp-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.iwp-header-position {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.iwp-header-position-left {
    justify-content: flex-start;
}

.iwp-header-position-center {
    justify-content: center;
}

.iwp-header-position-right {
    justify-content: flex-end;
}

.iwp-header-element {
    display: block;
    min-width: 0;
}

.iwp-header-element > * {
    max-width: 100%;
}

/* =========================================
   LOGO
========================================= */

.iwp-header-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.iwp-header-logo img {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 70px;
}

.iwp-header-site-title {
    display: block;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.iwp-header-tagline {
    display: block;
    color: var(--muted, #69798d);
    font-size: 12px;
}

/* =========================================
   NAVIGATION
========================================= */

.iwp-header-navigation {
    width: 100%;
}

.iwp-header-menu,
.iwp-header-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.iwp-header-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.iwp-header-menu li {
    position: relative;
}

.iwp-header-menu a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.iwp-header-menu .sub-menu {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    display: none;
    min-width: 210px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 45, 75, .12);
}

.iwp-header-menu li:hover > .sub-menu,
.iwp-header-menu li:focus-within > .sub-menu {
    display: block;
}

.iwp-header-menu .sub-menu a {
    display: block;
    padding: 9px 12px;
}

/* =========================================
   CONTACT
========================================= */

.iwp-header-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.iwp-header-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.iwp-header-contact-item a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   BUTTON
========================================= */

.iwp-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 6px;
    background: var(--iwp-accent, #2366b1);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.iwp-header-button:hover {
    color: #fff;
    filter: brightness(.94);
}

.iwp-button-secondary {
    background: #eaf2fb;
    color: #174f89;
}

.iwp-button-outline {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
}

.iwp-button-small {
    padding: 7px 13px;
    font-size: 12px;
}

.iwp-button-large {
    padding: 14px 24px;
    font-size: 15px;
}

/* =========================================
   SOCIAL
========================================= */

.iwp-header-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iwp-header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
}

/* =========================================
   SEARCH
========================================= */

.iwp-header-search {
    width: 100%;
}

.iwp-header-search form {
    display: flex;
    gap: 5px;
}

.iwp-header-search input[type="search"] {
    width: 100%;
    min-width: 0;
}

/* =========================================
   TEXT & HTML
========================================= */

.iwp-header-text,
.iwp-header-html {
    max-width: 100%;
}

.iwp-header-text p:last-child,
.iwp-header-html p:last-child {
    margin-bottom: 0;
}

/* =========================================
   DEVICE VISIBILITY
========================================= */

.iwp-header-desktop,
.iwp-header-tablet,
.iwp-header-mobile {
    display: none;
}

@media (min-width: 992px) {
    .iwp-header-desktop {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .iwp-header-tablet {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .iwp-header-mobile {
        display: block;
    }

    .iwp-header-row {
        gap: 8px;
    }

    .iwp-header-position {
        gap: 8px;
    }

    .iwp-header-menu {
        gap: 12px;
    }

    .iwp-header-contact {
        gap: 8px;
    }
}
