/* ============================================================
   INTAL-DOM | ASTRA CHILD | HEADER v1.0
   Boje originalnog logotipa: crvena, crna i bijela.
   Za sljedeći korak dodati header-v1.1.css (ne brisati v1.0).
   ============================================================ */

:root {
    --intaldom-red: #ed1c24;
    --intaldom-red-dark: #c91520;
    --intaldom-black: #111111;
    --intaldom-gray: #666666;
    --intaldom-white: #ffffff;
    --intaldom-border: #ececec;
}

/* Kontaktna traka */
.intaldom-topbar {
    background: #f6f6f6;
    border-bottom: 1px solid var(--intaldom-border);
    color: #484848;
    font-size: 12px;
    line-height: 1.4;
}

.intaldom-topbar-inner {
    max-width: 1320px;
    min-height: 34px;
    margin: 0 auto;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.intaldom-topbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.intaldom-topbar a {
    color: inherit;
    text-decoration: none;
}

.intaldom-topbar a:hover,
.intaldom-topbar a:focus-visible {
    color: var(--intaldom-red);
}

.intaldom-topbar-right {
    color: #737373;
}

/* Osnovni Astra header */
#masthead .ast-primary-header-bar {
    background: var(--intaldom-white);
    border-bottom: 1px solid var(--intaldom-border);
    box-shadow: 0 4px 18px rgba(0,0,0,0.035);
}

#masthead .ast-primary-header-bar .ast-builder-grid-row {
    min-height: 90px;
}

#masthead .ast-container {
    max-width: 1320px;
}

/* Logo s originalnom proporcijom */
#masthead .site-logo-img img.custom-logo,
#masthead .custom-logo-link img.custom-logo {
    width: auto;
    height: auto;
    max-width: 215px;
    max-height: 82px;
    object-fit: contain;
    vertical-align: middle;
}

/* Naslov se ne prikazuje jer je naziv već unutar logotipa. */
#masthead .site-branding .ast-site-title-wrap {
    display: none;
}

/* Nav linkovi */
#masthead .main-header-menu > .menu-item:not(.intaldom-quote-item) > .menu-link {
    color: var(--intaldom-black);
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

#masthead .main-header-menu > .menu-item:not(.intaldom-quote-item):hover > .menu-link,
#masthead .main-header-menu > .current-menu-item:not(.intaldom-quote-item) > .menu-link,
#masthead .main-header-menu > .current-menu-ancestor:not(.intaldom-quote-item) > .menu-link {
    color: var(--intaldom-red);
}

#masthead .main-header-menu > .current-menu-item:not(.intaldom-quote-item) > .menu-link {
    text-decoration-line: underline;
    text-decoration-color: var(--intaldom-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 9px;
}

/* Zatražite ponudu — zadnja stavka primarnog i mobilnog izbornika */
#masthead .main-header-menu > .intaldom-quote-item {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

#masthead .main-header-menu > .intaldom-quote-item > .menu-link,
#masthead .intaldom-quote-item > .menu-link {
    background: var(--intaldom-red);
    border: 1px solid var(--intaldom-red);
    border-radius: 6px;
    color: var(--intaldom-white);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    height: auto;
    text-align: center;
    transition: background .2s ease, border-color .2s ease;
}

#masthead .intaldom-quote-item > .menu-link:hover,
#masthead .intaldom-quote-item > .menu-link:focus-visible {
    background: var(--intaldom-red-dark);
    border-color: var(--intaldom-red-dark);
    color: var(--intaldom-white);
}

#masthead .intaldom-quote-link span {
    margin-left: 6px;
}

/* Ako korisnik doda izvorni Astra Header Builder Button */
#masthead .ast-builder-button-wrap .ast-custom-button {
    background: var(--intaldom-red);
    border: 1px solid var(--intaldom-red);
    border-radius: 6px;
    color: var(--intaldom-white);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 20px;
}

#masthead .ast-builder-button-wrap .ast-custom-button:hover {
    background: var(--intaldom-red-dark);
    border-color: var(--intaldom-red-dark);
    color: var(--intaldom-white);
}

/* Mobitel i tablet: Astra zadržava svoj off-canvas meni */
@media (max-width: 921px) {
    .intaldom-topbar {
        display: none;
    }

    #masthead .ast-primary-header-bar .ast-builder-grid-row {
        min-height: 72px;
    }

    #masthead .site-logo-img img.custom-logo,
    #masthead .custom-logo-link img.custom-logo {
        max-width: 170px;
        max-height: 68px;
    }

    #masthead .ast-button-wrap .menu-toggle,
    #masthead .ast-mobile-menu-trigger-minimal {
        color: var(--intaldom-black);
    }

    #masthead .main-header-menu > .intaldom-quote-item {
        display: block;
        margin: 12px 16px 18px;
    }

    #masthead .main-header-menu > .intaldom-quote-item > .menu-link {
        display: block;
        width: 100%;
        min-height: 45px;
        padding: 13px 18px;
    }
}

@media (max-width: 480px) {
    #masthead .ast-primary-header-bar .ast-builder-grid-row {
        min-height: 66px;
    }

    #masthead .site-logo-img img.custom-logo,
    #masthead .custom-logo-link img.custom-logo {
        max-width: 150px;
        max-height: 60px;
    }
}
